summaryrefslogtreecommitdiff
path: root/include/linux/bpf_defs.h
blob: 2185cd3966d436545e80258b7cdca24f25fcb219 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Subset of bpf.h declarations, split out so files that need only these
 * declarations can avoid bpf.h's full include cost.
 */
#ifndef _LINUX_BPF_DEFS_H
#define _LINUX_BPF_DEFS_H

#ifdef CONFIG_BPF_SYSCALL
bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write, unsigned long fault_ip);
#else
static inline bool bpf_arena_handle_page_fault(unsigned long addr, bool is_write,
					       unsigned long fault_ip)
{
	return false;
}
#endif

#endif /* _LINUX_BPF_DEFS_H */