[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201009161924.wc4omcb22ppaqcx2@ltop.local>
Date: Fri, 9 Oct 2020 18:19:24 +0200
From: Luc Van Oostenryck <luc.vanoostenryck@...il.com>
To: kernel test robot <lkp@...el.com>
Cc: kbuild@...ts.01.org, Dan Carpenter <error27@...il.com>,
kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Subject: Re: sound/pci/au88x0/au88x0_core.c:2029 vortex_adb_checkinout()
warn: signedness bug returning '(-22)'
On Fri, Oct 09, 2020 at 03:00:43PM +0300, kernel test robot wrote:
> Hi Luc,
>
> First bad commit (maybe != root cause):
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: c85fb28b6f999db9928b841f63f1beeb3074eeca
> commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
> config: powerpc64-randconfig-m031-20201008 (attached as .config)
> compiler: powerpc-linux-gcc (GCC) 9.3.0
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@...el.com>
> Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
>
> New smatch warnings:
> sound/pci/au88x0/au88x0_core.c:2029 vortex_adb_checkinout() warn: signedness bug returning '(-22)'
> sound/pci/rme9652/hdsp.c:4085 snd_hdsp_channel_info() warn: impossible condition '(hdsp->channel_map[channel] < 0) => (0-255 < 0)'
>
> Old smatch warnings:
> sound/pci/au88x0/au88x0_core.c:2046 vortex_adb_checkinout() warn: signedness bug returning '(-12)'
> sound/pci/rme9652/hdsp.c:3338 snd_hdsp_proc_read() warn: argument 5 to %lx specifier is cast from pointer
> sound/pci/rme9652/hdsp.c:5305 snd_hdsp_create() warn: 'hdsp->iobase' not released on lines: 5237.
> sound/pci/rme9652/hdsp.c:5305 snd_hdsp_create() warn: 'pci' not released on lines: 5237.
>
> vim +2029 sound/pci/au88x0/au88x0_core.c
>
> ^1da177e4c3f415 Linus Torvalds 2005-04-16 2001 static char
> ^^^^
> Is char unsigned on PowerPC? I thought that was only on s390.
All PowerPC machines or cross compiler I have access to give me:
$ gcc -E -dD -o - - < /dev/null | grep __CHAR_UNSIGNED__
#define __CHAR_UNSIGNED__ 1
and the PPC ABI requires it so.
-- Luc
Powered by blists - more mailing lists