[U-Boot,2/5] riscv: checkpatch: Fix use of volatile

Message ID 20180313075748.5723-1-uboot@andestech.com
State Accepted
Commit 40717eb849c26473676ffb34b4f5d13ebfd4b333
Delegated to: Andes
Headers show
Series
  • [U-Boot,1/5] riscv: checkpatch: Fix Macro argument reuse
Related show

Commit Message

Andes March 13, 2018, 7:57 a.m.
From: Rick Chen <rick@andestech.com>

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>
---
 arch/riscv/include/asm/global_data.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/arch/riscv/include/asm/global_data.h b/arch/riscv/include/asm/global_data.h
index 0cce98a..bd352c2 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 */