Re: [PATCH 09/10] sched/preempt: fix duplicate extern declarations

From: Arnd Bergmann

Date: Fri Nov 13 2026 - 10:24:51 EST


On Fri, Nov 13, 2026, at 01:14, Safocl Stollmannovic wrote:
> Compiling a kernel module with a C++ compiler results in a duplicate
> echo ‘extern’ specifier error.
> This occurs because the code contains , and
> expands to when processed by a C++ compiler.
> The specifier must be removed.
> https://bugzilla.kernel.org/show_bug.cgi?id=222257

The changelog text makes no sense. We don't support building the
kernel with C++ and this is not a user-visible header.

Leaving out the 'extern' in declarations is just a preference
in coding style, no need to send patches for that.

Arnd