linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Huacai Chen <chenhuacai@kernel.org>
To: Yanteng Si <siyanteng@loongson.cn>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
	Jiaxun Yang <jiaxun.yang@flygoat.com>,
	Yanteng Si <siyanteng01@gmail.com>,
	"open list:MIPS" <linux-mips@vger.kernel.org>
Subject: Re: [PATCH] MIPS: IRQ: Add prototype for function init_IRQ
Date: Tue, 19 Jan 2021 09:20:13 +0800	[thread overview]
Message-ID: <CAAhV-H4cUDs2X+NCzJhJ5Dm89F8Kvw+jCaNUWvY86jHnmNHxuA@mail.gmail.com> (raw)
In-Reply-To: <20210118132009.2642893-1-siyanteng@loongson.cn>

Reviewed-by: Huacai Chen <chenhuacai@kernel.org>

On Mon, Jan 18, 2021 at 9:19 PM Yanteng Si <siyanteng@loongson.cn> wrote:
>
> This commit adds a prototype to fix error at W=1:
>
> arch/mips/kernel/irq.c:52:13: error: no previous prototype for
> 'init_IRQ' [-Werror=missing-prototypes]
>
> Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
> ---
>  arch/mips/include/asm/irq.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h
> index c5d351786416..f021de661c3a 100644
> --- a/arch/mips/include/asm/irq.h
> +++ b/arch/mips/include/asm/irq.h
> @@ -20,6 +20,7 @@
>  #define IRQ_STACK_SIZE                 THREAD_SIZE
>  #define IRQ_STACK_START                        (IRQ_STACK_SIZE - 16)
>
> +extern void __init init_IRQ(void);
>  extern void *irq_stack[NR_CPUS];
>
>  /*
> --
> 2.27.0
>

  reply	other threads:[~2021-01-19  1:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 13:20 [PATCH] MIPS: IRQ: Add prototype for function init_IRQ Yanteng Si
2021-01-19  1:20 ` Huacai Chen [this message]
2021-01-19 22:07 ` Thomas Bogendoerfer

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=CAAhV-H4cUDs2X+NCzJhJ5Dm89F8Kvw+jCaNUWvY86jHnmNHxuA@mail.gmail.com \
    --to=chenhuacai@kernel.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=linux-mips@vger.kernel.org \
    --cc=siyanteng01@gmail.com \
    --cc=siyanteng@loongson.cn \
    --cc=tsbogend@alpha.franken.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 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).