summaryrefslogtreecommitdiff
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorRick Chen <rick@andestech.com>2018-02-12 11:10:04 +0800
committerAndes <uboot@andestech.com>2018-03-30 13:13:22 +0800
commit40717eb849c26473676ffb34b4f5d13ebfd4b333 (patch)
treeb96f4aca397d0f23f799da382e6ad0a799649427 /arch/riscv/include
parentbc0818a6a94429f2abd070afaa489266e78bf86b (diff)
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 <rick@andestech.com> Signed-off-by: Rick Chen <rickchen36@gmail.com>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/global_data.h2
1 files changed, 1 insertions, 1 deletions
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 <asm-generic/global_data.h>
-#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 */