treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / samples / bpf / syscall_nrs.c
blob88f9400524509d85122967d694e142257abab315
1 // SPDX-License-Identifier: GPL-2.0
2 #include <uapi/linux/unistd.h>
3 #include <linux/kbuild.h>
5 #define SYSNR(_NR) DEFINE(SYS ## _NR, _NR)
7 void syscall_defines(void)
9 COMMENT("Linux system call numbers.");
10 SYSNR(__NR_write);
11 SYSNR(__NR_read);
12 #ifdef __NR_mmap2
13 SYSNR(__NR_mmap2);
14 #endif
15 #ifdef __NR_mmap
16 SYSNR(__NR_mmap);
17 #endif