linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] thermal: Fix compiler warning
@ 2013-03-20 21:38 Ezequiel Garcia
  2013-03-25  8:12 ` Zhang Rui
  0 siblings, 1 reply; 2+ messages in thread
From: Ezequiel Garcia @ 2013-03-20 21:38 UTC (permalink / raw)
  To: linux-pm; +Cc: Ezequiel Garcia, Zhang Rui

The following warning is obtained when CONFIG_NET is not defined:

In file included from drivers/thermal/mvebu_thermal.c:27:0:
include/linux/thermal.h:254:12: warning: 'thermal_generate_netlink_event'
defined but not used [-Wunused-function]

This patch fixes the warning by properly inlining
thermal_generate_netlink_event().

Cc: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 include/linux/thermal.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index f0bd7f9..fd7b8f3 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -251,7 +251,7 @@ void thermal_unregister_governor(struct thermal_governor *);
 extern int thermal_generate_netlink_event(struct thermal_zone_device *tz,
 						enum events event);
 #else
-static int thermal_generate_netlink_event(struct thermal_zone_device *tz,
+static inline int thermal_generate_netlink_event(struct thermal_zone_device *tz,
 						enum events event)
 {
 	return 0;
-- 
1.7.8.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] thermal: Fix compiler warning
  2013-03-20 21:38 [PATCH] thermal: Fix compiler warning Ezequiel Garcia
@ 2013-03-25  8:12 ` Zhang Rui
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang Rui @ 2013-03-25  8:12 UTC (permalink / raw)
  To: Ezequiel Garcia; +Cc: linux-pm

On Wed, 2013-03-20 at 18:38 -0300, Ezequiel Garcia wrote:
> The following warning is obtained when CONFIG_NET is not defined:
> 
> In file included from drivers/thermal/mvebu_thermal.c:27:0:
> include/linux/thermal.h:254:12: warning: 'thermal_generate_netlink_event'
> defined but not used [-Wunused-function]
> 
> This patch fixes the warning by properly inlining
> thermal_generate_netlink_event().
> 
> Cc: Zhang Rui <rui.zhang@intel.com>
> Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>

applied to thermal -next.

thanks,
rui
> ---
>  include/linux/thermal.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/include/linux/thermal.h b/include/linux/thermal.h
> index f0bd7f9..fd7b8f3 100644
> --- a/include/linux/thermal.h
> +++ b/include/linux/thermal.h
> @@ -251,7 +251,7 @@ void thermal_unregister_governor(struct thermal_governor *);
>  extern int thermal_generate_netlink_event(struct thermal_zone_device *tz,
>  						enum events event);
>  #else
> -static int thermal_generate_netlink_event(struct thermal_zone_device *tz,
> +static inline int thermal_generate_netlink_event(struct thermal_zone_device *tz,
>  						enum events event)
>  {
>  	return 0;



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-25  8:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-20 21:38 [PATCH] thermal: Fix compiler warning Ezequiel Garcia
2013-03-25  8:12 ` Zhang Rui

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).