All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 11/51] ALSA: bt87x: Allocate resources with device-managed APIs
Date: Wed, 14 Jul 2021 01:10:05 +0800	[thread overview]
Message-ID: <202107140136.1Kcc0q6D-lkp@intel.com> (raw)
In-Reply-To: <20210713142857.19654-12-tiwai@suse.de>

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

Hi Takashi,

I love your patch! Perhaps something to improve:

[auto build test WARNING on sound/for-next]
[also build test WARNING on v5.14-rc1 next-20210713]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Takashi-Iwai/ALSA-More-devres-usages/20210713-225131
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
config: arm64-buildonly-randconfig-r003-20210713 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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 arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/0day-ci/linux/commit/5a2db1e1f5fcf4283a42d5a93a10436ef67e2829
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Takashi-Iwai/ALSA-More-devres-usages/20210713-225131
        git checkout 5a2db1e1f5fcf4283a42d5a93a10436ef67e2829
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64 

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 >>):

>> sound/pci/bt87x.c:841:10: warning: variable 'chip' is uninitialized when used here [-Wuninitialized]
           memcpy(&chip->board, &snd_bt87x_boards[boardid], sizeof(chip->board));
                   ^~~~
   sound/pci/bt87x.c:813:24: note: initialize the variable 'chip' to silence this warning
           struct snd_bt87x *chip;
                                 ^
                                  = NULL
   1 warning generated.


