diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/bpf.h | 5 | ||||
| -rw-r--r-- | include/linux/netfilter_bridge/ebtables.h | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index 8390859e79e7..f1af7d63d678 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h | |||
| @@ -368,6 +368,11 @@ static inline void __bpf_prog_uncharge(struct user_struct *user, u32 pages) | |||
| 368 | { | 368 | { |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | static inline int bpf_obj_get_user(const char __user *pathname) | ||
| 372 | { | ||
| 373 | return -EOPNOTSUPP; | ||
| 374 | } | ||
| 375 | |||
| 371 | static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, | 376 | static inline struct net_device *__dev_map_lookup_elem(struct bpf_map *map, |
| 372 | u32 key) | 377 | u32 key) |
| 373 | { | 378 | { |
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h index 2c2a5514b0df..528b24c78308 100644 --- a/include/linux/netfilter_bridge/ebtables.h +++ b/include/linux/netfilter_bridge/ebtables.h | |||
| @@ -108,9 +108,10 @@ struct ebt_table { | |||
| 108 | 108 | ||
| 109 | #define EBT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) & \ | 109 | #define EBT_ALIGN(s) (((s) + (__alignof__(struct _xt_align)-1)) & \ |
| 110 | ~(__alignof__(struct _xt_align)-1)) | 110 | ~(__alignof__(struct _xt_align)-1)) |
| 111 | extern struct ebt_table *ebt_register_table(struct net *net, | 111 | extern int ebt_register_table(struct net *net, |
| 112 | const struct ebt_table *table, | 112 | const struct ebt_table *table, |
| 113 | const struct nf_hook_ops *); | 113 | const struct nf_hook_ops *ops, |
| 114 | struct ebt_table **res); | ||
| 114 | extern void ebt_unregister_table(struct net *net, struct ebt_table *table, | 115 | extern void ebt_unregister_table(struct net *net, struct ebt_table *table, |
| 115 | const struct nf_hook_ops *); | 116 | const struct nf_hook_ops *); |
| 116 | extern unsigned int ebt_do_table(struct sk_buff *skb, | 117 | extern unsigned int ebt_do_table(struct sk_buff *skb, |
