From: Souptick Joarder Date: Tue, 8 Dec 2020 19:27:18 +0000 (+0530) Subject: riscv: Fixed kernel test robot warning X-Git-Tag: howlett/maple_spf/20210104~259^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3ae9c3cde51abcb777125cfcf74cc402f4d0a4c7;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Souptick Joarder Signed-off-by: Palmer Dabbelt --- 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 #include +void asm_offsets(void); + void asm_offsets(void) { OFFSET(TASK_THREAD_RA, task_struct, thread.ra);