From: Rasmus Villemoes Date: Wed, 4 Jun 2025 19:56:11 +0000 (+0200) Subject: arm: remove volatile from set_gd prototype X-Git-Tag: v2025.10-rc1~118^2~18^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce55643546a59c05d6c4b181c2b490b6db7ba1f5;p=pandora-u-boot.git arm: remove volatile from set_gd prototype The global gd pointer is no longer volatile-qualified. Callers of this helper function have been updated to no longer use volatile-qualifed temporary variables, so update the prototype accordingly. Signed-off-by: Rasmus Villemoes --- diff --git a/arch/arm/include/asm/global_data.h b/arch/arm/include/asm/global_data.h index f7a47204b7c..b2ec450f900 100644 --- a/arch/arm/include/asm/global_data.h +++ b/arch/arm/include/asm/global_data.h @@ -139,7 +139,7 @@ static inline gd_t *get_gd(void) #endif #endif -static inline void set_gd(volatile gd_t *gd_ptr) +static inline void set_gd(gd_t *gd_ptr) { #ifdef CONFIG_ARM64 __asm__ volatile("ldr x18, %0\n" : : "m"(gd_ptr));