From patchwork Mon Jul 4 07:19:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9211779 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 4833260572 for ; Mon, 4 Jul 2016 07:19:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 304D0285D3 for ; Mon, 4 Jul 2016 07:19:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2470128603; Mon, 4 Jul 2016 07:19:58 +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 95194285D3 for ; Mon, 4 Jul 2016 07:19:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752698AbcGDHTm (ORCPT ); Mon, 4 Jul 2016 03:19:42 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:61940 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752492AbcGDHTk (ORCPT ); Mon, 4 Jul 2016 03:19:40 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie4.idc.renesas.com with ESMTP; 04 Jul 2016 16:19:37 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id C546D4C316; Mon, 4 Jul 2016 16:19:37 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id BDBC42806E; Mon, 4 Jul 2016 16:19:37 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id B6B712806D; Mon, 4 Jul 2016 16:19:37 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac2.idc.renesas.com with ESMTP id SAL27791; Mon, 4 Jul 2016 16:19:37 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="214348523" Received: from mail-hk2apc01lp0211.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.211]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 04 Jul 2016 16:19:36 +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=9xuLhe0JTScRKUzOzSXoAwGTRlEEvndLXi/iRhdLmsE=; b=TlimsxrBeDNbtRTCL+hrlI8g6RlQR0IuFynK5YWTLrT8KWYD1GothspLvogmrccuKYeHIjdoE5NAlbXLeXPOoOvp8rs8tBaNr9NoVAqHe0YqiBNTL7bJDTdhJOjGfscTqh9BZswXqJpf+5I0+tVSHFeFIsXQ2qe9jI3TeVeQSus= 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 PS1PR06MB1706.apcprd06.prod.outlook.com (10.167.53.16) with Microsoft SMTP Server (TLS) id 15.1.528.16; Mon, 4 Jul 2016 07:19:32 +0000 Message-ID: <87poqtzxk5.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Zhang Rui , "edubezval@gmail.com" , Geert Uytterhoeven Subject: [PATCH v2] thermal: hwmon: EXPORT_SYMBOL_GPL for thermal hwmon sysfs User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 CC: "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" , PhucBui MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 4 Jul 2016 07:19:32 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0006.apcprd02.prod.outlook.com (10.164.90.144) To PS1PR06MB1706.apcprd06.prod.outlook.com (10.167.53.16) X-MS-Office365-Filtering-Correlation-Id: b072e6ac-834a-4bb6-10fb-08d3a3db8c2e X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1706; 2:xu/KMwOghUM98mB8jnV5bxy8eBXQRKUs0GKn0kUGTO1tbk7RNCbBok3XHRV8/Rp8zC3Wxf7fE9pvpNT9v4U+9SJNqiXvjn0JC8wjJ4zUadJXfEmFkmsJqPboPiW0GFBmVH0s27ten2t/4zxcl0w1GzMVtxq1++UxsAh61AfVcbFLkFYFXuhijNVYVIOWNk5W; 3:PpPsSo7epmDxsf7lXvoG2z4oXSUonJStMqr0zkvtouw00Wl8cphQEqMn8a7mwuI2la6fhD7LGkL4WjkPer7yl2mJC0DUckDGoBUHvwPaWMxPN2b0xh915eVGm4TRSG0D; 25:+8Oz8HCMD4EfoC5cPMtbywVen5QKkbCrNXMjlmrUYKFJ7j4+KXoWUGwa0dLf/sR6fGUFnQN65Y1U9N5lhLxZRkncDux13QzgmFJcOGafw5bw7b8QvvY6jeKz8IQwAEQXYwwBzFVdrYuovDIWafCOaG6tLeS3XVMWav9W4Mx7fgOqTlFAAqOrmd/N3pEhujqJPdnCCRdKkoscJIB6dRNsU3c0euKIn9eLhGZVlw6ewn7Vy3aIkj4lg/6fHsClWyiJeSlR8b2XRfiai9MvCM+USJIbHiU6qMPEBZyixMhUxR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g05rpzIp1c1g1h1SEr5GxLg6ozJA0G3alUsibiYfoyIAnz/Iw9nUCk2p11Mmq9pVRx4PiQv5iLZGP9UTERf0nCuwwHEoeyZmOlhIwOC72wfAcGelJmtQEzuxTAyE+NKL21tr8huVnbjL5VDO5yHVAnNnfGw+h+UhKlOobNfVMktStZihCd5nK1Wlv4z8/1eVNtJbhJ9t4m6J1gx742E1vaV1tZOZMuX5ZmPDCi+WIMWljQaYjBxD/PhzJP/hleEwTFxGCA6KFCGF1JMofEyC0v08e5oSnUIg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:PS1PR06MB1706; BCL:0; PCL:0; RULEID:; SRVR:PS1PR06MB1706; X-Forefront-PRVS: 0993689CD1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(101416001)(2906002)(42186005)(4326007)(23726003)(6116002)(3846002)(586003)(66066001)(83506001)(68736007)(47776003)(92566002)(46406003)(50986999)(54356999)(50466002)(77096005)(86362001)(5001770100001)(19580405001)(33646002)(19580395003)(305945005)(189998001)(69596002)(2501003)(97736004)(229853001)(36756003)(7736002)(7846002)(81156014)(81166006)(53416004)(106356001)(105586002)(8676002)(4001350100001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR06MB1706; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR06MB1706; 23:vnujOB/74muu0437hl+aQsenDKMqIYoi7Pp2hOPIX?= =?us-ascii?Q?CBQAe0rWLNO2DgJX803nIoK+qQ0hF+dhqmXB81rvafNLxqF7SYygKx14Se3a?= =?us-ascii?Q?GBHIiqp5OfP+darbHhWVeu8b2G0yi5xpRdgKp4lklTsB8J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ro8H SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1706; 20:Q9/qqAk/Oak3hYjpvN7uNiOHb6KhjCE3cHdUtS/T5Tphpv4H3sNRUfLaeLmdQcMR/6pA6zQtb7wRUObvoGuhlY85CyooxF5YoGrkl3HuH/Sfe6ylkMgvZiCTWz0QcAICSJzHsiqz8FBg1r7x3Pd+31qnpdcR0HnFmFXrDCOCBTM= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 07:19:32.8351 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR06MB1706 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 --- v1 -> v2 - EXPORT_SYMBOL -> EXPORT_SYMBOL_GPL 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);