CHECK: Alignment should match open parenthesis #55: FILE: tools/testing/vsock/control.c:69: + setsockopt_int_check(fd, SOL_SOCKET, SO_REUSEADDR, 1, + "setsockopt SO_REUSEADDR"); CHECK: Alignment should match open parenthesis #103: FILE: tools/testing/vsock/util.c:657: +void setsockopt_ull_check(int fd, int level, int optname, + unsigned long long val, char const *errmsg) CHECK: Alignment should match open parenthesis #112: FILE: tools/testing/vsock/util.c:666: + fprintf(stderr, "setsockopt err: %s (%d)\n", + strerror(errno), errno); CHECK: Alignment should match open parenthesis #122: FILE: tools/testing/vsock/util.c:676: + fprintf(stderr, "getsockopt err: %s (%d)\n", + strerror(errno), errno); CHECK: Alignment should match open parenthesis #128: FILE: tools/testing/vsock/util.c:682: + fprintf(stderr, "size mismatch: set %zu got %d\n", sizeof(val), + chklen); CHECK: Alignment should match open parenthesis #134: FILE: tools/testing/vsock/util.c:688: + fprintf(stderr, "value mismatch: set %llu got %llu\n", val, + chkval); CHECK: Alignment should match open parenthesis #146: FILE: tools/testing/vsock/util.c:700: +void setsockopt_int_check(int fd, int level, int optname, int val, + char const *errmsg) CHECK: Alignment should match open parenthesis #155: FILE: tools/testing/vsock/util.c:709: + fprintf(stderr, "setsockopt err: %s (%d)\n", + strerror(errno), errno); CHECK: Alignment should match open parenthesis #165: FILE: tools/testing/vsock/util.c:719: + fprintf(stderr, "getsockopt err: %s (%d)\n", + strerror(errno), errno); CHECK: Alignment should match open parenthesis #171: FILE: tools/testing/vsock/util.c:725: + fprintf(stderr, "size mismatch: set %zu got %d\n", sizeof(val), + chklen); CHECK: Alignment should match open parenthesis #177: FILE: tools/testing/vsock/util.c:731: + fprintf(stderr, "value mismatch: set %d got %d\n", + val, chkval); CHECK: Alignment should match open parenthesis #196: FILE: tools/testing/vsock/util.c:750: +void setsockopt_timeval_check(int fd, int level, int optname, + struct timeval val, char const *errmsg) CHECK: Alignment should match open parenthesis #205: FILE: tools/testing/vsock/util.c:759: + fprintf(stderr, "setsockopt err: %s (%d)\n", + strerror(errno), errno); CHECK: No space is necessary after a cast #211: FILE: tools/testing/vsock/util.c:765: + mem_invert((unsigned char *) &chkval, sizeof(chkval)); CHECK: Alignment should match open parenthesis #217: FILE: tools/testing/vsock/util.c:771: + fprintf(stderr, "getsockopt err: %s (%d)\n", + strerror(errno), errno); CHECK: Alignment should match open parenthesis #223: FILE: tools/testing/vsock/util.c:777: + fprintf(stderr, "size mismatch: set %zu got %d\n", sizeof(val), + chklen); CHECK: Alignment should match open parenthesis #229: FILE: tools/testing/vsock/util.c:783: + fprintf(stderr, "value mismatch: set %ld:%ld got %ld:%ld\n", + val.tv_sec, val.tv_usec, CHECK: Alignment should match open parenthesis #242: FILE: tools/testing/vsock/util.c:796: + setsockopt_int_check(fd, SOL_SOCKET, SO_ZEROCOPY, 1, + "setsockopt SO_ZEROCOPY"); CHECK: Alignment should match open parenthesis #253: FILE: tools/testing/vsock/util.h:72: +void setsockopt_ull_check(int fd, int level, int optname, + unsigned long long val, char const *errmsg); CHECK: Alignment should match open parenthesis #255: FILE: tools/testing/vsock/util.h:74: +void setsockopt_int_check(int fd, int level, int optname, int val, + char const *errmsg); CHECK: Alignment should match open parenthesis #257: FILE: tools/testing/vsock/util.h:76: +void setsockopt_timeval_check(int fd, int level, int optname, + struct timeval val, char const *errmsg); CHECK: Alignment should match open parenthesis #295: FILE: tools/testing/vsock/vsock_test.c:448: + setsockopt_ull_check(fd, AF_VSOCK, SO_VM_SOCKETS_BUFFER_MAX_SIZE, + sock_buf_size, CHECK: Alignment should match open parenthesis #304: FILE: tools/testing/vsock/vsock_test.c:452: + setsockopt_ull_check(fd, AF_VSOCK, SO_VM_SOCKETS_BUFFER_SIZE, + sock_buf_size, "setsockopt(SO_VM_SOCKETS_BUFFER_SIZE)"); CHECK: Alignment should match open parenthesis #317: FILE: tools/testing/vsock/vsock_test.c:585: + setsockopt_timeval_check(fd, SOL_SOCKET, SO_RCVTIMEO, tv, + "setsockopt(SO_RCVTIMEO)"); CHECK: Alignment should match open parenthesis #331: FILE: tools/testing/vsock/vsock_test.c:852: + setsockopt_int_check(fd, SOL_SOCKET, SO_RCVLOWAT, + lowat_val, "setsockopt(SO_RCVLOWAT)"); CHECK: Alignment should match open parenthesis #345: FILE: tools/testing/vsock/vsock_test.c:1377: + setsockopt_ull_check(fd, AF_VSOCK, SO_VM_SOCKETS_BUFFER_SIZE, + sock_buf_size, "setsockopt(SO_VM_SOCKETS_BUFFER_SIZE)"); CHECK: Alignment should match open parenthesis #359: FILE: tools/testing/vsock/vsock_test.c:1387: + setsockopt_int_check(fd, SOL_SOCKET, SO_RCVLOWAT, + recv_buf_size, "setsockopt(SO_RCVLOWAT)"); CHECK: Alignment should match open parenthesis #373: FILE: tools/testing/vsock/vsock_test.c:1430: + setsockopt_int_check(fd, SOL_SOCKET, SO_RCVLOWAT, + recv_buf_size, "setsockopt(SO_RCVLOWAT)"); total: 0 errors, 0 warnings, 28 checks, 326 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 25c67ea99271 ("vsock/test: verify socket options after setting them") 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, 0 warnings, 28 checks, 326 lines checked