From patchwork Tue Jul 19 10:01:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9236669 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 492776075D for ; Tue, 19 Jul 2016 10:01:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A41F20072 for ; Tue, 19 Jul 2016 10:01:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EEB52521F; Tue, 19 Jul 2016 10:01:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 502CA20072 for ; Tue, 19 Jul 2016 10:01:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753304AbcGSKBV (ORCPT ); Tue, 19 Jul 2016 06:01:21 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:29011 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752473AbcGSKBR (ORCPT ); Tue, 19 Jul 2016 06:01:17 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 19 Jul 2016 19:01:15 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 728C94D8DE; Tue, 19 Jul 2016 19:01:15 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 51FC9480A4; Tue, 19 Jul 2016 19:01:15 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 1D159480A3; Tue, 19 Jul 2016 19:01:15 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id VAK05942; Tue, 19 Jul 2016 19:01:15 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'208";a="215901271" Received: from mail-hk2apc01lp0209.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.209]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 19 Jul 2016 19:01:13 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=J0+UCL6FzJsLAtYsldCRv6dsClzhnLfeWOsqmBjh0C0=; b=eMQLJFWsKlLWchGUQZHSG0aQSQGty60rTUUZCP5SVfKCTnnUVbGEQHoqJ1+3yhTIcgGw3gezAka9JUe90KViSBri4cEmg7RbMPhGiqCfa8yR77NcxUSgHGLRv7KGaydpjEbL3EjXZG7dHRM19bIEYUcNSYK8AYp9KJVhRDk45so= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by PS1PR0601MB1452.apcprd06.prod.outlook.com (10.165.210.156) with Microsoft SMTP Server (TLS) id 15.1.539.14; Tue, 19 Jul 2016 10:01:11 +0000 Message-ID: <8737n6lzrr.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 1/2] thermal: hwmon: EXPORT_SYMBOL_GPL for thermal hwmon sysfs User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Zhang Rui , "edubezval@gmail.com" CC: Geert Uytterhoeven , "linux-kernel@vger.kernel.org" , "linux-renesas-soc@vger.kernel.org" , "linux-pm@vger.kernel.org" , "yoshihiro.shimoda.uh@renesas.com" , "cm-hiep@jinso.co.jp" , hucBui In-Reply-To: <874m7mlzto.wl%kuninori.morimoto.gx@renesas.com> References: <874m7mlzto.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Tue, 19 Jul 2016 10:01:11 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0089.jpnprd01.prod.outlook.com (10.165.51.177) To PS1PR0601MB1452.apcprd06.prod.outlook.com (10.165.210.156) X-MS-Office365-Filtering-Correlation-Id: a5df017d-1336-4f52-b8d2-08d3afbb9d89 X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1452; 2:qqjpOkvbtgtC8ocx7FXw9t3sBdPGRyHZoc3G66opPuNo0DBeCVBnLhFi7qcjF/gtsvrEXf1dimu+xsMCs7R4dINArD2hR37dfg/ZrtdOUmwZbMtuMgFUOKTR1skPb5AYLSmYEM614JogUPCxyiduBnY0gX1c1zFBWUiCFNHHL44PaMRNWKvW1ck7xYKnBP9O; 3:5u+lh+FIWrzOraTJ4lU2hQfc67ph5kIlaQRjmjtzlBmkWVGtULTvYO66vSEVcDG6CaI7y9OJ/vFLzU9FfeokVXDBgm1K0IOad+F5e1gY/rf8/VmMni9hbqXV6MKFcvMj; 25:GF91XHEaEGT2Z+uru4s/QYWkutEDBX474LujqtFv8mVPQm50GC7CxZkKpYVvxsZmzQZctBaC8w2tVoDWVbbpL1+Q2nn+rDdD3/2LGGwhXEhLm7AjdtYKY2c7M7QUeH3PJJPjxQem/QKHCh+vLy2d8jDgMzPwuWwSMLf9Twv7Ofw2Vk1kt7IjfRqbkcfty7upLT63TYCJshJ+myeZxBJypq11o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antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:PS1PR0601MB1452; BCL:0; PCL:0; RULEID:; SRVR:PS1PR0601MB1452; X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1452; 4:fBrYVcGUkCd+9G45TMaEp+Uf4R4FzSIyMhrfN4QtkhbDnVWvOnFBF9cteuzIcc+l3xF8WYSapofVDjiwOJTlXKpmjYIeqLrGWZ6tIJVTrpz31I3uZotkYvkenPF6HsG7U1uyv1o1tDrJFSB2gC+uerVvygJhxU9iKar3lQ7429AbPH9+85feGtHTDGCeelg5ri1zWR0UNcYQoXjZ0bEh5oJ7T1EfRGu2LDUzAauWtGrGEA9bdGOVCjJiArKHcMaex+qXXnCmZ8fFnU8ESqTUstyWM/bOp0GjT1LRAmStPam0x1yfwJTfnih314nLRfMRUaFXgMCBl8Bft+BNYjT8T18C63zXL1fHqLQij0Pc52TwCx0cQNIqzf2sCk9q8uWcPG8dtRcgWYkjxK0AaSBQ9w== X-Forefront-PRVS: 000800954F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(101416001)(54356999)(76176999)(2501003)(2906002)(33646002)(23726003)(42186005)(229853001)(81156014)(68736007)(7846002)(2950100001)(305945005)(53416004)(586003)(106356001)(4001350100001)(66066001)(47776003)(69596002)(8676002)(6116002)(7736002)(83506001)(4326007)(19580395003)(3846002)(19580405001)(46406003)(92566002)(50466002)(5001770100001)(36756003)(77096005)(189998001)(81166006)(105586002)(50986999)(97736004)(86362001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR0601MB1452; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR0601MB1452; 23:l9CrqaRANXM3R4h93/w6NhucSQC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D3y9Xij7wiXpqAGOwLpuIhutCVE5hcHtUTB+nA81Tz/fClPPxxWfRTSf9St3QQmQbHPxnX9mUu7Z6lwYd06hKEOLthMAs1r4SGWgb+R1S2qirdkGC0cRkPL+3mIoB4W3B5WOxlActUcn2BjbfLpEJW46VIGWfTWw+dlNuy5ZsB1HtWuEwLQU0x3Dt8kebLT/elgFKN2Gdc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR0601MB1452; 20:jwW2veWIXqum5CJ3BlklCZ0qTN8ptA/z0NEGgr1k+QzZJaCxvnUGvErqHLncnpU2K+bWJ0bgOhx3lJD6TbNIE+M+JD6df+wglO8YqJNgdJXCkygVTrxAFvA6kfd/d4lWknOqkNBMdPLnClYAQLT6aOhRafGcldpR60ufB8Oitvc= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2016 10:01:11.8428 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR0601MB1452 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto thermal_add_hwmon_sysfs()/thermal_remove_hwmon_sysfs() need EXPORT_SYMBOL_GPL(). Otherwise we will have ERROR >> ERROR: "thermal_remove_hwmon_sysfs" [drivers/thermal/rcar_thermal.ko] undefined! >> ERROR: "thermal_add_hwmon_sysfs" [drivers/thermal/rcar_thermal.ko] undefined! Signed-off-by: Kuninori Morimoto --- drivers/thermal/thermal_hwmon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/thermal/thermal_hwmon.c b/drivers/thermal/thermal_hwmon.c index 06fd2ed9..c41c774 100644 --- a/drivers/thermal/thermal_hwmon.c +++ b/drivers/thermal/thermal_hwmon.c @@ -232,6 +232,7 @@ int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) return result; } +EXPORT_SYMBOL_GPL(thermal_add_hwmon_sysfs); void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) { @@ -270,3 +271,4 @@ void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) hwmon_device_unregister(hwmon->device); kfree(hwmon); } +EXPORT_SYMBOL_GPL(thermal_remove_hwmon_sysfs);