Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests: af_unix: remove unused stdlib.h include

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>

authored by

Sunday Adelodun and committed by
Paolo Abeni
5c9c1e78 ed245fe9

-1
-1
tools/testing/selftests/net/af_unix/unix_connreset.c
··· 14 14 */ 15 15 16 16 #define _GNU_SOURCE 17 - #include <stdlib.h> 18 17 #include <string.h> 19 18 #include <fcntl.h> 20 19 #include <unistd.h>