Re: [PATCH] arm:fix negation of -2147483648 warning with UBSASN

2017-10-12 Thread Russell King - ARM Linux
On Thu, Oct 12, 2017 at 04:10:58PM +0530, Manjeet Pawar wrote: > From: Rohit Thapliyal > > Using gcc-6 and UBSAN enabled, we get the following warning: > > = > [1-1.4604] UBSAN: Undefined behaviour in > ./arch/arm/include/asm/bitops.h:296:

[PATCH] arm:fix negation of -2147483648 warning with UBSASN

2017-10-12 Thread Manjeet Pawar
From: Rohit Thapliyal Using gcc-6 and UBSAN enabled, we get the following warning: = [1-1.4604] UBSAN: Undefined behaviour in ./arch/arm/include/asm/bitops.h:296:17 [1-1.4604] negation of -2147483648 cannot be represented in type 'int': [1-