WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #42: new file mode 100644 WARNING: line length of 85 exceeds 80 columns #79: FILE: tools/testing/selftests/net/tcp_port_share.c:33: + return connect(fd, &(struct sockaddr){ AF_UNSPEC }, sizeof(struct sockaddr)); WARNING: line length of 82 exceeds 80 columns #190: FILE: tools/testing/selftests/net/tcp_port_share.c:144: + ASSERT_EQ(setsockopt(ln, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #193: FILE: tools/testing/selftests/net/tcp_port_share.c:147: + ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 89 exceeds 80 columns #199: FILE: tools/testing/selftests/net/tcp_port_share.c:153: + ASSERT_EQ(setsockopt(c1, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #202: FILE: tools/testing/selftests/net/tcp_port_share.c:156: + ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 90 exceeds 80 columns #205: FILE: tools/testing/selftests/net/tcp_port_share.c:159: + ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str); WARNING: line length of 82 exceeds 80 columns #211: FILE: tools/testing/selftests/net/tcp_port_share.c:165: + ASSERT_EQ(setsockopt(pb, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #214: FILE: tools/testing/selftests/net/tcp_port_share.c:168: + ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 89 exceeds 80 columns #219: FILE: tools/testing/selftests/net/tcp_port_share.c:173: + ASSERT_EQ(setsockopt(c2, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #222: FILE: tools/testing/selftests/net/tcp_port_share.c:176: + ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 87 exceeds 80 columns #225: FILE: tools/testing/selftests/net/tcp_port_share.c:179: + ASSERT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str); WARNING: line length of 90 exceeds 80 columns #232: FILE: tools/testing/selftests/net/tcp_port_share.c:186: + EXPECT_EQ(connect(c2, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str); WARNING: line length of 82 exceeds 80 columns #252: FILE: tools/testing/selftests/net/tcp_port_share.c:206: + ASSERT_EQ(setsockopt(ln, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #255: FILE: tools/testing/selftests/net/tcp_port_share.c:209: + ASSERT_EQ(bind(ln, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 89 exceeds 80 columns #261: FILE: tools/testing/selftests/net/tcp_port_share.c:215: + ASSERT_EQ(setsockopt(c1, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #264: FILE: tools/testing/selftests/net/tcp_port_share.c:218: + ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 90 exceeds 80 columns #267: FILE: tools/testing/selftests/net/tcp_port_share.c:221: + ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str); WARNING: line length of 89 exceeds 80 columns #270: FILE: tools/testing/selftests/net/tcp_port_share.c:224: + /* Disconnect the socket and bind it to : to block the port */ WARNING: line length of 82 exceeds 80 columns #272: FILE: tools/testing/selftests/net/tcp_port_share.c:226: + ASSERT_EQ(setsockopt(c1, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #275: FILE: tools/testing/selftests/net/tcp_port_share.c:229: + ASSERT_EQ(bind(c1, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 83 exceeds 80 columns #277: FILE: tools/testing/selftests/net/tcp_port_share.c:231: + /* Trigger port-addr bucket state update with another bind() and close() */ WARNING: line length of 82 exceeds 80 columns #280: FILE: tools/testing/selftests/net/tcp_port_share.c:234: + ASSERT_EQ(setsockopt(pb, SOL_SOCKET, SO_REUSEADDR, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #283: FILE: tools/testing/selftests/net/tcp_port_share.c:237: + ASSERT_EQ(bind(pb, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 89 exceeds 80 columns #290: FILE: tools/testing/selftests/net/tcp_port_share.c:244: + ASSERT_EQ(setsockopt(c2, SOL_IP, IP_BIND_ADDRESS_NO_PORT, &one, sizeof(one)), 0); WARNING: line length of 84 exceeds 80 columns #293: FILE: tools/testing/selftests/net/tcp_port_share.c:247: + ASSERT_EQ(bind(c2, &addr.sa, addr.len), 0) TH_LOG("bind(%s): %m", addr.str); WARNING: line length of 87 exceeds 80 columns #296: FILE: tools/testing/selftests/net/tcp_port_share.c:250: + EXPECT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str); total: 0 errors, 27 warnings, 0 checks, 265 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 cc083abd2ca7 ("selftests/net: Test tcp port reuse after unbinding a socket") 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, 27 warnings, 0 checks, 265 lines checked