summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSouptick Joarder <jrdr.linux@gmail.com>2020-12-08 22:27:18 +0300
committerPalmer Dabbelt <palmerdabbelt@google.com>2020-12-11 04:47:23 +0300
commit3ae9c3cde51abcb777125cfcf74cc402f4d0a4c7 (patch)
treefc151853675ad0b3444d186c79ed3f4515242c28
parent772e1b7c426762159e5150ecff5268e6e1f361d3 (diff)
downloadlinux-3ae9c3cde51abcb777125cfcf74cc402f4d0a4c7.tar.xz
riscv: Fixed kernel test robot warning
Kernel test robot throws below warning - arch/riscv/kernel/asm-offsets.c:14:6: warning: no previous prototype for 'asm_offsets' [-Wmissing-prototypes] 14 | void asm_offsets(void) | ^~~~~~~~~~~ This patch should fixed it. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
-rw-r--r--arch/riscv/kernel/asm-offsets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/kernel/asm-offsets.c b/arch/riscv/kernel/asm-offsets.c
index db203442c08f..b79ffa3561fd 100644
--- a/arch/riscv/kernel/asm-offsets.c
+++ b/arch/riscv/kernel/asm-offsets.c
@@ -11,6 +11,8 @@
#include <asm/thread_info.h>
#include <asm/ptrace.h>
+void asm_offsets(void);
+
void asm_offsets(void)
{
OFFSET(TASK_THREAD_RA, task_struct, thread.ra);