* [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
@ 2020-12-29 8:38 ` kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-12-29 8:38 UTC (permalink / raw)
To: Jerome Brunet
Cc: kbuild-all, clang-built-linux, linux-usb, Greg Kroah-Hartman
[-- Attachment #1: Type: text/plain, Size: 2663 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
commit: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6 [8/8] usb: gadget: u_audio: factorize ssize to alsa fmt conversion
config: arm-randconfig-r003-20201229 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
git fetch --no-tags usb usb-testing
git checkout 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
ret = SNDRV_PCM_FMTBIT_S24_3LE;
~ ^~~~~~~~~~~~~~~~~~~~~~~~
include/sound/pcm.h:170:34: note: expanded from macro 'SNDRV_PCM_FMTBIT_S24_3LE'
#define SNDRV_PCM_FMTBIT_S24_3LE _SNDRV_PCM_FMTBIT(S24_3LE)
^~~~~~~~~~~~~~~~~~~~~~~~~~
include/sound/pcm.h:139:39: note: expanded from macro '_SNDRV_PCM_FMTBIT'
#define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt)
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +248 drivers/usb/gadget/function/u_audio.c
241
242 static unsigned long uac_ssize_to_fmt(int ssize)
243 {
244 unsigned long ret;
245
246 switch (ssize) {
247 case 3:
> 248 ret = SNDRV_PCM_FMTBIT_S24_3LE;
249 break;
250 case 4:
251 ret = SNDRV_PCM_FMTBIT_S32_LE;
252 break;
253 default:
254 ret = SNDRV_PCM_FMTBIT_S16_LE;
255 break;
256 }
257
258 return ret;
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30412 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
@ 2020-12-29 8:38 ` kernel test robot
0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-12-29 8:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2725 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
head: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
commit: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6 [8/8] usb: gadget: u_audio: factorize ssize to alsa fmt conversion
config: arm-randconfig-r003-20201229 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
git fetch --no-tags usb usb-testing
git checkout 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
ret = SNDRV_PCM_FMTBIT_S24_3LE;
~ ^~~~~~~~~~~~~~~~~~~~~~~~
include/sound/pcm.h:170:34: note: expanded from macro 'SNDRV_PCM_FMTBIT_S24_3LE'
#define SNDRV_PCM_FMTBIT_S24_3LE _SNDRV_PCM_FMTBIT(S24_3LE)
^~~~~~~~~~~~~~~~~~~~~~~~~~
include/sound/pcm.h:139:39: note: expanded from macro '_SNDRV_PCM_FMTBIT'
#define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt)
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +248 drivers/usb/gadget/function/u_audio.c
241
242 static unsigned long uac_ssize_to_fmt(int ssize)
243 {
244 unsigned long ret;
245
246 switch (ssize) {
247 case 3:
> 248 ret = SNDRV_PCM_FMTBIT_S24_3LE;
249 break;
250 case 4:
251 ret = SNDRV_PCM_FMTBIT_S32_LE;
252 break;
253 default:
254 ret = SNDRV_PCM_FMTBIT_S16_LE;
255 break;
256 }
257
258 return ret;
259 }
260
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30412 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
2020-12-29 8:38 ` kernel test robot
@ 2020-12-29 10:38 ` Greg Kroah-Hartman
-1 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2020-12-29 10:38 UTC (permalink / raw)
To: kernel test robot; +Cc: Jerome Brunet, kbuild-all, clang-built-linux, linux-usb
On Tue, Dec 29, 2020 at 04:38:44PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
> head: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
> commit: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6 [8/8] usb: gadget: u_audio: factorize ssize to alsa fmt conversion
> config: arm-randconfig-r003-20201229 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install arm cross compiling tool for clang build
> # apt-get install binutils-arm-linux-gnueabi
> # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
> git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
> git fetch --no-tags usb usb-testing
> git checkout 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
> ret = SNDRV_PCM_FMTBIT_S24_3LE;
> ~ ^~~~~~~~~~~~~~~~~~~~~~~~
> include/sound/pcm.h:170:34: note: expanded from macro 'SNDRV_PCM_FMTBIT_S24_3LE'
> #define SNDRV_PCM_FMTBIT_S24_3LE _SNDRV_PCM_FMTBIT(S24_3LE)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/sound/pcm.h:139:39: note: expanded from macro '_SNDRV_PCM_FMTBIT'
> #define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt)
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
I'm dropping this patch from my tree now, thanks.
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
@ 2020-12-29 10:38 ` Greg Kroah-Hartman
0 siblings, 0 replies; 6+ messages in thread
From: Greg Kroah-Hartman @ 2020-12-29 10:38 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2320 bytes --]
On Tue, Dec 29, 2020 at 04:38:44PM +0800, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
> head: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
> commit: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6 [8/8] usb: gadget: u_audio: factorize ssize to alsa fmt conversion
> config: arm-randconfig-r003-20201229 (attached as .config)
> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
> reproduce (this is a W=1 build):
> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # install arm cross compiling tool for clang build
> # apt-get install binutils-arm-linux-gnueabi
> # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
> git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
> git fetch --no-tags usb usb-testing
> git checkout 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All warnings (new ones prefixed by >>):
>
> >> drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
> ret = SNDRV_PCM_FMTBIT_S24_3LE;
> ~ ^~~~~~~~~~~~~~~~~~~~~~~~
> include/sound/pcm.h:170:34: note: expanded from macro 'SNDRV_PCM_FMTBIT_S24_3LE'
> #define SNDRV_PCM_FMTBIT_S24_3LE _SNDRV_PCM_FMTBIT(S24_3LE)
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> include/sound/pcm.h:139:39: note: expanded from macro '_SNDRV_PCM_FMTBIT'
> #define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt)
> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 1 warning generated.
I'm dropping this patch from my tree now, thanks.
greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
2020-12-29 10:38 ` Greg Kroah-Hartman
@ 2021-01-04 14:04 ` Jerome Brunet
-1 siblings, 0 replies; 6+ messages in thread
From: Jerome Brunet @ 2021-01-04 14:04 UTC (permalink / raw)
To: Greg Kroah-Hartman, kernel test robot
Cc: kbuild-all, clang-built-linux, linux-usb
On Tue 29 Dec 2020 at 11:38, Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
> On Tue, Dec 29, 2020 at 04:38:44PM +0800, kernel test robot wrote:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
>> head: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
>> commit: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6 [8/8] usb: gadget: u_audio: factorize ssize to alsa fmt conversion
>> config: arm-randconfig-r003-20201229 (attached as .config)
>> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
>> reproduce (this is a W=1 build):
>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>> chmod +x ~/bin/make.cross
>> # install arm cross compiling tool for clang build
>> # apt-get install binutils-arm-linux-gnueabi
>> # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
>> git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>> git fetch --no-tags usb usb-testing
>> git checkout 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
>> # save the attached .config to linux build tree
>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> All warnings (new ones prefixed by >>):
>>
>> >> drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
>> ret = SNDRV_PCM_FMTBIT_S24_3LE;
>> ~ ^~~~~~~~~~~~~~~~~~~~~~~~
>> include/sound/pcm.h:170:34: note: expanded from macro 'SNDRV_PCM_FMTBIT_S24_3LE'
>> #define SNDRV_PCM_FMTBIT_S24_3LE _SNDRV_PCM_FMTBIT(S24_3LE)
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/sound/pcm.h:139:39: note: expanded from macro '_SNDRV_PCM_FMTBIT'
>> #define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt)
>> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1 warning generated.
>
> I'm dropping this patch from my tree now, thanks.
>
Tested on 64bits platform only, sorry about that.
I'll respin with u64 which is the actual type of "hw.formats" .
> greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0
@ 2021-01-04 14:04 ` Jerome Brunet
0 siblings, 0 replies; 6+ messages in thread
From: Jerome Brunet @ 2021-01-04 14:04 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2571 bytes --]
On Tue 29 Dec 2020 at 11:38, Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote:
> On Tue, Dec 29, 2020 at 04:38:44PM +0800, kernel test robot wrote:
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
>> head: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
>> commit: 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6 [8/8] usb: gadget: u_audio: factorize ssize to alsa fmt conversion
>> config: arm-randconfig-r003-20201229 (attached as .config)
>> compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
>> reproduce (this is a W=1 build):
>> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>> chmod +x ~/bin/make.cross
>> # install arm cross compiling tool for clang build
>> # apt-get install binutils-arm-linux-gnueabi
>> # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/commit/?id=32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
>> git remote add usb https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
>> git fetch --no-tags usb usb-testing
>> git checkout 32510cf5e554e8f2cecafea8b8cc11daa4afb9e6
>> # save the attached .config to linux build tree
>> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> All warnings (new ones prefixed by >>):
>>
>> >> drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 [-Wconstant-conversion]
>> ret = SNDRV_PCM_FMTBIT_S24_3LE;
>> ~ ^~~~~~~~~~~~~~~~~~~~~~~~
>> include/sound/pcm.h:170:34: note: expanded from macro 'SNDRV_PCM_FMTBIT_S24_3LE'
>> #define SNDRV_PCM_FMTBIT_S24_3LE _SNDRV_PCM_FMTBIT(S24_3LE)
>> ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/sound/pcm.h:139:39: note: expanded from macro '_SNDRV_PCM_FMTBIT'
>> #define _SNDRV_PCM_FMTBIT(fmt) (1ULL << (__force int)SNDRV_PCM_FORMAT_##fmt)
>> ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1 warning generated.
>
> I'm dropping this patch from my tree now, thanks.
>
Tested on 64bits platform only, sorry about that.
I'll respin with u64 which is the actual type of "hw.formats" .
> greg k-h
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-01-04 14:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-29 8:38 [usb:usb-testing 8/8] drivers/usb/gadget/function/u_audio.c:248:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 4294967296 to 0 kernel test robot
2020-12-29 8:38 ` kernel test robot
2020-12-29 10:38 ` Greg Kroah-Hartman
2020-12-29 10:38 ` Greg Kroah-Hartman
2021-01-04 14:04 ` Jerome Brunet
2021-01-04 14:04 ` Jerome Brunet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.