aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/kernel/syscall_table.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul.walmsley@sifive.com>2019-10-17 15:21:28 -0700
committerPaul Walmsley <paul.walmsley@sifive.com>2019-10-28 00:46:01 -0700
commit5ed881bc3afc40d7a23c2211ead1aeb4980dda20 (patch)
treea345d186ac71e4dcd5b2e5904026fd00e8946dbd /arch/riscv/kernel/syscall_table.c
parentriscv: mark some code and data as file-static (diff)
downloadlinux-dev-5ed881bc3afc40d7a23c2211ead1aeb4980dda20.tar.xz
linux-dev-5ed881bc3afc40d7a23c2211ead1aeb4980dda20.zip
riscv: add missing header file includes
sparse identifies several missing prototypes caused by missing preprocessor include directives: arch/riscv/kernel/cpufeature.c:16:6: warning: symbol 'has_fpu' was not declared. Should it be static? arch/riscv/kernel/process.c:26:6: warning: symbol 'arch_cpu_idle' was not declared. Should it be static? arch/riscv/kernel/reset.c:15:6: warning: symbol 'pm_power_off' was not declared. Should it be static? arch/riscv/kernel/syscall_table.c:15:6: warning: symbol 'sys_call_table' was not declared. Should it be static? arch/riscv/kernel/traps.c:149:13: warning: symbol 'trap_init' was not declared. Should it be static? arch/riscv/kernel/vdso.c:54:5: warning: symbol 'arch_setup_additional_pages' was not declared. Should it be static? arch/riscv/kernel/smp.c:64:6: warning: symbol 'arch_match_cpu_phys_id' was not declared. Should it be static? arch/riscv/kernel/module-sections.c:89:5: warning: symbol 'module_frob_arch_sections' was not declared. Should it be static? arch/riscv/mm/context.c:42:6: warning: symbol 'switch_mm' was not declared. Should it be static? Fix by including the appropriate header files in the appropriate source files. This patch should have no functional impact. Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'arch/riscv/kernel/syscall_table.c')
-rw-r--r--arch/riscv/kernel/syscall_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/syscall_table.c b/arch/riscv/kernel/syscall_table.c
index e5dd52d8f633..f1ead9df96ca 100644
--- a/arch/riscv/kernel/syscall_table.c
+++ b/arch/riscv/kernel/syscall_table.c
@@ -8,6 +8,7 @@
#include <linux/syscalls.h>
#include <asm-generic/syscalls.h>
#include <asm/vdso.h>
+#include <asm/syscall.h>
#undef __SYSCALL
#define __SYSCALL(nr, call) [nr] = (call),