vim +/chip +841 sound/pci/bt87x.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  807  
3dd0676335f846 Bill Pemberton     2012-12-06  808  static int snd_bt87x_probe(struct pci_dev *pci,
^1da177e4c3f41 Linus Torvalds     2005-04-16  809  			   const struct pci_device_id *pci_id)
^1da177e4c3f41 Linus Torvalds     2005-04-16  810  {
^1da177e4c3f41 Linus Torvalds     2005-04-16  811  	static int dev;
9f362dce9d6315 Takashi Iwai       2005-11-17  812  	struct snd_card *card;
9f362dce9d6315 Takashi Iwai       2005-11-17  813  	struct snd_bt87x *chip;
dcfb4140328eed Trent Piepho       2007-09-06  814  	int err;
dcfb4140328eed Trent Piepho       2007-09-06  815  	enum snd_bt87x_boardid boardid;
^1da177e4c3f41 Linus Torvalds     2005-04-16  816  
dcfb4140328eed Trent Piepho       2007-09-06  817  	if (!pci_id->driver_data) {
dcfb4140328eed Trent Piepho       2007-09-06  818  		err = snd_bt87x_detect_card(pci);
dcfb4140328eed Trent Piepho       2007-09-06  819  		if (err < 0)
^1da177e4c3f41 Linus Torvalds     2005-04-16  820  			return -ENODEV;
dcfb4140328eed Trent Piepho       2007-09-06  821  		boardid = err;
dcfb4140328eed Trent Piepho       2007-09-06  822  	} else
dcfb4140328eed Trent Piepho       2007-09-06  823  		boardid = pci_id->driver_data;
^1da177e4c3f41 Linus Torvalds     2005-04-16  824  
^1da177e4c3f41 Linus Torvalds     2005-04-16  825  	if (dev >= SNDRV_CARDS)
^1da177e4c3f41 Linus Torvalds     2005-04-16  826  		return -ENODEV;
^1da177e4c3f41 Linus Torvalds     2005-04-16  827  	if (!enable[dev]) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  828  		++dev;
^1da177e4c3f41 Linus Torvalds     2005-04-16  829  		return -ENOENT;
^1da177e4c3f41 Linus Torvalds     2005-04-16  830  	}
^1da177e4c3f41 Linus Torvalds     2005-04-16  831  
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  832  	err = snd_devm_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE,
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  833  				sizeof(*chip), &card);
e58de7baf7de11 Takashi Iwai       2008-12-28  834  	if (err < 0)
e58de7baf7de11 Takashi Iwai       2008-12-28  835  		return err;
^1da177e4c3f41 Linus Torvalds     2005-04-16  836  
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  837  	err = snd_bt87x_create(card, pci);
^1da177e4c3f41 Linus Torvalds     2005-04-16  838  	if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  839  		return err;
^1da177e4c3f41 Linus Torvalds     2005-04-16  840  
dcfb4140328eed Trent Piepho       2007-09-06 @841  	memcpy(&chip->board, &snd_bt87x_boards[boardid], sizeof(chip->board));
dcfb4140328eed Trent Piepho       2007-09-06  842  
dcfb4140328eed Trent Piepho       2007-09-06  843  	if (!chip->board.no_digital) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  844  		if (digital_rate[dev] > 0)
dcfb4140328eed Trent Piepho       2007-09-06  845  			chip->board.dig_rate = digital_rate[dev];
dcfb4140328eed Trent Piepho       2007-09-06  846  
dcfb4140328eed Trent Piepho       2007-09-06  847  		chip->reg_control |= chip->board.digital_fmt;
^1da177e4c3f41 Linus Torvalds     2005-04-16  848  
^1da177e4c3f41 Linus Torvalds     2005-04-16  849  		err = snd_bt87x_pcm(chip, DEVICE_DIGITAL, "Bt87x Digital");
^1da177e4c3f41 Linus Torvalds     2005-04-16  850  		if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  851  			return err;
dcfb4140328eed Trent Piepho       2007-09-06  852  	}
dcfb4140328eed Trent Piepho       2007-09-06  853  	if (!chip->board.no_analog) {
^1da177e4c3f41 Linus Torvalds     2005-04-16  854  		err = snd_bt87x_pcm(chip, DEVICE_ANALOG, "Bt87x Analog");
^1da177e4c3f41 Linus Torvalds     2005-04-16  855  		if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  856  			return err;
dcfb4140328eed Trent Piepho       2007-09-06  857  		err = snd_ctl_add(card, snd_ctl_new1(
dcfb4140328eed Trent Piepho       2007-09-06  858  				  &snd_bt87x_capture_volume, chip));
^1da177e4c3f41 Linus Torvalds     2005-04-16  859  		if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  860  			return err;
dcfb4140328eed Trent Piepho       2007-09-06  861  		err = snd_ctl_add(card, snd_ctl_new1(
dcfb4140328eed Trent Piepho       2007-09-06  862  				  &snd_bt87x_capture_boost, chip));
^1da177e4c3f41 Linus Torvalds     2005-04-16  863  		if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  864  			return err;
dcfb4140328eed Trent Piepho       2007-09-06  865  		err = snd_ctl_add(card, snd_ctl_new1(
dcfb4140328eed Trent Piepho       2007-09-06  866  				  &snd_bt87x_capture_source, chip));
^1da177e4c3f41 Linus Torvalds     2005-04-16  867  		if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  868  			return err;
dcfb4140328eed Trent Piepho       2007-09-06  869  	}
02c33520b35fe7 Takashi Iwai       2014-02-25  870  	dev_info(card->dev, "bt87x%d: Using board %d, %sanalog, %sdigital "
dcfb4140328eed Trent Piepho       2007-09-06  871  		   "(rate %d Hz)\n", dev, boardid,
dcfb4140328eed Trent Piepho       2007-09-06  872  		   chip->board.no_analog ? "no " : "",
dcfb4140328eed Trent Piepho       2007-09-06  873  		   chip->board.no_digital ? "no " : "", chip->board.dig_rate);
^1da177e4c3f41 Linus Torvalds     2005-04-16  874  
^1da177e4c3f41 Linus Torvalds     2005-04-16  875  	strcpy(card->driver, "Bt87x");
^1da177e4c3f41 Linus Torvalds     2005-04-16  876  	sprintf(card->shortname, "Brooktree Bt%x", pci->device);
aa0a2ddc54fa8a Greg Kroah-Hartman 2006-06-12  877  	sprintf(card->longname, "%s at %#llx, irq %i",
aa0a2ddc54fa8a Greg Kroah-Hartman 2006-06-12  878  		card->shortname, (unsigned long long)pci_resource_start(pci, 0),
aa0a2ddc54fa8a Greg Kroah-Hartman 2006-06-12  879  		chip->irq);
^1da177e4c3f41 Linus Torvalds     2005-04-16  880  	strcpy(card->mixername, "Bt87x");
^1da177e4c3f41 Linus Torvalds     2005-04-16  881  
^1da177e4c3f41 Linus Torvalds     2005-04-16  882  	err = snd_card_register(card);
^1da177e4c3f41 Linus Torvalds     2005-04-16  883  	if (err < 0)
5a2db1e1f5fcf4 Takashi Iwai       2021-07-13  884  		return err;
^1da177e4c3f41 Linus Torvalds     2005-04-16  885  
^1da177e4c3f41 Linus Torvalds     2005-04-16  886  	pci_set_drvdata(pci, card);
^1da177e4c3f41 Linus Torvalds     2005-04-16  887  	++dev;
^1da177e4c3f41 Linus Torvalds     2005-04-16  888  	return 0;
^1da177e4c3f41 Linus Torvalds     2005-04-16  889  }
^1da177e4c3f41 Linus Torvalds     2005-04-16  890  

---
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: 38323 bytes --]

  reply	other threads:[~2021-07-13 17:10 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-13 14:28 [PATCH resent 00/51] ALSA: More devres usages Takashi Iwai
2021-07-13 14:28 ` [PATCH 01/51] ALSA: core: Add device-managed page allocator helper Takashi Iwai
2021-07-13 14:28 ` [PATCH 02/51] ALSA: core: Add managed card creation Takashi Iwai
2021-07-13 15:23   ` Amadeusz Sławiński
2021-07-13 16:05     ` Takashi Iwai
2021-07-13 16:15       ` Takashi Iwai
2021-07-13 14:28 ` [PATCH 03/51] ALSA: intel8x0: Allocate resources with device-managed APIs Takashi Iwai
2021-07-13 14:28 ` [PATCH 04/51] ALSA: atiixp: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 05/51] ALSA: hda: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 06/51] ALSA: doc: Add device-managed resource section Takashi Iwai
2021-07-13 14:28 ` [PATCH 07/51] ALSA: ad1889: Allocate resources with device-managed APIs Takashi Iwai
2021-07-13 14:28 ` [PATCH 08/51] ALSA: als300: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 09/51] ALSA: als4000: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 10/51] ALSA: azt3328: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 11/51] ALSA: bt87x: " Takashi Iwai
2021-07-13 17:10   ` kernel test robot [this message]
2021-07-13 14:28 ` [PATCH 12/51] ALSA: cmipci: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 13/51] ALSA: cs4281: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 14/51] ALSA: cs5530: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 15/51] ALSA: ens137x: " Takashi Iwai
2021-07-13 15:23   ` Amadeusz Sławiński
2021-07-13 16:07     ` Takashi Iwai
2021-07-13 14:28 ` [PATCH 16/51] ALSA: es1938: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 17/51] ALSA: es1968: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 18/51] ALSA: fm801: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 19/51] ALSA: maestro3: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 20/51] ALSA: rme32: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 21/51] ALSA: rme96: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 22/51] ALSA: sis7019: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 23/51] ALSA: sonicvibes: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 24/51] ALSA: via82xx: " Takashi Iwai
2021-07-13 18:40   ` kernel test robot
2021-07-13 14:28 ` [PATCH 25/51] ALSA: ali5451: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 26/51] ALSA: au88x0: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 27/51] ALSA: aw2: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 28/51] ALSA: ca0106: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 29/51] ALSA: cs46xx: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 30/51] ALSA: cs5535audio: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 31/51] ALSA: echoaudio: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 32/51] ALSA: emu10k1: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 33/51] ALSA: emu10k1x: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 34/51] ALSA: ice1712: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 35/51] ALSA: ice1724: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 36/51] ALSA: korg1212: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 37/51] ALSA: lola: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 38/51] ALSA: oxygen: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 39/51] ALSA: riptide: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 40/51] ALSA: hdsp: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 41/51] ALSA: hdspm: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 42/51] ALSA: rme9652: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 43/51] ALSA: trident: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 44/51] ALSA: vx: Manage vx_core object with devres Takashi Iwai
2021-07-13 14:28 ` [PATCH 45/51] ALSA: vx222: Allocate resources with device-managed APIs Takashi Iwai
2021-07-13 14:28 ` [PATCH 46/51] ALSA: ymfpci: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 47/51] ALSA: x86: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 48/51] ALSA: virmidi: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 49/51] ALSA: mtpav: " Takashi Iwai
2021-07-13 14:28 ` [PATCH 50/51] ALSA: serial-u16550: " Takashi Iwai
2021-07-13 16:08   ` Takashi Iwai
2021-07-13 18:39   ` kernel test robot
2021-07-13 14:28 ` [PATCH 51/51] ALSA: mpu401: " Takashi Iwai

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=202107140136.1Kcc0q6D-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 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.