From: Zong Li Date: Mon, 1 Jun 2020 07:10:58 +0000 (+0800) Subject: riscv: fix build warning of missing prototypes X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=05589dde649cd954a122b0ebb2cbe4ade8a80e98;p=linux.git riscv: fix build warning of missing prototypes 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 Reported-by: kbuild test robot Reviewed-by: Atish Patra Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/kernel/patch.c b/arch/riscv/kernel/patch.c index 5805791cd5b57..d4a64dfed3423 100644 --- a/arch/riscv/kernel/patch.c +++ b/arch/riscv/kernel/patch.c @@ -11,6 +11,7 @@ #include #include #include +#include struct patch_insn { void *addr;