aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2025-07-23 23:13:45 +0000
committerShuah Khan <[email protected]>2025-07-24 22:14:45 +0000
commit30fb5e134f05800dc424f8aa1d69841a6bdd9a54 (patch)
treedb3ce386ffc4d27812e07cb9b79c2a9aa363ceac /net/unix/af_unix.c
parentselftests/tracing: Fix false failure of subsystem event test (diff)
downloadkernel-30fb5e134f05800dc424f8aa1d69841a6bdd9a54.tar.gz
kernel-30fb5e134f05800dc424f8aa1d69841a6bdd9a54.zip
selftests/pidfd: Fix duplicate-symbol warnings for SCHED_ CPP symbols
The pidfd selftests run in userspace and include both userspace and kernel header files. On some distros (for example, CentOS), this results in duplicate-symbol warnings in allmodconfig builds, while on other distros (for example, Ubuntu) it does not. Therefore, use #undef to get rid of the userspace definitions in favor of the kernel definitions. Other ways of handling this include splitting up the selftest code so that the userspace definitions go into one translation unit and the kernel definitions into another (which might or might not be feasible) or to adjust compiler command-line options to suppress the warnings (which might or might not be desirable). [ paulmck: Apply Shuah Khan feedback. ] Link: https://lore.kernel.org/r/cc7e4fe7-299f-4bf3-af46-df6551d61997@paulmck-laptop Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Shuah Khan <[email protected]> Cc: Christian Brauner <[email protected]> Cc: <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions