Skip to content

Commit d66f081

Browse files
thugheskartben
authored andcommitted
arch: riscv: core: Fix type
riscv_cpu_wake_flag and riscv_cpu_sp are variables, not functions, so they should use the GDATA macro instead of the GTEXT macro. Otherwise, the linker will warn when LTO is enabled: ld.bfd: warning: type of symbol `riscv_cpu_wake_flag' changed from 2 to 1 in /tmp/cc39w5oK.ltrans0.ltrans.o ld.bfd: warning: type of symbol `riscv_cpu_sp' changed from 2 to 1 in /tmp/cc39w5oK.ltrans0.ltrans.o Signed-off-by: Tom Hughes <tomhughes@chromium.org>
1 parent e251476 commit d66f081

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/core/reset.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ GTEXT(__reset)
1717

1818
/* imports */
1919
GTEXT(z_prep_c)
20-
GTEXT(riscv_cpu_wake_flag)
21-
GTEXT(riscv_cpu_sp)
20+
GDATA(riscv_cpu_wake_flag)
21+
GDATA(riscv_cpu_sp)
2222
GTEXT(arch_secondary_cpu_init)
2323

2424
#if CONFIG_INCLUDE_RESET_VECTOR

0 commit comments

Comments
 (0)