]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests: af_unix: remove unused stdlib.h include
authorSunday Adelodun <adelodunolaoluwa@yahoo.com>
Tue, 25 Nov 2025 11:36:48 +0000 (12:36 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Nov 2025 11:42:51 +0000 (12:42 +0100)
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 <lkp@intel.com>
Closes: https://lore.kernel.org/r/202511221800.hcgCKvVa-lkp@intel.com/
Signed-off-by: Sunday Adelodun <adelodunolaoluwa@yahoo.com>
Link: https://patch.msgid.link/20251125113648.25903-1-adelodunolaoluwa@yahoo.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/af_unix/unix_connreset.c

index 6eb936207b3129941e4f0a8cd4878292405e8464..08c1de8f5a98fcaebe1e62b834bbba267951e7f0 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #define _GNU_SOURCE
-#include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>