[PATCH v2 1/2] riscv: Fix build warning for mm/init

Pekka Enberg penberg at gmail.com
Thu Jul 16 09:07:12 EDT 2020

On Thu, Jul 16, 2020 at 4:06 PM Zong Li <zong.li at sifive.com> wrote:
> Add static keyword for resource_init, this function is only used in this
> object file.
> The warning message as follow (with W=1 build):
> arch/riscv/mm/init.c:520:13:
> warning: no previous prototype for 'resource_init' [-Wmissing-prototypes]
> Signed-off-by: Zong Li <zong.li at sifive.com>

Reviewed-by: Pekka Enberg <penberg at kernel.org>

- Pekka

More information about the linux-riscv mailing list