CHECK: Macro argument 'MEMBER' may be better as '(MEMBER)' to avoid precedence issues #36: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:8: +#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER)) WARNING: line length of 81 exceeds 80 columns #45: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:248: +#define unaligned_access(type, ctx, field) \ WARNING: line length of 81 exceeds 80 columns #46: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:249: + SEC(type) \ WARNING: line length of 81 exceeds 80 columns #47: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:250: + __description("unaligned access on field " #field " of " #ctx) \ WARNING: line length of 81 exceeds 80 columns #48: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:251: + __failure __msg("invalid bpf_context access") \ WARNING: line length of 81 exceeds 80 columns #49: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:252: + __naked void unaligned_ctx_access_##ctx##field(void) \ WARNING: line length of 81 exceeds 80 columns #50: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:253: + { \ WARNING: line length of 81 exceeds 80 columns #51: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:254: + asm volatile (" \ WARNING: Avoid line continuations in quoted strings #51: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:254: + asm volatile (" \ WARNING: line length of 81 exceeds 80 columns #52: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:255: + r1 = *(u%[size] *)(r1 + %[off]); \ WARNING: line length of 81 exceeds 80 columns #53: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:256: + r0 = 0; \ WARNING: line length of 81 exceeds 80 columns #54: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:257: + exit;" \ WARNING: Avoid unnecessary line continuations #54: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:257: + exit;" \ WARNING: Avoid line continuations in quoted strings #54: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:257: + exit;" \ WARNING: line length of 81 exceeds 80 columns #55: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:258: + : \ WARNING: line length of 81 exceeds 80 columns #56: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:259: + : __imm_const(size, sizeof_field(struct ctx, field) * 8), \ WARNING: line length of 81 exceeds 80 columns #57: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:260: + __imm_const(off, offsetof(struct ctx, field) + 1) \ WARNING: line length of 81 exceeds 80 columns #58: FILE: tools/testing/selftests/bpf/progs/verifier_ctx.c:261: + : __clobber_all); \ total: 0 errors, 17 warnings, 1 checks, 36 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 2874fa07a11b ("selftests/bpf: Test for unaligned flow_dissector ctx access") 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. total: 0 errors, 17 warnings, 1 checks, 36 lines checked