From: kernel test robot <lkp@intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
alsa-devel@alsa-project.org, Jaroslav Kysela <perex@perex.cz>
Subject: [tiwai-sound:for-next 69/83] sound/pcmcia/vx/vxpocket.c:273:12: error: use of undeclared identifier 'pdev'; did you mean 'p_dev'?
Date: Fri, 9 Aug 2024 08:20:25 +0800 [thread overview]
Message-ID: <202408090809.TAYiyrqJ-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-next
head: c46fc83e3f3c89f18962e43890de90b1c304747a
commit: 2acbb5e57230830016e0fb2d61886e7a8c7f59ce [69/83] ALSA: vxpocket: Use standard print API
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240809/202408090809.TAYiyrqJ-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240809/202408090809.TAYiyrqJ-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408090809.TAYiyrqJ-lkp@intel.com/
Note: the tiwai-sound/for-next HEAD c46fc83e3f3c89f18962e43890de90b1c304747a builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
sound/pcmcia/vx/vxpocket.c:207:8: error: no member named 'dev' in 'struct vx_core'
207 | chip->dev = &link->dev;
| ~~~~ ^
>> sound/pcmcia/vx/vxpocket.c:273:12: error: use of undeclared identifier 'pdev'; did you mean 'p_dev'?
273 | dev_err(&pdev->dev, "vxpocket: cannot create a card instance\n");
| ^~~~
| p_dev
include/linux/dev_printk.h:154:44: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^
include/linux/dev_printk.h:110:11: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^
sound/pcmcia/vx/vxpocket.c:251:49: note: 'p_dev' declared here
251 | static int vxpocket_probe(struct pcmcia_device *p_dev)
| ^
2 errors generated.
vim +273 sound/pcmcia/vx/vxpocket.c
247
248
249 /*
250 */
251 static int vxpocket_probe(struct pcmcia_device *p_dev)
252 {
253 struct snd_card *card;
254 struct snd_vxpocket *vxp;
255 int i, err;
256
257 /* find an empty slot from the card list */
258 for (i = 0; i < SNDRV_CARDS; i++) {
259 if (!(card_alloc & (1 << i)))
260 break;
261 }
262 if (i >= SNDRV_CARDS) {
263 dev_err(&p_dev->dev, "vxpocket: too many cards found\n");
264 return -EINVAL;
265 }
266 if (! enable[i])
267 return -ENODEV; /* disabled explicitly */
268
269 /* ok, create a card instance */
270 err = snd_card_new(&p_dev->dev, index[i], id[i], THIS_MODULE,
271 0, &card);
272 if (err < 0) {
> 273 dev_err(&pdev->dev, "vxpocket: cannot create a card instance\n");
274 return err;
275 }
276
277 err = snd_vxpocket_new(card, ibl[i], p_dev, &vxp);
278 if (err < 0) {
279 snd_card_free(card);
280 return err;
281 }
282 card->private_data = vxp;
283
284 vxp->index = i;
285 card_alloc |= 1 << i;
286
287 vxp->p_dev = p_dev;
288
289 return vxpocket_config(p_dev);
290 }
291
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-08-09 0:21 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=202408090809.TAYiyrqJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perex@perex.cz \
--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