All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitri Vorobiev <dmitri.vorobiev@gmail.com>
To: Michael Opdenacker <michael-lists@free-electrons.com>
Cc: Matt Mackall <mpm@selenic.com>, Ingo Molnar <mingo@elte.hu>,
	linux-kernel@vger.kernel.org, Linux-tiny@selenic.com,
	Thomas Gleixner <tglx@linutronix.de>,
	ralf@linux-mips.org
Subject: Re: [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c?compiling
Date: Thu, 24 Jan 2008 23:12:12 +0300	[thread overview]
Message-ID: <4798F11C.2020105@gmail.com> (raw)
In-Reply-To: <200801232330.12331.michael-lists@free-electrons.com>

Michael Opdenacker пишет:
> On Friday 18 January 2008, Matt Mackall wrote:
>> 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.
> 
> Here's the patch, after spending some time to get familiar with git.
> 
> The patch is against git x86/mm, and it seems to work fine on x86. However,
> on x86, you no longer have /sys/devices/platform/pcspkr after
> running "make allnoconfig". To get it, you have to explicitely add support
> to CONFIG_INPUT_PCSPKR (m or y). I hope this is fine.
> 
> I'm copying the MIPS maintainer as this patch touches his tree too.

This patch does not apply cleanly to linux-mips Git tree:

----> snip
patching file arch/x86/kernel/Makefile
Hunk #1 FAILED at 69.
1 out of 1 hunk FAILED -- saving rejects to file arch/x86/kernel/Makefile.rej
----> snip

I believe this is because the linux-mips tree and the -mm tree are not in sync.

> 
> On MIPS, there should be no impact though, as CONFIG_PCSPEAKER is set in
> defconfig files.
> 
> In other architectures where CONFIG_INPUT_PCSPKR can exist,
> there is a change: when CONFIG_INPUT_PCSPKR is set, the platform device
> will be added, while it didn't exist before. I hope this is fine.
> 

It seems tempting to include at least Alpha in this patch, because they
have a device initcall identical to the one, which you're removing from
the MIPS and x86 arch code.

Thanks,

Dmitri

  parent reply	other threads:[~2008-01-24 20:12 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
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                           ` Dmitri Vorobiev [this message]
2008-01-25 16:09                             ` [PATCH] x86: fix unconditional arch/x86/kernel/pcspeaker.c?compiling 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=4798F11C.2020105@gmail.com \
    --to=dmitri.vorobiev@gmail.com \
    --cc=Linux-tiny@selenic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=michael-lists@free-electrons.com \
    --cc=mingo@elte.hu \
    --cc=mpm@selenic.com \
    --cc=ralf@linux-mips.org \
    --cc=tglx@linutronix.de \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.