[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <16adc61b46636c04c585ab5bede1334d02b44c85.1391955924.git.rashika.kheria@gmail.com>
Date: Sun, 9 Feb 2014 22:18:10 +0530
From: Rashika Kheria <rashika.kheria@...il.com>
To: "David S. Miller" <davem@...emloft.net>,
Daniel Borkmann <dborkman@...hat.com>,
Eric Dumazet <edumazet@...gle.com>,
Michal Sekletar <msekleta@...hat.com>,
Xi Wang <xi.wang@...il.com>,
Nicolas Dichtel <nicolas.dichtel@...nd.com>,
Alexei Starovoitov <ast@...mgrid.com>,
Chen Gang <gang.chen@...anux.com>,
linux-kernel@...r.kernel.org, josh@...htriplett.org
Subject: [PATCH v2 05/13] net: Add prototype declaration to header file include/linux/filter.h
Add prototype declaration to header file include/linux/filter.h
because it is used by more than one file.
This eliminates the following warning in core/filter.c:
net/core/filter.c:48:7: warning: no previous prototype for ‘bpf_internal_load_pointer_neg_helper’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@...il.com>
---
Changes since v1:
Incorrect Fix
include/linux/filter.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/filter.h b/include/linux/filter.h
index e568c8e..0d21259 100644
--- a/include/linux/filter.h
+++ b/include/linux/filter.h
@@ -53,6 +53,8 @@ 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);
extern void sk_decode_filter(struct sock_filter *filt, struct sock_filter *to);
+void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size);
+
#ifdef CONFIG_BPF_JIT
#include <stdarg.h>
#include <linux/linkage.h>
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists