public inbox for alsa-devel@alsa-project.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: "Thomas, Ebeling," <penguins@bollie.de>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@alsa-project.org, kbuild-all@lists.01.org
Subject: [sound:for-next 67/134] sound/usb/mixer_quirks.c:2254:49: sparse: sparse: Using plain integer as NULL pointer
Date: Fri, 29 May 2020 23:43:12 +0800	[thread overview]
Message-ID: <202005292310.DSHg0H10%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2199 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42718 bytes --]

                 reply	other threads:[~2020-05-29 15:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202005292310.DSHg0H10%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=kbuild-all@lists.01.org \
    --cc=penguins@bollie.de \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox