From: Eric Dumazet <erdnetdev@gmail.com>
To: Claudiu Ghioc <claudiughioc@gmail.com>
Cc: davem@davemloft.net, edumazet@google.com, dborkman@redhat.com,
jpirko@redhat.com, akpm@linux-foundation.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Claudiu Ghioc <claudiu.ghioc@gmail.com>
Subject: Re: [PATCH] filter: fix sparse warning for bpf_internal_load_pointer_neg_helper
Date: Sun, 03 Mar 2013 18:08:43 -0800 [thread overview]
Message-ID: <1362362923.15793.84.camel@edumazet-glaptop> (raw)
In-Reply-To: <1362353404-27034-1-git-send-email-claudiu.ghioc@gmail.com>
On Mon, 2013-03-04 at 01:30 +0200, Claudiu Ghioc wrote:
> Removed the following sparse warning:
> * net/core/filter.c:48:6: warning: symbol
> 'bpf_internal_load_pointer_neg_helper' was
> not declared. Should it be static?
>
> Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>
> ---
> net/core/filter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/core/filter.c b/net/core/filter.c
> index 2e20b55..f6c907c 100644
> --- a/net/core/filter.c
> +++ b/net/core/filter.c
> @@ -45,7 +45,7 @@
> *
> * Exported for the bpf jit load helper.
> */
> -void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size)
> +static void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size)
> {
> u8 *ptr = NULL;
>
Hmm, have you read the comment ?
Also :
prev parent reply other threads:[~2013-03-04 2:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-03 23:30 [PATCH] filter: fix sparse warning for bpf_internal_load_pointer_neg_helper Claudiu Ghioc
2013-03-04 2:08 ` Eric Dumazet [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=1362362923.15793.84.camel@edumazet-glaptop \
--to=erdnetdev@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=claudiu.ghioc@gmail.com \
--cc=claudiughioc@gmail.com \
--cc=davem@davemloft.net \
--cc=dborkman@redhat.com \
--cc=edumazet@google.com \
--cc=jpirko@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@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