projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afcc00b
)
regmap: fix the warning about unused variable
author
Xiubo Li
<lixiubo@cmss.chinamobile.com>
Wed, 9 Dec 2015 09:11:53 +0000
(17:11 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 9 Dec 2015 15:11:03 +0000
(15:11 +0000)
The variable 'u64 *u64' should be only visible on 64-BIT platform.
Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/regmap/regmap.c
b/drivers/base/regmap/regmap.c
index 1791180dca02325458bf8badfff4a4f28d3e9ee5..a0d30a0fd8cff439a5ce8a0895f856967f7879b6 100644
(file)
--- a/
drivers/base/regmap/regmap.c
+++ b/
drivers/base/regmap/regmap.c
@@
-2581,7
+2581,9
@@
int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
* we assume that the values are native
* endian.
*/
+#ifdef CONFIG_64BIT
u64 *u64 = val;
+#endif
u32 *u32 = val;
u16 *u16 = val;
u8 *u8 = val;