WARNING: line length of 84 exceeds 80 columns #124: FILE: include/linux/oid_registry.h:149: + OID_hornet_data, /* 2.25.316487325684022475439036912669789383960 */ WARNING: line length of 87 exceeds 80 columns #294: FILE: security/hornet/hornet_lsm.c:66: + err = (memcmp(hash, &ctx->hashes[ctx->indexes[i] * SHA256_DIGEST_SIZE], CHECK: Alignment should match open parenthesis #303: FILE: security/hornet/hornet_lsm.c:75: +int hornet_next_map(void *context, size_t hdrlen, + unsigned char tag, CHECK: Please don't use multiple blank lines #312: FILE: security/hornet/hornet_lsm.c:84: + + CHECK: braces {} should be used on all arms of this statement #333: FILE: security/hornet/hornet_lsm.c:105: + if (vlen != 0) { [...] + } else [...] WARNING: line length of 88 exceeds 80 columns #335: FILE: security/hornet/hornet_lsm.c:107: + memcpy(&ctx->hashes[ctx->hash_count * SHA256_DIGEST_SIZE], value, vlen); CHECK: Unbalanced braces around else statement #336: FILE: security/hornet/hornet_lsm.c:108: + } else CHECK: Comparison to NULL could be written "!authattrs" #388: FILE: security/hornet/hornet_lsm.c:160: + if (err < 0 || authattrs == NULL) { WARNING: line length of 86 exceeds 80 columns #403: FILE: security/hornet/hornet_lsm.c:175: +static int hornet_bpf_prog_load_integrity(struct bpf_prog *prog, union bpf_attr *attr, WARNING: line length of 82 exceeds 80 columns #404: FILE: security/hornet/hornet_lsm.c:176: + struct bpf_token *token, bool is_kernel) WARNING: line length of 82 exceeds 80 columns #411: FILE: security/hornet/hornet_lsm.c:183: + return security_bpf_prog_load_post_integrity(prog, attr, token, is_kernel, WARNING: line length of 82 exceeds 80 columns #422: FILE: security/hornet/hornet_lsm.c:194: + security_add_hooks(hornet_hooks, ARRAY_SIZE(hornet_hooks), &hornet_lsmid); total: 0 errors, 7 warnings, 5 checks, 327 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 9a670fa39532 ("security: Hornet LSM") 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, 7 warnings, 5 checks, 327 lines checked