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@xxxxxxxxx> 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@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip