[lkml]   [2014]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
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 <>

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);
#include <stdarg.h>
#include <linux/linkage.h>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2014-02-09 18:21    [W:0.189 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site