linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Cc: linux-pm@vger.kernel.org
Subject: Re: [PATCH] thermal: Fix compiler warning
Date: Mon, 25 Mar 2013 16:12:20 +0800	[thread overview]
Message-ID: <1364199140.2465.43.camel@rzhang1-mobl4> (raw)
In-Reply-To: <1363815487-7191-1-git-send-email-ezequiel.garcia@free-electrons.com>

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;



      reply	other threads:[~2013-03-25  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-20 21:38 [PATCH] thermal: Fix compiler warning Ezequiel Garcia
2013-03-25  8:12 ` Zhang Rui [this message]

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=1364199140.2465.43.camel@rzhang1-mobl4 \
    --to=rui.zhang@intel.com \
    --cc=ezequiel.garcia@free-electrons.com \
    --cc=linux-pm@vger.kernel.org \
    /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).