WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #43: new file mode 100644 WARNING: line length of 85 exceeds 80 columns #80: 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 #191: 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 #194: 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 #200: 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 #203: 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 #206: 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 #212: 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 #215: 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 #220: 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 #223: 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 #226: 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 #233: 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 #253: 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 #256: 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 #262: 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 #265: 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 #268: 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 #271: 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 #273: 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 #276: 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 #278: 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 #281: 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 #284: 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 #291: 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 #294: 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 #297: 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 bc20f4e046df ("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