riscv: checkpatch: Fix use of volatile
authorRick Chen <rick@andestech.com>
Mon, 12 Feb 2018 03:10:04 +0000 (11:10 +0800)
committerAndes <uboot@andestech.com>
Fri, 30 Mar 2018 05:13:22 +0000 (13:13 +0800)
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

index 0cce98ab531a8ad2248a91a2093b00053b8cb144..bd352c2cda951531f19f441514c98f8b7fa883f5 100644 (file)
@@ -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 */