diff options
| author | Jason Xing <[email protected]> | 2024-10-01 23:32:42 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-10-08 03:28:46 +0000 |
| commit | c50fc1cbfd71dcb1d70fd593b2af7c92af465921 (patch) | |
| tree | d9e738edfe76787b84bd39f7e8d67748f2f26627 /tools/lib/bpf/linker.c | |
| parent | bpf: Fix the xdp_adjust_tail sample prog issue (diff) | |
| download | kernel-c50fc1cbfd71dcb1d70fd593b2af7c92af465921.tar.gz kernel-c50fc1cbfd71dcb1d70fd593b2af7c92af465921.zip | |
bpf: syscall_nrs: Disable no previous prototype warnning
In some environments (gcc treated as error in W=1, which is default), if we
make -C samples/bpf/, it will be stopped because of
"no previous prototype" error like this:
../samples/bpf/syscall_nrs.c:7:6:
error: no previous prototype for ‘syscall_defines’ [-Werror=missing-prototypes]
void syscall_defines(void)
^~~~~~~~~~~~~~~
Actually, this file meets our expectatations because it will be converted to
a .h file. In this way, it's correct. Considering the warnning stopping us
compiling, we can remove the warnning directly.
Signed-off-by: Jason Xing <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lore.kernel.org/all/CAEf4BzaVdr_0kQo=+jPLN++PvcU6pwTjaPVEA880kgDN94TZYw@mail.gmail.com/
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions
