From patchwork Mon Jul 4 00:31:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 9211511 X-Patchwork-Delegate: geert@linux-m68k.org 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 17CBE6075F for ; Mon, 4 Jul 2016 00:31:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F260A286E4 for ; Mon, 4 Jul 2016 00:31:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6988286EE; Mon, 4 Jul 2016 00:31:33 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI 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 60D35286E4 for ; Mon, 4 Jul 2016 00:31:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932213AbcGDAbT (ORCPT ); Sun, 3 Jul 2016 20:31:19 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:36488 "EHLO relmlie4.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932182AbcGDAbR (ORCPT ); Sun, 3 Jul 2016 20:31:17 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie4.idc.renesas.com with ESMTP; 04 Jul 2016 09:31:15 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 5CA6540B0C; Mon, 4 Jul 2016 09:31:15 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 4FA172806E; Mon, 4 Jul 2016 09:31:15 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 49DC42806D; Mon, 4 Jul 2016 09:31:15 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id KAU18005; Mon, 4 Jul 2016 09:31:15 +0900 X-IronPort-AV: E=Sophos;i="5.22,559,1449500400"; d="scan'";a="214801855" 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; 04 Jul 2016 09:31:14 +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=jTUTYOikWAA2DlB+ZuaekD98CJ4AWkQAl0i5fy5p1qQ=; b=Fgo6flejtm6djI1agDJYD6aDhdyt/5nt1fsPYr/YnX1k4Yk1rF6Y5fYcYb+FT63tjqOKBndNZFVZjuAheo7KquDl8+jfmKUUWV1fjzmj6ejSMxMI0p2LoKy64eVMtV/NI1nYRTAiVj2jrDFgFWe7Ita0jn2WPKtxdqcqEOI1OYA= 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 PS1PR06MB1708.apcprd06.prod.outlook.com (10.167.53.18) with Microsoft SMTP Server (TLS) id 15.1.528.16; Mon, 4 Jul 2016 00:31:12 +0000 Message-ID: <87zipyz1w9.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH] thermal: hwmon: EXPORT_SYMBOL for thermal hwmon sysfs User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Zhang Rui , "edubezval@gmail.com" 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" , In-Reply-To: <201607031043.pubKFAon%fengguang.wu@intel.com> References: <87lh1ykqs4.wl%kuninori.morimoto.gx@renesas.com> <201607031043.pubKFAon%fengguang.wu@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Mon, 4 Jul 2016 00:31:12 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0020.apcprd02.prod.outlook.com (10.164.90.158) To PS1PR06MB1708.apcprd06.prod.outlook.com (10.167.53.18) X-MS-Office365-Filtering-Correlation-Id: 009e6e06-54c9-42f5-d304-08d3a3a28091 X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1708; 2:t32NLXOxdu0Imt9gONO7ad5ICeFgDaxH+KJEEPIQTh+hW7bsUZrV/pqZPKsE0ewLF/w/soSOFLVUXxavXKkqHRt44D6L/96adkl/yEJfdKQRAby89KA3pMm7mmZlnEH1jHE1QcBEdFIkM5ZOHs1CsX1teQec9ol3+/mO1F2Iy8q/7SXJSmnrc1C80ClrpFad; 3:ooIFtRF4a6rDqQHPDWQDzgKtV2f+BxUrRAhQgOYrBrvKUi2Qyw3yQBywyanubLFx44jWW/8i0vN8osMenIB6gUQq9nrhJIWP9DK+pqfZSx+k/sLJHm242kydKxY8r6yS; 25:/xRc7OoIyhVUSp5H5X/7v1AfELSLTNzDSq5MNrMbOKTPX6luQqBT7A7vmN8yWn/V59iTOZE6HZVYyMDIjXmKxJri20q9IhSONDmnVe5TLRonck8kcWZF0nsXS59E/AZS7mC5QauzrGPYa/quR4XmplSl06qMR4znrbWRiNW+nuaZqEzioprE0XlzDai9N6JcZ1v8QgtmZGJzXFn2TZZXl2IdRoOh2TkP25Dr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z9loJJtrSn9s5YubVKTsSiOvJ8pphXauoYTZsxCgFwa0zatVlmHwyNrFjiJRrbGzh0zblQQhJZM3/lhKH/uWsjLvCU2Cpibad5FG9HqJ7ONNT1BIFECe9unCfHTaYNoDJxDsC3wNkd1IyEFjLmQ/aaFWVW4oMeO7tIM+1pr2uXL+TBlH974qA6fCLi604yQBeqTFIwkBbmNHuxsjKn2QX0pWDRE/x9zzkvbSLxTu47mmCPDtCfGpq3W8qbNBCbMzUpQP9NYTaHCh3LdPYwnGA+/WKu2r/Jj6a34I2SkrkEXEH7DSksoGSymX8WQhxeYyvDioH7zGzfzTg89jhLN9Y+2dof49hXQVWjv4itNA== 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)(3002001)(10201501046)(6055026); SRVR:PS1PR06MB1708; BCL:0; PCL:0; RULEID:; SRVR:PS1PR06MB1708; 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)(2950100001)(50986999)(76176999)(54356999)(50466002)(77096005)(86362001)(5001770100001)(19580405001)(33646002)(19580395003)(305945005)(189998001)(69596002)(2501003)(97736004)(229853001)(36756003)(7736002)(7846002)(81156014)(106356001)(81166006)(53416004)(105586002)(8676002)(4001350100001)(16060500001); DIR:OUT; SFP:1102; SCL:1; SRVR:PS1PR06MB1708; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; PS1PR06MB1708; 23:hYuPvbvo+mxO7eIA+Af2Y86Ri2harknHCtd6EGskf?= =?us-ascii?Q?vmaMnnWTF2F94QetgK/0pZ5HGmqWKI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m33N0Xlr/ExOGcb1PvxjFMBmPLDSWkc3691q+xb43HDwdNxoSw2wu2u0efhhhFXOKu5K6ZhwaEk4ZWdQITevgw+9TCdoJEEDwVHSbOBknulcHAeEzDVt0XGivDIn+sHw9Gf8KgkNEapf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; PS1PR06MB1708; 20:Rjsn0j2paK1UY5KPzrrx2QDhAoR6HqBZzg9Lph/b9+fvQvT5x+Em7wKnRqe/kZn7fkC3inGkPVP+e1K7GHLfjyc7AzXuIIooTlhtgEQ4gLcekOktQY9jOG6mPQ6fy9P+yuUnGzwnK5d62cikMxAK/NZ0ogiRqBeJMCe6Bc6Nq/o= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 00:31:12.0957 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR06MB1708 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto thermal_add_hwmon_sysfs()/thermal_remove_hwmon_sysfs() need EXPORT_SYMBOL(). 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..8eecba8 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(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(thermal_remove_hwmon_sysfs);