lkml.org 
[lkml]   [2015]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/3] regmap: add 64-bit mode support
Date
On Thursday 03 December 2015 17:31:52 Xiubo Li wrote:
> @@ -2488,11 +2581,17 @@ int regmap_bulk_read(struct regmap *map, unsigned int reg, void *val,
> * we assume that the values are native
> * endian.
> */
> + u64 *u64 = val;
> u32 *u32 = val;
> u16 *u16 = val;
> u8 *u8 = val;
>
> switch (map->format.val_bytes) {
> +#ifdef CONFIG_64BIT
> + case 8:
> + u64[i] = ival;
> + break;
> +#endif
> case 4:
> u32[i] = ival;
> break;
>

This now gives me:

drivers/base/regmap/regmap.c: In function 'regmap_bulk_read':
drivers/base/regmap/regmap.c:2584:10: warning: unused variable 'u64' [-Wunused-variable]
u64 *u64 = val;
^


Arnd


\
 
 \ /
  Last update: 2015-12-09 10:01    [W:0.165 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site