From: Xiubo Li Date: Wed, 9 Dec 2015 09:11:53 +0000 (+0800) Subject: regmap: fix the warning about unused variable X-Git-Tag: v4.5-rc1~153^2~1^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=19c04788f0e0ef778df39cdeaf8e9889d3020894;p=karo-tx-linux.git regmap: fix the warning about unused variable The variable 'u64 *u64' should be only visible on 64-BIT platform. Signed-off-by: Xiubo Li Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 1791180dca02..a0d30a0fd8cf 100644 --- 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;