summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorZong Li <zong.li@sifive.com>2020-06-01 15:10:58 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-06-09 19:11:27 -0700
commit05589dde649cd954a122b0ebb2cbe4ade8a80e98 (patch)
tree237f5c68d9741fec7f9ab94629ebb824c42d5c73 /arch/riscv
parent4e0f9e3a6104261f25b16fcab02fc96f5666ba11 (diff)
downloadlinux-05589dde649cd954a122b0ebb2cbe4ade8a80e98.tar.bz2
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 <zong.li@sifive.com> Reported-by: kbuild test robot <lkp@intel.com> Reviewed-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/kernel/patch.c1
1 files changed, 1 insertions, 0 deletions
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;