diff options
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r-- | include/linux/bpf.h | 5 |
1 files changed, 5 insertions, 0 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 | { |