]> Git Repo - linux.git/commitdiff
riscv: Fixed kernel test robot warning
authorSouptick Joarder <[email protected]>
Tue, 8 Dec 2020 19:27:18 +0000 (00:57 +0530)
committerPalmer Dabbelt <[email protected]>
Fri, 11 Dec 2020 01:47:23 +0000 (17:47 -0800)
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 <[email protected]>
Signed-off-by: Souptick Joarder <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/kernel/asm-offsets.c

index db203442c08f969ebebcb357ae302f4e52bb189a..b79ffa3561fd7245eacec78a0277e5555b80bbe9 100644 (file)
@@ -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);
This page took 0.054657 seconds and 4 git commands to generate.