Re: [PATCH] microcode: Fix mc_cpu_notifier section warning

From: Andrew Morton
Date: Wed Dec 20 2006 - 19:49:48 EST


On Tue, 19 Dec 2006 09:10:25 +0000 (GMT)
Tigran Aivazian <tigran@xxxxxxxxxxxxxxxxxxxx> wrote:

> Hi Jean,
>
> On Tue, 19 Dec 2006, Jean Delvare wrote:
> > I don't see anything in arch/i386/kernel/microcode.c depending on
> > CONFIG_HOTPLUG_CPU (in 2.6.20-rc1), sorry.
>
> I run 2.6.19.1 and there both mc_cpu_notifier (which your patch modified)
> and mc_cpu_callback (which uses mc_cpu_notifier) are inside #ifdef
> CONFIG_HOTPLUG_CPU.

Yes, we now compile this code unconditionally and rely upon the linker to
throw it away.

Allegedly, this works. How toolchain-version-dependent it is I don't know.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/