tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next head: 8191743d5f9a34c0665046937eff262bffdad9a9 commit: 3e8f3bd047163d30fb1ad32ca7e4628921555c09 [67/134] ALSA: usb-audio: RME Babyface Pro mixer patch config: x86_64-randconfig-s022-20200529 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-243-gc100a7ab-dirty git checkout 3e8f3bd047163d30fb1ad32ca7e4628921555c09 # save the attached .config to linux build tree make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot lkp@intel.com
sparse warnings: (new ones prefixed by >>)
sound/usb/mixer_quirks.c:2254:49: sparse: sparse: Using plain integer as NULL pointer
sound/usb/mixer_quirks.c:2393:49: sparse: sparse: Using plain integer as NULL pointer
vim +2254 sound/usb/mixer_quirks.c
2224 2225 static int snd_bbfpro_ctl_update(struct usb_mixer_interface *mixer, u8 reg, 2226 u8 index, u8 value) 2227 { 2228 int err; 2229 u16 usb_req, usb_idx, usb_val; 2230 struct snd_usb_audio *chip = mixer->chip; 2231 2232 err = snd_usb_lock_shutdown(chip); 2233 if (err < 0) 2234 return err; 2235 2236 if (reg == SND_BBFPRO_CTL_REG1) { 2237 usb_req = SND_BBFPRO_USBREQ_CTL_REG1; 2238 if (index == SND_BBFPRO_CTL_REG1_CLK_OPTICAL) { 2239 usb_idx = 3; 2240 usb_val = value ? 3 : 0; 2241 } else { 2242 usb_idx = 1 << index; 2243 usb_val = value ? usb_idx : 0; 2244 } 2245 } else { 2246 usb_req = SND_BBFPRO_USBREQ_CTL_REG2; 2247 usb_idx = 1 << index; 2248 usb_val = value ? usb_idx : 0; 2249 } 2250 2251 err = snd_usb_ctl_msg(chip->dev, 2252 usb_sndctrlpipe(chip->dev, 0), usb_req, 2253 USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
2254 usb_val, usb_idx, 0, 0);
2255 2256 snd_usb_unlock_shutdown(chip); 2257 return err; 2258 } 2259
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org