LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Matt Mackall <mpm@selenic.com>
To: Michael Opdenacker <michael-lists@free-electrons.com>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org, Linux-tiny@selenic.com,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c?compiling
Date: Fri, 18 Jan 2008 11:10:19 -0600 [thread overview]
Message-ID: <1200676219.3835.8.camel@cinder.waste.org> (raw)
In-Reply-To: <4790D3E3.4060409@free-electrons.com>
On Fri, 2008-01-18 at 17:29 +0100, Michael Opdenacker wrote:
> On 01/18/2008 02:50 PM, Matt Mackall wrote:
> > On Fri, 2008-01-18 at 14:03 +0100, Michael Opdenacker wrote:
> >
> >> However, wouldn't the Makefile look nicer if we introduced a
> >> CONFIG_PCSPEAKER setting as in the mips platform? We would just have:
> >>
> >> obj-$(CONFIG_PCSPEAKER) += pcspeaker.o
> >>
> >
> > Yes, that would be cleaner. Not worth it for just x86, but there are
> > about 6 other arches that use CONFIG_INPUT_PCSPKR. Do that in one patch
> > on top of this one and send it to Andrew (who will pull the above into
> > his tree from Ingo shortly).
> >
> Well, sorry for consuming your time with this very small change, but I'm
> not sure I understand what you're suggesting... Here's what I'd do:
>
> * I'd define CONFIG_PCSPEAKER for x86 (typically in
> arch/x86/Kconfig), to be set to "y" when CONFIG_INPUT_SPKR is
> set. This is what minimizes the changes to make.
> * This way, we can just have:
> obj-$(CONFIG_PCSPEAKER) += pcspeaker.o
Probably makes sense to define it right next to INPUT_PCSPKR in
drivers/input/Kconfig.
Then do the appropriate fix for all arches mentioned in INPUT_PCSPKR.
For extra points, you can move the duplicate pcspeaker.c code out of all
those arches and stash it somewhere in drivers/input. Presumably it's
possible to get it to link into the kernel even when INPUT is modular.
> Sounds fine! Don't hesitate to let us know about the lower-hanging fruit
> you're thinking about. Here are the main things I have so far:
>
> * Ideas in the existing Linux-Tiny patchset.
> * Disable support for non-Intel processors in x86 (cyrix.c,
> centaur.c, transmeta.c, nexgen.c, umc.c in arch/x86/kernel/cpu).
> As far as I remember, I saved 15 KB when I first experimented with
> this).
Isn't that already in -tiny?
> * Disable support for readahead, page writeback, pdflush and swap
> when we have no storage at all (typically booting from an
> initramfs). This corresponds to 69 KB of source code!
That'd be nice, yes. It would probably make sense to be able to disable
just readahead support when we're working with only solid-state devices.
--
Mathematics is the supreme nostalgia of our time.
next prev parent reply other threads:[~2008-01-18 17:11 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-17 15:43 [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c compiling Michael Opdenacker
2008-01-17 16:36 ` Matt Mackall
2008-01-17 17:05 ` Michael Opdenacker
2008-01-17 17:13 ` Matt Mackall
2008-01-17 18:32 ` Michael Opdenacker
2008-01-17 22:15 ` Michael Opdenacker
2008-01-18 3:16 ` Taral
2008-01-18 8:22 ` Michael Opdenacker
2008-01-19 7:21 ` Taral
2008-01-18 11:02 ` [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c?compiling Ingo Molnar
2008-01-18 12:14 ` Michael Opdenacker
2008-01-18 12:25 ` Ingo Molnar
2008-01-18 12:29 ` Ingo Molnar
2008-01-18 13:03 ` Michael Opdenacker
2008-01-18 13:50 ` Matt Mackall
2008-01-18 13:57 ` Ingo Molnar
2008-01-18 14:04 ` Matt Mackall
2008-01-18 16:29 ` Michael Opdenacker
2008-01-18 17:10 ` Matt Mackall [this message]
2008-01-18 21:09 ` Ingo Molnar
2008-01-18 22:39 ` Matt Mackall
2008-01-22 14:39 ` Ingo Molnar
2008-01-22 16:37 ` Matt Mackall
2008-01-22 18:58 ` Sam Ravnborg
2008-01-22 19:17 ` Matt Mackall
2008-01-20 4:59 ` Rob Landley
2008-01-20 16:44 ` Matt Mackall
2008-01-21 15:31 ` Michael Opdenacker
2008-01-23 22:30 ` Michael Opdenacker
2008-01-24 17:09 ` [PATCH] x86: fix?unconditional?arch/x86/kernel/pcspeaker.c?compiling Adrian Bunk
2008-01-24 20:12 ` [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c?compiling Dmitri Vorobiev
2008-01-25 16:09 ` Ralf Baechle
2008-01-20 12:25 ` Rob Landley
2008-01-17 22:44 ` [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c compiling Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1200676219.3835.8.camel@cinder.waste.org \
--to=mpm@selenic.com \
--cc=Linux-tiny@selenic.com \
--cc=linux-kernel@vger.kernel.org \
--cc=michael-lists@free-electrons.com \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--subject='Re: [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c?compiling' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).