[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <90c793c3-91fd-4808-8fea-cbd07d2098e0@linuxfoundation.org>
Date: Thu, 24 Jul 2025 12:26:21 -0600
From: Shuah Khan <skhan@...uxfoundation.org>
To: paulmck@...nel.org
Cc: Christian Brauner <brauner@...nel.org>, Shuah Khan <shuah@...nel.org>,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH v2] selftests/pidfd: Fix duplicate-symbol warnings for
SCHED_ CPP symbols
On 7/23/25 17:13, Paul E. McKenney wrote:
> 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. ]
Looks good to me.
thanks,
-- Shuah
Powered by blists - more mailing lists