WARNING: please write a help paragraph that fully describes the config symbol with at least 4 lines #61: FILE: kernel/Kconfig.kexec:49: +config KEXEC_BPF + bool "Enable bpf-prog to parse the kexec image" + depends on KEXEC_FILE + depends on DEBUG_INFO_BTF && BPF_SYSCALL + help + This is a feature to run bpf section inside a kexec image file, which + parses the image properly and help kernel set up kexec boot protocol + WARNING: externs should be avoided in .c files #135: FILE: kernel/kexec_bpf_loader.c:45: +void kexec_image_parser_anchor(struct kexec_context *context, CHECK: Alignment should match open parenthesis #136: FILE: kernel/kexec_bpf_loader.c:46: +void kexec_image_parser_anchor(struct kexec_context *context, + unsigned long parser_id); CHECK: Lines should not end with a '(' #144: FILE: kernel/kexec_bpf_loader.c:54: +__attribute__((used, optimize("O0"))) void kexec_image_parser_anchor( WARNING: Prefer __used over __attribute__((used)) #144: FILE: kernel/kexec_bpf_loader.c:54: +__attribute__((used, optimize("O0"))) void kexec_image_parser_anchor( WARNING: line length of 94 exceeds 80 columns #149: FILE: kernel/kexec_bpf_loader.c:59: + * To prevent linker from Identical Code Folding (ICF) with kexec_image_parser_anchor, WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst #152: FILE: kernel/kexec_bpf_loader.c:62: + volatile int dummy = 0; CHECK: Please don't use multiple blank lines #157: FILE: kernel/kexec_bpf_loader.c:67: + + ERROR: code indent should use tabs where possible #191: FILE: kernel/kexec_bpf_loader.c:101: +^I context.kdump = false;$ ERROR: code indent should use tabs where possible #193: FILE: kernel/kexec_bpf_loader.c:103: +^I context.kdump = true;$ CHECK: Blank lines aren't necessary after an open brace '{' #199: FILE: kernel/kexec_bpf_loader.c:109: + while (file_has_bpf_section(kernel_start, kernel_sz)) { + WARNING: line length of 90 exceeds 80 columns #203: FILE: kernel/kexec_bpf_loader.c:113: + file_get_section((const char *)kernel_start, ".bpf", &bpf_start, &bpf_sz); CHECK: extern prototypes should be avoided in .h files #280: FILE: kernel/kexec_internal.h:42: +extern int decompose_kexec_image(struct kimage *image, int extended_fd); total: 2 errors, 6 warnings, 5 checks, 205 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. NOTE: Whitespace errors detected. You may wish to use scripts/cleanpatch or scripts/cleanfile Commit ed82e424afaa ("kexec_file: Use bpf-prog to decompose image") 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.