From: Rasmus Villemoes Date: Wed, 4 Jun 2025 19:56:12 +0000 (+0200) Subject: riscv: remove volatile from set_gd prototype X-Git-Tag: v2025.10-rc1~118^2~18^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae86cd8c59fe08c9a37d14dbd6e42190dda2a0d4;p=thirdparty%2Fu-boot.git riscv: remove volatile from set_gd prototype It's slightly ironic that riscv at very first had the gd pointer volatile qualified [6020faf62c3 ("riscv: nx25: include: Add header files to support RISC-V")], removed that back in 2018 [40717eb849c ("riscv: checkpatch: Fix use of volatile")], and then in 2020 this helper was added [6b9966e1aa3 ("riscv: define function set_gd()")] which needlessly had volatile in the prototype. Signed-off-by: Rasmus Villemoes --- diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h index 47b5e2cfc8f..33f2b5ec5c8 100644 --- a/arch/riscv/include/asm/global_data.h +++ b/arch/riscv/include/asm/global_data.h @@ -68,7 +68,7 @@ static inline gd_t *get_gd(void) #endif -static inline void set_gd(volatile gd_t *gd_ptr) +static inline void set_gd(gd_t *gd_ptr) { #ifdef CONFIG_64BIT asm volatile("ld gp, %0\n" : : "m"(gd_ptr));