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 24/51] ALSA: via82xx: Allocate resources with device-managed APIs
Date: Wed, 14 Jul 2021 02:40:12 +0800	[thread overview]
Message-ID: <202107140200.ueSko6mK-lkp@intel.com> (raw)
In-Reply-To: <20210713142857.19654-25-tiwai@suse.de>

[-- Attachment #1: Type: text/plain, Size: 5558 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/2fe9eb4f2c4739f0452db5aee6618679da3adc73
        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 2fe9eb4f2c4739f0452db5aee6618679da3adc73
        # 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/via82xx_modem.c:1075:2: warning: variable 'chip' is uninitialized when used here [-Wuninitialized]
           chip->card = card;
           ^~~~
   sound/pci/via82xx_modem.c:1067:28: note: initialize the variable 'chip' to silence this warning
           struct via82xx_modem *chip;
                                     ^
                                      = NULL
   1 warning generated.


vim +/chip +1075 sound/pci/via82xx_modem.c

^1da177e4c3f41 Linus Torvalds 2005-04-16  1060  
e23e7a14362072 Bill Pemberton 2012-12-06  1061  static int snd_via82xx_create(struct snd_card *card,
^1da177e4c3f41 Linus Torvalds 2005-04-16  1062  			      struct pci_dev *pci,
^1da177e4c3f41 Linus Torvalds 2005-04-16  1063  			      int chip_type,
^1da177e4c3f41 Linus Torvalds 2005-04-16  1064  			      int revision,
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1065  			      unsigned int ac97_clock)
^1da177e4c3f41 Linus Torvalds 2005-04-16  1066  {
e437e3d7c7fb65 Takashi Iwai   2005-11-17  1067  	struct via82xx_modem *chip;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1068  	int err;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1069  
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1070  	err = pcim_enable_device(pci);
afb342f02241a9 Takashi Iwai   2021-06-08  1071  	if (err < 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16  1072  		return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1073  
^1da177e4c3f41 Linus Torvalds 2005-04-16  1074  	spin_lock_init(&chip->reg_lock);
^1da177e4c3f41 Linus Torvalds 2005-04-16 @1075  	chip->card = card;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1076  	chip->pci = pci;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1077  	chip->irq = -1;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1078  
afb342f02241a9 Takashi Iwai   2021-06-08  1079  	err = pci_request_regions(pci, card->driver);
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1080  	if (err < 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16  1081  		return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1082  	chip->port = pci_resource_start(pci, 0);
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1083  	if (devm_request_irq(&pci->dev, pci->irq, snd_via82xx_interrupt,
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1084  			     IRQF_SHARED, KBUILD_MODNAME, chip)) {
473439e06a2562 Takashi Iwai   2014-02-25  1085  		dev_err(card->dev, "unable to grab IRQ %d\n", pci->irq);
^1da177e4c3f41 Linus Torvalds 2005-04-16  1086  		return -EBUSY;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1087  	}
^1da177e4c3f41 Linus Torvalds 2005-04-16  1088  	chip->irq = pci->irq;
c47583b0eb6847 Takashi Iwai   2019-12-10  1089  	card->sync_irq = chip->irq;
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1090  	card->private_free = snd_via82xx_free;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1091  	if (ac97_clock >= 8000 && ac97_clock <= 48000)
^1da177e4c3f41 Linus Torvalds 2005-04-16  1092  		chip->ac97_clock = ac97_clock;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1093  
afb342f02241a9 Takashi Iwai   2021-06-08  1094  	err = snd_via82xx_chip_init(chip);
2fe9eb4f2c4739 Takashi Iwai   2021-07-13  1095  	if (err < 0)
^1da177e4c3f41 Linus Torvalds 2005-04-16  1096  		return err;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1097  
^1da177e4c3f41 Linus Torvalds 2005-04-16  1098  	/* The 8233 ac97 controller does not implement the master bit
^1da177e4c3f41 Linus Torvalds 2005-04-16  1099  	 * in the pci command register. IMHO this is a violation of the PCI spec.
^1da177e4c3f41 Linus Torvalds 2005-04-16  1100  	 * We call pci_set_master here because it does not hurt. */
^1da177e4c3f41 Linus Torvalds 2005-04-16  1101  	pci_set_master(pci);
^1da177e4c3f41 Linus Torvalds 2005-04-16  1102  	return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16  1103  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  1104  

---
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 18:40 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
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 [this message]
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=202107140200.ueSko6mK-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.