From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Zhang Rui <rui.zhang@intel.com>,
"edubezval@gmail.com" <edubezval@gmail.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"yoshihiro.shimoda.uh@renesas.com"
<yoshihiro.shimoda.uh@renesas.com>,
"cm-hiep@jinso.co.jp" <cm-hiep@jinso.co.jp>,
PhucBui <bd-phuc@jinso.co.jp>
Subject: Re: [PATCH] thermal: hwmon: EXPORT_SYMBOL for thermal hwmon sysfs
Date: Mon, 4 Jul 2016 08:49:12 +0200 [thread overview]
Message-ID: <CAMuHMdUad0bA7-ueEZsT5CrHDkDrO2rHuULojQTmt7NKRtpK8w@mail.gmail.com> (raw)
In-Reply-To: <87zipyz1w9.wl%kuninori.morimoto.gx@renesas.com>
Hi Morimoto-san,
On Mon, Jul 4, 2016 at 2:31 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> 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 <kuninori.morimoto.gx@renesas.com>
> ---
> 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);
EXPORT_SYMBOL_GPL?
That seems to be prevalent in the thermal subsystem, except for a few cases
in cpu_cooling.c and thermal_helpers.c.
> 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);
EXPORT_SYMBOL_GPL?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
next prev parent reply other threads:[~2016-07-04 6:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-22 0:38 [PATCH] thermal: rcar-thermal: enable hwmon when thermal_zone Kuninori Morimoto
2016-06-23 0:35 ` Kuninori Morimoto
2016-07-03 2:56 ` kbuild test robot
2016-07-04 0:31 ` [PATCH] thermal: hwmon: EXPORT_SYMBOL for thermal hwmon sysfs Kuninori Morimoto
2016-07-04 6:49 ` Geert Uytterhoeven [this message]
2016-07-04 6:58 ` Kuninori Morimoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMuHMdUad0bA7-ueEZsT5CrHDkDrO2rHuULojQTmt7NKRtpK8w@mail.gmail.com \
--to=geert@linux-m68k.org \
--cc=bd-phuc@jinso.co.jp \
--cc=cm-hiep@jinso.co.jp \
--cc=edubezval@gmail.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=yoshihiro.shimoda.uh@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).