From: Ralf Baechle <ralf@linux-mips.org>
To: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 1/5] [MIPS] fix sparse warning about setup_early_printk()
Date: Thu, 12 Jun 2008 08:26:05 +0100 [thread overview]
Message-ID: <20080612072604.GF30400@linux-mips.org> (raw)
In-Reply-To: <12124843631742-git-send-email-dmitri.vorobiev@movial.fi>
On Tue, Jun 03, 2008 at 12:12:40PM +0300, Dmitri Vorobiev wrote:
> From: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
> Date: Tue, 3 Jun 2008 12:12:40 +0300
> To: linux-mips@linux-mips.org, ralf@linux-mips.org
> Subject: [PATCH 1/5] [MIPS] fix sparse warning about setup_early_printk()
>
> This patch fixes the following sparse warning:
>
> <<<<<<<<
>
> arch/mips/kernel/early_printk.c:35:13: warning: symbol 'setup_early_printk'
> was not declared. Should it be static?
>
> <<<<<<<<
>
> The fix is to define a prototype of the setup_early_printk() function and
> to include the appropriate header into arch/mips/kernel/early_printk.c.
>
> Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.fi>
> ---
> arch/mips/kernel/early_printk.c | 1 +
> arch/mips/kernel/setup.c | 6 +-----
> include/asm-mips/setup.h | 2 ++
> 3 files changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/arch/mips/kernel/early_printk.c b/arch/mips/kernel/early_printk.c
> index 9dccfa4..cb602c1 100644
> --- a/arch/mips/kernel/early_printk.c
> +++ b/arch/mips/kernel/early_printk.c
> @@ -7,6 +7,7 @@
> * Copyright (C) 2007 MIPS Technologies, Inc.
> * written by Ralf Baechle (ralf@linux-mips.org)
> */
> +#include <asm/setup.h>
> #include <linux/console.h>
> #include <linux/init.h>
Queued for 2.6.27 with includes sorted <linux/...> first followed by
<asm/...>.
Ralf
next parent reply other threads:[~2008-06-12 7:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <12124843631664-git-send-email-dmitri.vorobiev@movial.fi>
[not found] ` <12124843631742-git-send-email-dmitri.vorobiev@movial.fi>
2008-06-12 7:26 ` Ralf Baechle [this message]
[not found] ` <12124843631632-git-send-email-dmitri.vorobiev@movial.fi>
2008-06-12 7:27 ` [PATCH 2/5] [MIPS] Make two functions static Ralf Baechle
[not found] ` <12124843634070-git-send-email-dmitri.vorobiev@movial.fi>
2008-06-12 7:36 ` [PATCH 3/5] [MIPS] remove unused function alloc_legacy_irqno() Ralf Baechle
[not found] ` <1212484363969-git-send-email-dmitri.vorobiev@movial.fi>
2008-06-12 7:40 ` [PATCH 4/5] [MIPS] unexport {allocate,free}_irqno Ralf Baechle
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=20080612072604.GF30400@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=dmitri.vorobiev@movial.fi \
--cc=linux-mips@linux-mips.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox