ERROR: Bad function definition - int func() should probably be int func(void) #67: FILE: tools/testing/selftests/net/sample_map_ret0.bpf.c:20: +SEC("xdp") int func() WARNING: Prefer __section(name) over __attribute__((section(name))) #78: FILE: tools/testing/selftests/net/sample_ret0.bpf.c:3: +#define SEC(name) __attribute__((section(name), used)) WARNING: Prefer __used over __attribute__((used)) #78: FILE: tools/testing/selftests/net/sample_ret0.bpf.c:3: +#define SEC(name) __attribute__((section(name), used)) total: 1 errors, 2 warnings, 0 checks, 34 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. Commit 8fcf57a1b619 ("selftests: net: declare section names for bpf_offload") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE GIT_COMMIT_ID MACRO_ARG_REUSE NO_AUTHOR_SIGN_OFF NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.