From: Andrew Morton <akpm@linux-foundation.org>
To: Mike Frysinger <vapier@gentoo.org>
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org,
uclinux-dist-devel@blackfin.uclinux.org
Subject: Re: [PATCH 2/2] serial: bfin_5xx: fix building as module when early printk is enabled
Date: Mon, 22 Jun 2009 14:54:21 -0700 [thread overview]
Message-ID: <20090622145421.3ff2f332.akpm@linux-foundation.org> (raw)
In-Reply-To: <1244854093-2156-2-git-send-email-vapier@gentoo.org>
On Fri, 12 Jun 2009 20:48:13 -0400
Mike Frysinger <vapier@gentoo.org> wrote:
> Since early printk only makes sense/works when the serial driver is built
> into the kernel, disable the option for this driver when it is going to be
> built as a module. Otherwise we get build failures due to the ifdef
> handling.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> drivers/serial/bfin_5xx.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
> index d7fcca1..b4a7650 100644
> --- a/drivers/serial/bfin_5xx.c
> +++ b/drivers/serial/bfin_5xx.c
> @@ -38,6 +38,10 @@
> #include <asm/cacheflush.h>
> #endif
>
> +#ifdef CONFIG_SERIAL_BFIN_MODULE
> +# undef CONFIG_EARLY_PRINTK
> +#endif
> +
> /* UART name and device definitions */
> #define BFIN_SERIAL_NAME "ttyBF"
> #define BFIN_SERIAL_MAJOR 204
And that _does_ look like -stable material.
Alan, I queued both these as to-be-merged-by-you. So if you want me to
stfu and merge them, please let me know.
next prev parent reply other threads:[~2009-06-22 21:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-13 0:48 [PATCH 1/2] serial: bfin_5xx: add missing spin_lock init Mike Frysinger
2009-06-13 0:48 ` [PATCH 2/2] serial: bfin_5xx: fix building as module when early printk is enabled Mike Frysinger
2009-06-22 21:54 ` Andrew Morton [this message]
2009-06-22 21:53 ` [PATCH 1/2] serial: bfin_5xx: add missing spin_lock init Andrew Morton
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=20090622145421.3ff2f332.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=uclinux-dist-devel@blackfin.uclinux.org \
--cc=vapier@gentoo.org \
/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.