Re: [PATCH] m32r: fix build warning about putc

From: Sudip Mukherjee
Date: Tue Jun 28 2016 - 17:29:39 EST


On Monday 27 June 2016 04:48 AM, kbuild test robot wrote:
Hi,

[auto build test WARNING on v4.7-rc5]
[also build test WARNING on next-20160624]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Sudip-Mukherjee/m32r-fix-build-warning-about-putc/20160627-094312
config: m32r-m32104ut_defconfig (attached as .config)
compiler: m32r-linux-gcc (GCC) 4.9.0
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=m32r

All warnings (new ones prefixed by >>):

In file included from arch/m32r/boot/compressed/misc.c:25:0:
arch/m32r/boot/compressed/m32r_sio.c: In function 'puts':
arch/m32r/boot/compressed/m32r_sio.c:16:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (c = *s++)
^

This was fixed in v2 which was sent just after this patch was posted.


Regards
Sudip