[esmil:visionfive 48/63] sound/soc/starfive/i2svad.h:238:6: warning: no previous prototype for 'i2svad_pcm_push_tx'

From: kernel test robot
Date: Mon Jan 24 2022 - 05:00:19 EST


tree: https://github.com/esmil/linux visionfive
head: fdbe623707a8f3f9b9d2cb3c4c240299a12b8302
commit: 20e1533986c528bed5da7a0957f828337d17d47d [48/63] ASoC: starfive: Add StarFive JH7100 audio drivers
config: xtensa-randconfig-r031-20220124 (https://download.01.org/0day-ci/archive/20220124/202201241754.z6jBG4qf-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 11.2.0
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
# https://github.com/esmil/linux/commit/20e1533986c528bed5da7a0957f828337d17d47d
git remote add esmil https://github.com/esmil/linux
git fetch --no-tags esmil visionfive
git checkout 20e1533986c528bed5da7a0957f828337d17d47d
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=xtensa SHELL=/bin/bash sound/soc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

In file included from sound/soc/starfive/i2svad.c:20:
>> sound/soc/starfive/i2svad.h:238:6: warning: no previous prototype for 'i2svad_pcm_push_tx' [-Wmissing-prototypes]
238 | void i2svad_pcm_push_tx(struct i2svad_dev *dev) { }
| ^~~~~~~~~~~~~~~~~~
>> sound/soc/starfive/i2svad.h:239:6: warning: no previous prototype for 'i2svad_pcm_pop_rx' [-Wmissing-prototypes]
239 | void i2svad_pcm_pop_rx(struct i2svad_dev *dev) { }
| ^~~~~~~~~~~~~~~~~
>> sound/soc/starfive/i2svad.h:240:5: warning: no previous prototype for 'i2svad_pcm_register' [-Wmissing-prototypes]
240 | int i2svad_pcm_register(struct platform_device *pdev)
| ^~~~~~~~~~~~~~~~~~~


vim +/i2svad_pcm_push_tx +238 sound/soc/starfive/i2svad.h

232
233 #if IS_ENABLED(CONFIG_SND_STARFIVE_I2SVAD_PCM)
234 void i2svad_pcm_push_tx(struct i2svad_dev *dev);
235 void i2svad_pcm_pop_rx(struct i2svad_dev *dev);
236 int i2svad_pcm_register(struct platform_device *pdev);
237 #else
> 238 void i2svad_pcm_push_tx(struct i2svad_dev *dev) { }
> 239 void i2svad_pcm_pop_rx(struct i2svad_dev *dev) { }
> 240 int i2svad_pcm_register(struct platform_device *pdev)
241 {
242 return -EINVAL;
243 }
244 #endif
245

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx