CHECK: spaces preferred around that '/' (ctx:VxV) #49: FILE: kernel/kexec_file.c:913: + for (k = 0; k < sechdrs[i].sh_size/sizeof(Elf_Sym); k++) { ^ CHECK: Alignment should match open parenthesis #59: FILE: kernel/kexec_file.c:923: + pr_debug("Symbol: %s has bad section index %d.\n", + name, syms[k].st_shndx); CHECK: extern prototypes should be avoided in .h files #135: FILE: kernel/kexec_internal.h:43: +extern const Elf_Sym *elf_find_symbol(const Elf_Ehdr *ehdr, const char *name); total: 0 errors, 0 warnings, 3 checks, 108 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 c0220f9c5a4e ("kexec_file: Factor out routine to find a symbol in ELF") 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, 0 warnings, 3 checks, 108 lines checked