All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-cleanup-2026-06-16 326/326] sound/soc/soc-card.c:1268:6: warning: no previous prototype for 'snd_soc_card_set_pci_ssid'
Date: Wed, 17 Jun 2026 15:38:54 +0800	[thread overview]
Message-ID: <202606171540.9HTfMSDP-lkp@intel.com> (raw)

tree:   https://github.com/morimoto/linux sound-cleanup-2026-06-16
head:   5ce50ac7d0a59c6fb15e1baa7e6824ac096fe092
commit: bcca3afbe4030eb595d239674303afc5fd051920 [326/326] ASoC: soc-card.h: remove compatible definition
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20260617/202606171540.9HTfMSDP-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260617/202606171540.9HTfMSDP-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/202606171540.9HTfMSDP-lkp@intel.com/

All warnings (new ones prefixed by >>):

   sound/soc/soc-card.c:42:6: warning: no previous prototype for 'snd_soc_card_attach_priv' [-Wmissing-prototypes]
      42 | void snd_soc_card_attach_priv(struct snd_soc_card *card, void *data)
         |      ^~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/soc-card.c: In function 'snd_soc_card_remove':
   sound/soc/soc-card.c:886:27: error: 'struct snd_soc_card_driver' has no member named 'probed'; did you mean 'probe'?
     886 |         if (card->driver->probed &&
         |                           ^~~~~~
         |                           probe
   sound/soc/soc-card.c: At top level:
>> sound/soc/soc-card.c:1268:6: warning: no previous prototype for 'snd_soc_card_set_pci_ssid' [-Wmissing-prototypes]
    1268 | void snd_soc_card_set_pci_ssid(struct snd_soc_card *card,
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/soc-card.c: In function 'snd_soc_card_set_pci_ssid':
   sound/soc/soc-card.c:1272:13: error: 'struct snd_soc_card' has no member named 'pci_subsystem_vendor'
    1272 |         card->pci_subsystem_vendor = vendor;
         |             ^~
   sound/soc/soc-card.c:1273:13: error: 'struct snd_soc_card' has no member named 'pci_subsystem_device'
    1273 |         card->pci_subsystem_device = device;
         |             ^~
   sound/soc/soc-card.c:1274:13: error: 'struct snd_soc_card' has no member named 'pci_subsystem_set'
    1274 |         card->pci_subsystem_set = true;
         |             ^~
   sound/soc/soc-card.c: At top level:
>> sound/soc/soc-card.c:1293:5: warning: no previous prototype for 'snd_soc_card_get_pci_ssid' [-Wmissing-prototypes]
    1293 | int snd_soc_card_get_pci_ssid(struct snd_soc_card *card,
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   sound/soc/soc-card.c: In function 'snd_soc_card_get_pci_ssid':
   sound/soc/soc-card.c:1297:18: error: 'struct snd_soc_card' has no member named 'pci_subsystem_set'
    1297 |         if (!card->pci_subsystem_set)
         |                  ^~
   sound/soc/soc-card.c:1300:23: error: 'struct snd_soc_card' has no member named 'pci_subsystem_vendor'
    1300 |         *vendor = card->pci_subsystem_vendor;
         |                       ^~
   sound/soc/soc-card.c:1301:23: error: 'struct snd_soc_card' has no member named 'pci_subsystem_device'
    1301 |         *device = card->pci_subsystem_device;
         |                       ^~
   sound/soc/soc-card.c: In function 'snd_soc_card_register3':
   sound/soc/soc-card.c:1337:14: error: 'card_driver' undeclared (first use in this function); did you mean 'parisc_driver'?
    1337 |         if (!card_driver->name)
         |              ^~~~~~~~~~~
         |              parisc_driver
   sound/soc/soc-card.c:1337:14: note: each undeclared identifier is reported only once for each function it appears in
   sound/soc/soc-card.c:1351:24: error: returning 'int' from a function with return type 'struct snd_soc_card *' makes pointer from integer without a cast [-Wint-conversion]
    1351 |                 return -ENOMEM;
         |                        ^


vim +/snd_soc_card_set_pci_ssid +1268 sound/soc/soc-card.c

9666422c9fc116 Kuninori Morimoto 2026-06-10  1266  
9666422c9fc116 Kuninori Morimoto 2026-06-10  1267  /* REMOVE ME */
789d6dc80311d8 Kuninori Morimoto 2026-03-26 @1268  void snd_soc_card_set_pci_ssid(struct snd_soc_card *card,
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1269  			       unsigned short vendor,
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1270  			       unsigned short device)
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1271  {
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1272  	card->pci_subsystem_vendor = vendor;
789d6dc80311d8 Kuninori Morimoto 2026-03-26 @1273  	card->pci_subsystem_device = device;
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1274  	card->pci_subsystem_set = true;
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1275  }
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1276  EXPORT_SYMBOL_GPL(snd_soc_card_set_pci_ssid);
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1277  
9666422c9fc116 Kuninori Morimoto 2026-06-10  1278  int snd_soc_card_driver_get_pci_ssid(struct snd_soc_card_driver *card_driver,
9666422c9fc116 Kuninori Morimoto 2026-06-10  1279  				     unsigned short *vendor,
9666422c9fc116 Kuninori Morimoto 2026-06-10  1280  				     unsigned short *device)
9666422c9fc116 Kuninori Morimoto 2026-06-10  1281  {
9666422c9fc116 Kuninori Morimoto 2026-06-10  1282  	if (!card_driver->pci_subsystem_set)
9666422c9fc116 Kuninori Morimoto 2026-06-10  1283  		return -ENOENT;
9666422c9fc116 Kuninori Morimoto 2026-06-10  1284  
9666422c9fc116 Kuninori Morimoto 2026-06-10  1285  	*vendor = card_driver->pci_subsystem_vendor;
9666422c9fc116 Kuninori Morimoto 2026-06-10  1286  	*device = card_driver->pci_subsystem_device;
9666422c9fc116 Kuninori Morimoto 2026-06-10  1287  
9666422c9fc116 Kuninori Morimoto 2026-06-10  1288  	return 0;
9666422c9fc116 Kuninori Morimoto 2026-06-10  1289  }
9666422c9fc116 Kuninori Morimoto 2026-06-10  1290  EXPORT_SYMBOL_GPL(snd_soc_card_driver_get_pci_ssid);
9666422c9fc116 Kuninori Morimoto 2026-06-10  1291  
9666422c9fc116 Kuninori Morimoto 2026-06-10  1292  /* REMOVE ME */
789d6dc80311d8 Kuninori Morimoto 2026-03-26 @1293  int snd_soc_card_get_pci_ssid(struct snd_soc_card *card,
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1294  			      unsigned short *vendor,
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1295  			      unsigned short *device)
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1296  {
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1297  	if (!card->pci_subsystem_set)
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1298  		return -ENOENT;
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1299  
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1300  	*vendor = card->pci_subsystem_vendor;
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1301  	*device = card->pci_subsystem_device;
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1302  
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1303  	return 0;
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1304  }
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1305  EXPORT_SYMBOL_GPL(snd_soc_card_get_pci_ssid);
789d6dc80311d8 Kuninori Morimoto 2026-03-26  1306  #endif /* CONFIG_PCI */
7928193d4258eb Kuninori Morimoto 2026-03-30  1307  

:::::: The code at line 1268 was first introduced by commit
:::::: 789d6dc80311d84d93dd24b965cdd0319108562c ASoC: soc-card: move snd_soc_card_{set/get}_pci_ssid() to soc-card.c

:::::: TO: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
:::::: CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-06-17  7:39 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=202606171540.9HTfMSDP-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.