Thread (2 messages) read the whole thread 2 messages, 2 authors, 2025-11-27
STALE247d

[PATCH net-next] selftests: af_unix: remove unused stdlib.h include

From: Sunday Adelodun <hidden>
Date: 2025-11-25 11:37:25
Also in: linux-kernel-mentees, linux-kselftest, lkml, oe-kbuild-all
Subsystem: kernel selftest framework, networking [general], networking [unix sockets], the rest · Maintainers: Shuah Khan, Shuah Khan, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Kuniyuki Iwashima, Linus Torvalds

The unix_connreset.c test included <stdlib.h>, but no symbol from that
header is used. This causes a fatal build error under certain
linux-next configurations where stdlib.h is not available.

Remove the unused include to fix the build.

Reported-by: kernel test robot <redacted>
Closes: https://lore.kernel.org/r/202511221800.hcgCKvVa-lkp@intel.com/ (local)
Signed-off-by: Sunday Adelodun <redacted>
---
 tools/testing/selftests/net/af_unix/unix_connreset.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/tools/testing/selftests/net/af_unix/unix_connreset.c b/tools/testing/selftests/net/af_unix/unix_connreset.c
index bffef2b54bfd..9844e829aed5 100644
--- a/tools/testing/selftests/net/af_unix/unix_connreset.c
+++ b/tools/testing/selftests/net/af_unix/unix_connreset.c
@@ -14,7 +14,6 @@
  */
 
 #define _GNU_SOURCE
-#include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
-- 
2.43.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help