Re: [PATCH] ARM(64): KVM: add signed type cast for comparation

2013-07-29 Thread Chen Gang
Hello Maintainers: Please help check the patch whether OK or not, when you have time. Thanks. On 07/22/2013 11:20 AM, Chen Gang wrote: 'len' is 'unsigned long' which is never less than zero. So need a related type cast for comparation. The related warning (when building ARM64 with

Re: [PATCH] ARM(64): KVM: add signed type cast for comparation

2013-07-29 Thread Christoffer Dall
On Mon, Jul 22, 2013 at 11:20:12AM +0800, Chen Gang wrote: 'len' is 'unsigned long' which is never less than zero. So need a related type cast for comparation. The related warning (when building ARM64 with allmodconfig): arch/arm64/kvm/../../../arch/arm/kvm/mmio.c:82:2: warning:

Re: [PATCH] ARM(64): KVM: add signed type cast for comparation

2013-07-29 Thread Chen Gang
On 07/30/2013 11:45 AM, Christoffer Dall wrote: On Mon, Jul 22, 2013 at 11:20:12AM +0800, Chen Gang wrote: 'len' is 'unsigned long' which is never less than zero. So need a related type cast for comparation. The related warning (when building ARM64 with allmodconfig):

[PATCH] ARM(64): KVM: add signed type cast for comparation

2013-07-21 Thread Chen Gang
'len' is 'unsigned long' which is never less than zero. So need a related type cast for comparation. The related warning (when building ARM64 with allmodconfig): arch/arm64/kvm/../../../arch/arm/kvm/mmio.c:82:2: warning: comparison of unsigned expression 0 is always false [-Wtype-limits]