[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOnJCUKKvSvH5ZcsHE95goE4UpfrpJeJbVzgBvhMC3xhSF_08Q@mail.gmail.com>
Date: Mon, 1 Jun 2020 11:39:03 -0700
From: Atish Patra <atishp@...shpatra.org>
To: Zong Li <zong.li@...ive.com>
Cc: Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
linux-riscv <linux-riscv@...ts.infradead.org>,
"linux-kernel@...r.kernel.org List" <linux-kernel@...r.kernel.org>,
kbuild test robot <lkp@...el.com>
Subject: Re: [PATCH v2] riscv: fix build warning of missing prototypes
On Mon, Jun 1, 2020 at 12:11 AM Zong Li <zong.li@...ive.com> wrote:
>
> Add the missing header in file, it was lost in original implementation.
>
> The warning message as follows:
> - no previous prototype for 'patch_text_nosync' [-Wmissing-prototypes]
> - no previous prototype for 'patch_text' [-Wmissing-prototypes]
>
> Changed in v2:
> - Correct the typo of commit message.
>
> Signed-off-by: Zong Li <zong.li@...ive.com>
> Reported-by: kbuild test robot <lkp@...el.com>
> ---
> arch/riscv/kernel/patch.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/riscv/kernel/patch.c b/arch/riscv/kernel/patch.c
> index 5805791cd5b5..d4a64dfed342 100644
> --- a/arch/riscv/kernel/patch.c
> +++ b/arch/riscv/kernel/patch.c
> @@ -11,6 +11,7 @@
> #include <asm/kprobes.h>
> #include <asm/cacheflush.h>
> #include <asm/fixmap.h>
> +#include <asm/patch.h>
>
> struct patch_insn {
> void *addr;
> --
> 2.26.2
>
>
Reviewed-by: Atish Patra <atish.patra@....com>
--
Regards,
Atish
Powered by blists - more mailing lists