[tiwai-sound:topic/pm-ops 9/31] sound/pci/ens1370.c:1988:2: error: call to undeclared function 'snd_ak4531_suspend'; ISO C99 and later do not support implicit function declarations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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: e2a78f52bd0f02f34a84d1f4437dadf3cefdca79 [9/31] ALSA: ens137x: Replace with DEFINE_SIMPLE_DEV_PM_OPS()
config: i386-randconfig-012-20240125 (https://download.01.org/0day-ci/archive/20240126/202401261439.SV1NYR8a-lkp@xxxxxxxxx/config)
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/202401261439.SV1NYR8a-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401261439.SV1NYR8a-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> sound/pci/ens1370.c:1988:2: error: call to undeclared function 'snd_ak4531_suspend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1988 |         snd_ak4531_suspend(ensoniq->u.es1370.ak4531);
         |         ^
   sound/pci/ens1370.c:1988:2: note: did you mean 'snd_ak4531_mixer'?
   include/sound/ak4531_codec.h:62:5: note: 'snd_ak4531_mixer' declared here
      62 | int snd_ak4531_mixer(struct snd_card *card, struct snd_ak4531 *_ak4531,
         |     ^
>> sound/pci/ens1370.c:2003:2: error: call to undeclared function 'snd_ak4531_resume'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2003 |         snd_ak4531_resume(ensoniq->u.es1370.ak4531);
         |         ^
   2 errors generated.


vim +/snd_ak4531_suspend +1988 sound/pci/ens1370.c

f31a31b9024f21 Kurt J. Bosch 2005-11-16  1970  
68cb2b55927885 Takashi Iwai  2012-07-02  1971  static int snd_ensoniq_suspend(struct device *dev)
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1972  {
68cb2b55927885 Takashi Iwai  2012-07-02  1973  	struct snd_card *card = dev_get_drvdata(dev);
fe8be10786c040 Takashi Iwai  2005-11-17  1974  	struct ensoniq *ensoniq = card->private_data;
fe8be10786c040 Takashi Iwai  2005-11-17  1975  	
fe8be10786c040 Takashi Iwai  2005-11-17  1976  	snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1977  
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1978  #ifdef CHIP1371	
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1979  	snd_ac97_suspend(ensoniq->u.es1371.ac97);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1980  #else
15f500a6994e55 Takashi Iwai  2006-01-12  1981  	/* try to reset AK4531 */
15f500a6994e55 Takashi Iwai  2006-01-12  1982  	outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x02), ES_REG(ensoniq, 1370_CODEC));
15f500a6994e55 Takashi Iwai  2006-01-12  1983  	inw(ES_REG(ensoniq, 1370_CODEC));
15f500a6994e55 Takashi Iwai  2006-01-12  1984  	udelay(100);
15f500a6994e55 Takashi Iwai  2006-01-12  1985  	outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x03), ES_REG(ensoniq, 1370_CODEC));
15f500a6994e55 Takashi Iwai  2006-01-12  1986  	inw(ES_REG(ensoniq, 1370_CODEC));
15f500a6994e55 Takashi Iwai  2006-01-12  1987  	udelay(100);
fe8be10786c040 Takashi Iwai  2005-11-17 @1988  	snd_ak4531_suspend(ensoniq->u.es1370.ak4531);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1989  #endif	
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1990  	return 0;
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1991  }
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1992  
68cb2b55927885 Takashi Iwai  2012-07-02  1993  static int snd_ensoniq_resume(struct device *dev)
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1994  {
68cb2b55927885 Takashi Iwai  2012-07-02  1995  	struct snd_card *card = dev_get_drvdata(dev);
fe8be10786c040 Takashi Iwai  2005-11-17  1996  	struct ensoniq *ensoniq = card->private_data;
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1997  
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1998  	snd_ensoniq_chip_init(ensoniq);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  1999  
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2000  #ifdef CHIP1371	
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2001  	snd_ac97_resume(ensoniq->u.es1371.ac97);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2002  #else
fe8be10786c040 Takashi Iwai  2005-11-17 @2003  	snd_ak4531_resume(ensoniq->u.es1370.ak4531);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2004  #endif	
fe8be10786c040 Takashi Iwai  2005-11-17  2005  	snd_power_change_state(card, SNDRV_CTL_POWER_D0);
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2006  	return 0;
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2007  }
f31a31b9024f21 Kurt J. Bosch 2005-11-16  2008  

:::::: The code at line 1988 was first introduced by commit
:::::: fe8be10786c040bce53c18048d75b1b23aec64ae [ALSA] ens137x - Fix and ADD PM support

:::::: TO: Takashi Iwai <tiwai@xxxxxxx>
:::::: CC: Jaroslav Kysela <perex@xxxxxxx>

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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux