riscv: stacktrace: Move register keyword to beginning of declaration
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 14 Jan 2021 02:46:57 +0000 (10:46 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 15 Jan 2021 02:31:47 +0000 (18:31 -0800)
commitdec822771b0174a01e72d7641d08e44461b6a82f
treeeee3c926191ab2fb1406dafea32e74532d79483a
parent0983834a83931606a647c275e5d4165ce4e7b49f
riscv: stacktrace: Move register keyword to beginning of declaration

Using global sp_in_global directly to fix the following warning,

arch/riscv/kernel/stacktrace.c:31:3: warning: â€˜register’ is not at beginning of declaration [-Wold-style-declaration]
31 |   const register unsigned long current_sp = sp_in_global;
   |   ^~~~~

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/kernel/stacktrace.c