Skip to contentSkip to conversation

riscv: checkpatch: Fix use of volatile

PATCH New Andes 1 participant 1 message Mar 13, 2018 RISC-V

lore
Share & tools
lore

Andes

author
#0 lore raw

PATCH 2/5 riscv: checkpatch: Fix use of volatile

From: Rick Chen <[email protected]>

It is reported by checkpatch.pl
WARNING: Use of volatile is usually wrong: see Documentation/process/volatile-considered-harmful.rst

---
 arch/riscv/include/asm/global_data.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/include/asm/global_data.h +1 -1
index 0cce98a..bd352c2 100644
@@ -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 */
Signature · 1 line
2.7.4