Re: [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.ccompiling

From: Jan Engelhardt
Date: Thu Jan 17 2008 - 17:54:00 EST



On Jan 17 2008 18:05, Michael Opdenacker wrote:
>>> +ifeq ($(CONFIG_INPUT_PCSPKR),y)
>>> + obj-y += pcspeaker.o
>>> +endif
>>>
>>
>> I'm not sure this does what you want. What if CONFIG_INPUT_PCSPKR = m?
>>
>Does it make sense to compile arch/x86/kernel/pcspeaker.c as a module?

Hardly. No. Absolutely not. pcspeaker.c is a mere 20 lines - when
compiled (on x86_64) a mere 1824 bytes (and most of that is probably
ELF overhead). If you build that as a module, be sure to add an extra
6 to 7 kilobyte as module overhead. No, this is not really worth it.
--
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/