Skip to content

Commit 05589dd

Browse files
zongboxpalmer-dabbelt
authored andcommitted
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>
1 parent 4e0f9e3 commit 05589dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/kernel/patch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <asm/kprobes.h>
1212
#include <asm/cacheflush.h>
1313
#include <asm/fixmap.h>
14+
#include <asm/patch.h>
1415

1516
struct patch_insn {
1617
void *addr;

0 commit comments

Comments
 (0)