[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1449652313-25038-1-git-send-email-lixiubo@cmss.chinamobile.com>
Date: Wed, 9 Dec 2015 17:11:53 +0800
From: Xiubo Li <lixiubo@...s.chinamobile.com>
To: broonie@...nel.org
Cc: linux-kernel@...r.kernel.org,
Xiubo Li <lixiubo@...s.chinamobile.com>
Subject: [PATCH] regmap: fix the warning about unused variable
The variable 'u64 *u64' should be only visible on 64-BIT platform.
Signed-off-by: Xiubo Li <lixiubo@...s.chinamobile.com>
---
drivers/base/regmap/regmap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 1791180..a0d30a0 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;
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists