]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: fix build warning of missing prototypes
authorZong Li <zong.li@sifive.com>
Mon, 1 Jun 2020 07:10:58 +0000 (15:10 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 10 Jun 2020 02:11:27 +0000 (19:11 -0700)
commit75733c2d8f0d4768af76dd9053bd5fcbc44cdf2e
tree237f5c68d9741fec7f9ab94629ebb824c42d5c73
parentda1031ebbfdcf4712ce1ddab412364165585bd7d
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>
arch/riscv/kernel/patch.c