public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined
@ 2013-03-28  5:59 Chen Gang
  2013-03-28 18:31 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Gang @ 2013-03-28  5:59 UTC (permalink / raw)
  To: edumazet, dborkman, wad, eparis
  Cc: David Miller, linux-kernel@vger.kernel.org


  for make V=1 EXTRA_CFLAGS=-W ARCH=arm allmodconfig
    printk is need when CONFIG_BPF_JIT is defined
    or it will report pr_err and print_hex_dump are implicit declaration

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 include/linux/filter.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/filter.h b/include/linux/filter.h
index d7d2508..d1248f4 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -48,6 +48,9 @@ extern int sk_chk_filter(struct sock_filter *filter, unsigned int flen);
 extern int sk_get_filter(struct sock *sk, struct sock_filter __user *filter, unsigned len);
 
 #ifdef CONFIG_BPF_JIT
+#include <linux/linkage.h>
+#include <linux/printk.h>
+
 extern void bpf_jit_compile(struct sk_filter *fp);
 extern void bpf_jit_free(struct sk_filter *fp);
 
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined
  2013-03-28  5:59 [PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined Chen Gang
@ 2013-03-28 18:31 ` David Miller
  2013-03-29  1:13   ` Chen Gang
  2013-03-29  1:20   ` Chen Gang F T
  0 siblings, 2 replies; 4+ messages in thread
From: David Miller @ 2013-03-28 18:31 UTC (permalink / raw)
  To: gang.chen; +Cc: edumazet, dborkman, wad, eparis, linux-kernel


Please post networking patches to netdev@vger.kernel.org, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined
  2013-03-28 18:31 ` David Miller
@ 2013-03-29  1:13   ` Chen Gang
  2013-03-29  1:20   ` Chen Gang F T
  1 sibling, 0 replies; 4+ messages in thread
From: Chen Gang @ 2013-03-29  1:13 UTC (permalink / raw)
  To: David Miller; +Cc: edumazet, dborkman, wad, eparis, linux-kernel

On 2013年03月29日 02:31, David Miller wrote:
> Please post networking patches to netdev@vger.kernel.org, thanks.

  ok, thanks, it is my fault.
    originally, I get the mail addresses from ./scripts/get_maintainer.pl.
    it is a useful tool to help members to find mail addresses.
    I should fully use it, but should not depend on it.

  next time, I should think of the mail addresses, after get them from the tool.

  thanks.

-- 
Chen Gang

Asianux Corporation

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined
  2013-03-28 18:31 ` David Miller
  2013-03-29  1:13   ` Chen Gang
@ 2013-03-29  1:20   ` Chen Gang F T
  1 sibling, 0 replies; 4+ messages in thread
From: Chen Gang F T @ 2013-03-29  1:20 UTC (permalink / raw)
  To: David Miller; +Cc: gang.chen, edumazet, dborkman, wad, eparis, linux-kernel

On 2013年03月29日 02:31, David Miller wrote:
> Please post networking patches to netdev@vger.kernel.org, thanks.

  ok, thanks.

  it is my fault.
    originally, I get mail addresses by ./scripts/get_maintainers.pl
    it is a useful tool for members to get mail addresses.
    I should fully use it, but should not depend on it.

  next time
    I should think of the mail addresses, after get them from the tool.


  thanks.

-- 
Chen Gang

Flying Transformer

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-29  3:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28  5:59 [PATCH] include/linux: printk is needed in filter.h when CONFIG_BPF_JIT is defined Chen Gang
2013-03-28 18:31 ` David Miller
2013-03-29  1:13   ` Chen Gang
2013-03-29  1:20   ` Chen Gang F T

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox