All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
To: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: linux-kernel@vger.kernel.org, Josh Triplett <josh@joshtriplett.org>
Subject: Re: [PATCH] rcu: add missing prototype
Date: Wed, 21 Sep 2016 11:48:40 -0700	[thread overview]
Message-ID: <20160921184840.GD10850@linux.vnet.ibm.com> (raw)
In-Reply-To: <20160920163259.5566-1-eric.engestrom@imgtec.com>

On Tue, Sep 20, 2016 at 05:32:59PM +0100, Eric Engestrom wrote:
> `make W=1` warns:
> kernel/rcu/tree.c:226:15: warning: no previous prototype for ‘rcu_rnp_online_cpus’ [-Wmissing-prototypes]
>  unsigned long rcu_rnp_online_cpus(struct rcu_node *rnp)
>                ^~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>

You lost me on this one.  It seems to be complaining about the initial
definition.

Hmmm...  Would making this function static __maybe_unused also resolve this?

								Thanx, Paul

> ---
> 
> I couldn't figure out how this list is ordered, I'm happy to move this
> line if you want :)
> 
> ---
>  kernel/rcu/tree.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
> index f714f87..23be3dc 100644
> --- a/kernel/rcu/tree.h
> +++ b/kernel/rcu/tree.h
> @@ -668,6 +668,7 @@ static void rcu_sysidle_init_percpu_data(struct rcu_dynticks *rdtp);
>  static bool rcu_nohz_full_cpu(struct rcu_state *rsp);
>  static void rcu_dynticks_task_enter(void);
>  static void rcu_dynticks_task_exit(void);
> +static unsigned long rcu_rnp_online_cpus(struct rcu_node *rnp);
> 
>  #endif /* #ifndef RCU_TREE_NONCORE */
> 
> -- 
> Cheers,
>   Eric
> 

      reply	other threads:[~2016-09-21 18:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-20 16:32 [PATCH] rcu: add missing prototype Eric Engestrom
2016-09-21 18:48 ` Paul E. McKenney [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=20160921184840.GD10850@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    --cc=eric.engestrom@imgtec.com \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.