CHECK: extern prototypes should be avoided in .h files #25: FILE: tools/testing/selftests/bpf/bpf_kfuncs.h:95: +extern int bpf_init_inode_xattr(const char *name__str, WARNING: const array should probably be static const #122: FILE: tools/testing/selftests/bpf/progs/test_init_inode_xattr.c:14: +const char xattr_name[] = "bpf.test_label"; total: 0 errors, 1 warnings, 1 checks, 106 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 01667ff20a26 ("selftests/bpf: add tests for bpf_init_inode_xattr kfunc") has style problems, please review. NOTE: Ignored message types: ALLOC_SIZEOF_STRUCT BAD_REPORTED_BY_LINK CAMELCASE COMMIT_LOG_LONG_LINE FILE_PATH_CHANGES 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. total: 0 errors, 1 warnings, 1 checks, 106 lines checked