Message ID | 20240814080743.1156166-1-jain.abhinav177@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6c569b77f0300f8a9960277c7094fa0f128eb811 |
Headers | show |
Series | [net,v3] selftest: af_unix: Fix kselftest compilation warnings | expand |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 14 Aug 2024 13:37:43 +0530 you wrote: > Change expected_buf from (const void *) to (const char *) > in function __recvpair(). > This change fixes the below warnings during test compilation: > > ``` > In file included from msg_oob.c:14: > msg_oob.c: In function ‘__recvpair’: > > [...] Here is the summary with links: - [net,v3] selftest: af_unix: Fix kselftest compilation warnings https://git.kernel.org/netdev/net/c/6c569b77f030 You are awesome, thank you!
diff --git a/tools/testing/selftests/net/af_unix/msg_oob.c b/tools/testing/selftests/net/af_unix/msg_oob.c index 16d0c172eaeb..535eb2c3d7d1 100644 --- a/tools/testing/selftests/net/af_unix/msg_oob.c +++ b/tools/testing/selftests/net/af_unix/msg_oob.c @@ -209,7 +209,7 @@ static void __sendpair(struct __test_metadata *_metadata, static void __recvpair(struct __test_metadata *_metadata, FIXTURE_DATA(msg_oob) *self, - const void *expected_buf, int expected_len, + const char *expected_buf, int expected_len, int buf_len, int flags) { int i, ret[2], recv_errno[2], expected_errno = 0;