[tiwai-sound:topic/pm-ops 7/31] sound/pci/als4000.c:947:2: error: call to undeclared function 'snd_sbmixer_suspend'; ISO C99 and later do not support implicit function declarations
Hi Takashi,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git topic/pm-ops head: 623b2f6110ff118b84628595d53e4947f2883329 commit: 6dae83b64fac25af472e718bf086b43a1f209674 [7/31] ALSA: als4000: Replace with DEFINE_SIMPLE_DEV_PM_OPS() config: i386-randconfig-012-20240125 (https://download.01.org/0day-ci/archive/20240126/202401260641.blzmb4QO-lkp@i...) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240126/202401260641.blzmb4QO-lkp@i...)
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/202401260641.blzmb4QO-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/pci/als4000.c:947:2: error: call to undeclared function 'snd_sbmixer_suspend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
947 | snd_sbmixer_suspend(chip); | ^ sound/pci/als4000.c:947:2: note: did you mean 'snd_sbmixer_read'? include/sound/sb.h:288:15: note: 'snd_sbmixer_read' declared here 288 | unsigned char snd_sbmixer_read(struct snd_sb *chip, unsigned char reg); | ^
sound/pci/als4000.c:959:2: error: call to undeclared function 'snd_sbmixer_resume'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
959 | snd_sbmixer_resume(chip); | ^ sound/pci/als4000.c:959:2: note: did you mean 'snd_sbmixer_read'? include/sound/sb.h:288:15: note: 'snd_sbmixer_read' declared here 288 | unsigned char snd_sbmixer_read(struct snd_sb *chip, unsigned char reg); | ^ 2 errors generated.
vim +/snd_sbmixer_suspend +947 sound/pci/als4000.c
d616a0246da88d Takashi Iwai 2022-04-12 938 68cb2b55927885 Takashi Iwai 2012-07-02 939 static int snd_als4000_suspend(struct device *dev) 703529140cfb77 Takashi Iwai 2005-11-17 940 { 68cb2b55927885 Takashi Iwai 2012-07-02 941 struct snd_card *card = dev_get_drvdata(dev); 703529140cfb77 Takashi Iwai 2005-11-17 942 struct snd_card_als4000 *acard = card->private_data; 703529140cfb77 Takashi Iwai 2005-11-17 943 struct snd_sb *chip = acard->chip; 703529140cfb77 Takashi Iwai 2005-11-17 944 703529140cfb77 Takashi Iwai 2005-11-17 945 snd_power_change_state(card, SNDRV_CTL_POWER_D3hot); 703529140cfb77 Takashi Iwai 2005-11-17 946 703529140cfb77 Takashi Iwai 2005-11-17 @947 snd_sbmixer_suspend(chip); 703529140cfb77 Takashi Iwai 2005-11-17 948 return 0; 703529140cfb77 Takashi Iwai 2005-11-17 949 } 703529140cfb77 Takashi Iwai 2005-11-17 950 68cb2b55927885 Takashi Iwai 2012-07-02 951 static int snd_als4000_resume(struct device *dev) 703529140cfb77 Takashi Iwai 2005-11-17 952 { 68cb2b55927885 Takashi Iwai 2012-07-02 953 struct snd_card *card = dev_get_drvdata(dev); 703529140cfb77 Takashi Iwai 2005-11-17 954 struct snd_card_als4000 *acard = card->private_data; 703529140cfb77 Takashi Iwai 2005-11-17 955 struct snd_sb *chip = acard->chip; 703529140cfb77 Takashi Iwai 2005-11-17 956 703529140cfb77 Takashi Iwai 2005-11-17 957 snd_als4000_configure(chip); 703529140cfb77 Takashi Iwai 2005-11-17 958 snd_sbdsp_reset(chip); 703529140cfb77 Takashi Iwai 2005-11-17 @959 snd_sbmixer_resume(chip); 703529140cfb77 Takashi Iwai 2005-11-17 960
:::::: The code at line 947 was first introduced by commit :::::: 703529140cfb774366b839f38f027f283cb948b4 [ALSA] als4000 - Add PM support
:::::: TO: Takashi Iwai tiwai@suse.de :::::: CC: Jaroslav Kysela perex@suse.cz
participants (1)
-
kernel test robot