Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753527AbbLIJB0 (ORCPT ); Wed, 9 Dec 2015 04:01:26 -0500 Received: from cmccmta1.chinamobile.com ([221.176.66.79]:5347 "EHLO cmccmta1.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752062AbbLIJBZ (ORCPT ); Wed, 9 Dec 2015 04:01:25 -0500 X-RM-TRANSID: 2ee25667ede000d-50b5c X-RM-SPAM-FLAG: 00000000 X-RM-TRANSID: 2ee25667ede0f59-f5a57 Message-ID: <5667EE03.5090407@cmss.chinamobile.com> Date: Wed, 09 Dec 2015 17:01:55 +0800 From: Xiubo Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Arnd Bergmann CC: broonie@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] regmap: add 64-bit mode support References: <1449135113-31892-1-git-send-email-lixiubo@cmss.chinamobile.com> <1449135113-31892-3-git-send-email-lixiubo@cmss.chinamobile.com> <2974042.RS5oNhyniO@wuerfel> In-Reply-To: <2974042.RS5oNhyniO@wuerfel> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1507 Lines: 47 On 09/12/2015 16:45, Arnd Bergmann wrote: > 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; > ^ > I will fix this. Thanks for your catch. BRs > Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/