WARNING: line length of 82 exceeds 80 columns #27: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:219: + struct bpf_map_create_opts *opts, const char *exp_msg) WARNING: Missing a blank line after declarations #32: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:224: + int fd; + LIBBPF_OPTS(bpf_syscall_common_attr_opts, copts); WARNING: line length of 89 exceeds 80 columns #39: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:231: + fd = bpf_map_create(map_type, map_name, key_size, value_size, max_entries, opts); WARNING: line length of 88 exceeds 80 columns #49: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:241: +static void test_map_create_array(struct bpf_map_create_opts *opts, const char *exp_msg) WARNING: line length of 95 exceeds 80 columns #56: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:248: + const char *msg = "btf_vmlinux_value_type_id can only be used with struct_ops maps.\n"; WARNING: Missing a blank line after declarations #57: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:249: + const char *msg = "btf_vmlinux_value_type_id can only be used with struct_ops maps.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, WARNING: line length of 122 exceeds 80 columns #66: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:258: + const char *msg = "btf_vmlinux_value_type_id is mutually exclusive with btf_key_type_id and btf_value_type_id.\n"; WARNING: Missing a blank line after declarations #67: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:259: + const char *msg = "btf_vmlinux_value_type_id is mutually exclusive with btf_key_type_id and btf_value_type_id.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, WARNING: Missing a blank line after declarations #78: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:270: + const char *msg = "Invalid btf_value_type_id.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, WARNING: Missing a blank line after declarations #88: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:280: + const char *msg = "Invalid map_extra.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, WARNING: Missing a blank line after declarations #98: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:290: + const char *msg = "Invalid numa_node.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, WARNING: Missing a blank line after declarations #109: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:301: + const char *msg = "Invalid map_type.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts); WARNING: Missing a blank line after declarations #117: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:309: + const char *msg = "Invalid map_token_fd.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, WARNING: Missing a blank line after declarations #128: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:320: + const char *msg = "Invalid map_name.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts); WARNING: Missing a blank line after declarations #136: FILE: tools/testing/selftests/bpf/prog_tests/map_init.c:328: + const char *msg = "Invalid btf_fd.\n"; + LIBBPF_OPTS(bpf_map_create_opts, opts, total: 0 errors, 15 warnings, 0 checks, 146 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 e03171f658f9 ("selftests/bpf: Add tests to verify map create failure log") 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, 15 warnings, 0 checks, 146 lines checked