From: Greg KH <gregkh@linuxfoundation.org>
To: Haneen Mohammed <hamohammed.sa@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v4] Staging: lustre: Remove extern in .c file
Date: Tue, 3 Mar 2015 09:03:42 -0800 [thread overview]
Message-ID: <20150303170342.GA1708@kroah.com> (raw)
In-Reply-To: <1425333780-14728-1-git-send-email-hamohammed.sa@gmail.com>
On Tue, Mar 03, 2015 at 01:03:00AM +0300, Haneen Mohammed wrote:
> This patch removes extern from .c file; for The variable is not used
> anywhere else in the file.
> Issue addressed by checkpatch.pl.
>
> Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
> ---
> v4: remove extern declaration from .h
>
> drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
> index d20d277..3d264e9 100644
> --- a/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
> +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_pool.c
> @@ -141,8 +141,6 @@
> */
> #define LDLM_POOL_SLV_SHIFT (10)
>
> -extern struct proc_dir_entry *ldlm_ns_proc_dir;
> -
> static inline __u64 dru(__u64 val, __u32 shift, int round_up)
> {
> return (val + (round_up ? (1 << shift) - 1 : 0)) >> shift;
Please also mark it static in the one file it is in in the same patch.
thanks,
greg k-h
next prev parent reply other threads:[~2015-03-03 18:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 22:03 [PATCH v4] Staging: lustre: Remove extern in .c file Haneen Mohammed
2015-03-03 17:03 ` Greg KH [this message]
2015-03-21 5:51 ` [PATCH v5] Staging: lustre: remove " Haneen Mohammed
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=20150303170342.GA1708@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=hamohammed.sa@gmail.com \
--cc=outreachy-kernel@googlegroups.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 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.