1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/net/af_unix
Abhinav Jain 6c569b77f0 selftest: af_unix: Fix kselftest compilation warnings
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’:

../../kselftest_harness.h:106:40: warning: format ‘%s’ expects argument
of type ‘char *’,but argument 6 has type ‘const void *’ [-Wformat=]

../../kselftest_harness.h:101:17: note: in expansion of macro ‘__TH_LOG’
msg_oob.c:235:17: note: in expansion of macro ‘TH_LOG’

../../kselftest_harness.h:106:40: warning: format ‘%s’ expects argument
of type ‘char *’,but argument 6 has type ‘const void *’ [-Wformat=]

../../kselftest_harness.h:101:17: note: in expansion of macro ‘__TH_LOG’
msg_oob.c:259:25: note: in expansion of macro ‘TH_LOG’
```

Fixes: d098d77232 ("selftest: af_unix: Add msg_oob.c.")
Signed-off-by: Abhinav Jain <jain.abhinav177@gmail.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20240814080743.1156166-1-jain.abhinav177@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-08-14 20:38:27 -07:00
..
config selftest: af_unix: Add Kconfig file. 2024-06-21 14:26:11 +01:00
diag_uid.c selftests/net: unix: fix unused variable compiler warning 2023-11-27 18:12:07 -08:00
Makefile selftest: af_unix: Add msg_oob.c. 2024-06-27 12:05:00 +02:00
msg_oob.c selftest: af_unix: Fix kselftest compilation warnings 2024-08-14 20:38:27 -07:00
scm_pidfd.c selftests: net: remove unused variables 2023-10-16 09:20:08 +01:00
scm_rights.c selftest: af_unix: Add test case for backtrack after finalising SCC. 2024-07-03 19:36:22 -07:00
unix_connect.c selftests: net: af_unix: Fix a build error of unix_connect.c. 2022-07-20 21:02:15 -07:00