From: Rick Chen Date: Mon, 12 Feb 2018 03:10:04 +0000 (+0800) Subject: riscv: checkpatch: Fix use of volatile X-Git-Tag: v2018.05-rc1~4^2~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40717eb849c26473676ffb34b4f5d13ebfd4b333;p=oweals%2Fu-boot.git riscv: checkpatch: Fix use of volatile It is reported by checkpatch.pl WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst Signed-off-by: Rick Chen Signed-off-by: Rick Chen --- diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h index 0cce98ab53..bd352c2cda 100644 --- a/arch/riscv/include/asm/global_data.h +++ b/arch/riscv/include/asm/global_data.h @@ -17,6 +17,6 @@ struct arch_global_data { #include -#define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("gp") +#define DECLARE_GLOBAL_DATA_PTR register gd_t *gd asm ("gp") #endif /* __ASM_GBL_DATA_H */