From: Julia Lawall <julia.lawall@lip6.fr>
To: Marcus Folkesson <marcus.folkesson@gmail.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>,
Andreas Dilger <andreas.dilger@intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Greg Donald <gdonald@gmail.com>,
Julia Lawall <Julia.Lawall@lip6.fr>,
Daniel Baluta <daniel.baluta@intel.com>,
Lai Siyao <lai.siyao@intel.com>,
Andriy Skulysh <Andriy_Skulysh@xyratex.com>,
Joe Perches <joe@perches.com>,
HPDD-discuss@ml01.01.org, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] staging: lustre: fix non-static symbol warnings reported by sparse
Date: Wed, 27 May 2015 16:54:49 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.2.10.1505271654150.2430@hadrien> (raw)
In-Reply-To: <1432738076-17240-2-git-send-email-marcus.folkesson@gmail.com>
The comment about the v2 change should be under the ---, and not in a
separate message.
julia
On Wed, 27 May 2015, Marcus Folkesson wrote:
> Warnings reported by sparse:
>
> drivers/staging/lustre/lustre/ptlrpc/pinger.c:94:5:
> warning: symbol 'ptlrpc_ping' was not declared. Should it be static?
>
> drivers/staging/lustre/lustre/ptlrpc/pinger.c:113:6:
> warning: symbol 'ptlrpc_update_next_ping' was not declared. Should it be static
>
> drivers/staging/lustre/lustre/ptlrpc/pinger.c:144:6:
> warning: symbol 'pinger_check_timeout' was not declared. Should it be static?
>
> drivers/staging/lustre/lustre/ptlrpc/pinger.c:425:21:
> warning: symbol 'ptlrpc_new_timeout' was not declared. Should it be static?
>
> drivers/staging/lustre/lustre/ptlrpc/pinger.c:551:1:
> warning: symbol 'pet_list' was not declared. Should it be static?
>
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> ---
> drivers/staging/lustre/lustre/ptlrpc/pinger.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/lustre/lustre/ptlrpc/pinger.c b/drivers/staging/lustre/lustre/ptlrpc/pinger.c
> index 5abb91c..9fc8156 100644
> --- a/drivers/staging/lustre/lustre/ptlrpc/pinger.c
> +++ b/drivers/staging/lustre/lustre/ptlrpc/pinger.c
> @@ -91,7 +91,7 @@ int ptlrpc_obd_ping(struct obd_device *obd)
> }
> EXPORT_SYMBOL(ptlrpc_obd_ping);
>
> -int ptlrpc_ping(struct obd_import *imp)
> +static int ptlrpc_ping(struct obd_import *imp)
> {
> struct ptlrpc_request *req;
>
> @@ -110,7 +110,7 @@ int ptlrpc_ping(struct obd_import *imp)
> return 0;
> }
>
> -void ptlrpc_update_next_ping(struct obd_import *imp, int soon)
> +static void ptlrpc_update_next_ping(struct obd_import *imp, int soon)
> {
> int time = soon ? PING_INTERVAL_SHORT : PING_INTERVAL;
> if (imp->imp_state == LUSTRE_IMP_DISCON) {
> @@ -141,7 +141,7 @@ static inline int ptlrpc_next_reconnect(struct obd_import *imp)
> return cfs_time_shift(obd_timeout);
> }
>
> -long pinger_check_timeout(unsigned long time)
> +static long pinger_check_timeout(unsigned long time)
> {
> struct timeout_item *item;
> unsigned long timeout = PING_INTERVAL;
> @@ -422,8 +422,8 @@ EXPORT_SYMBOL(ptlrpc_pinger_del_import);
> * Register a timeout callback to the pinger list, and the callback will
> * be called when timeout happens.
> */
> -struct timeout_item *ptlrpc_new_timeout(int time, enum timeout_event event,
> - timeout_cb_t cb, void *data)
> +static struct timeout_item *ptlrpc_new_timeout(int time,
> + enum timeout_event event, timeout_cb_t cb, void *data)
> {
> struct timeout_item *ti;
>
> @@ -548,7 +548,7 @@ void ptlrpc_pinger_wake_up(void)
> static int pet_refcount;
> static int pet_state;
> static wait_queue_head_t pet_waitq;
> -LIST_HEAD(pet_list);
> +static LIST_HEAD(pet_list);
> static DEFINE_SPINLOCK(pet_lock);
>
> int ping_evictor_wake(struct obd_export *exp)
> --
> 1.9.1
>
>
prev parent reply other threads:[~2015-05-27 14:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 12:48 [PATCH] staging: lustre: silence sparse warnings Marcus Folkesson
2015-05-27 13:21 ` Julia Lawall
2015-05-27 14:47 ` changelog v2 Marcus Folkesson
2015-05-27 14:47 ` [PATCH v2] staging: lustre: fix non-static symbol warnings reported by sparse Marcus Folkesson
2015-05-27 14:53 ` Greg Kroah-Hartman
2015-05-27 14:54 ` Julia Lawall [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=alpine.DEB.2.10.1505271654150.2430@hadrien \
--to=julia.lawall@lip6.fr \
--cc=Andriy_Skulysh@xyratex.com \
--cc=HPDD-discuss@ml01.01.org \
--cc=andreas.dilger@intel.com \
--cc=daniel.baluta@intel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gdonald@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=joe@perches.com \
--cc=lai.siyao@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcus.folkesson@gmail.com \
--cc=oleg.drokin@intel.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
all inboxes | Powered by JetHome®