[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210181032.nXpZ5Tm2-lkp@intel.com>
Date: Tue, 18 Oct 2022 10:58:01 +0800
From: kernel test robot <lkp@...el.com>
To: Martin PoviĊĦer <povik@...tonmail.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Hector Martin <marcan@...can.st>
Subject: [asahilinux:bits/070-audio 46/47] sound/soc/codecs/cs42l84.c:60:6:
warning: no previous prototype for 'cs42l84_volatile_register'
tree: https://github.com/AsahiLinux/linux bits/070-audio
head: 82616e38df8f451aee5113a11de380e620c53035
commit: c51c357b5c5dbbddf9c5a9da33480998f74845a0 [46/47] ASoC: cs42l84: Enable regcache (initially)
config: m68k-allmodconfig
compiler: m68k-linux-gcc (GCC) 12.1.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/AsahiLinux/linux/commit/c51c357b5c5dbbddf9c5a9da33480998f74845a0
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/070-audio
git checkout c51c357b5c5dbbddf9c5a9da33480998f74845a0
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/platform/ sound/soc/codecs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> sound/soc/codecs/cs42l84.c:60:6: warning: no previous prototype for 'cs42l84_volatile_register' [-Wmissing-prototypes]
60 | bool cs42l84_volatile_register(struct device *dev, unsigned int reg)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/codecs/cs42l84.c: In function 'cs42l84_pll_config':
sound/soc/codecs/cs42l84.c:404:17: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
404 | FIELD_PREP(CS42L84_ASP_FSYNC_CTL2_BCLK_PERIOD_LO, fsync & 0x7f));
| ^~~~~~~~~~
sound/soc/codecs/cs42l84.c: At top level:
sound/soc/codecs/cs42l84.c:57:33: warning: 'cs42l84_reg_defaults' defined but not used [-Wunused-const-variable=]
57 | static const struct reg_default cs42l84_reg_defaults[] = {
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/cs42l84_volatile_register +60 sound/soc/codecs/cs42l84.c
59
> 60 bool cs42l84_volatile_register(struct device *dev, unsigned int reg)
61 {
62 switch (reg) {
63 case CS42L84_DEVID ... CS42L84_DEVID+5:
64 case CS42L84_TSRS_PLUG_INT_STATUS:
65 case CS42L84_PLL_LOCK_STATUS:
66 case CS42L84_TSRS_PLUG_STATUS:
67 case CS42L84_HS_DET_STATUS2:
68 return true;
69 default:
70 return false;
71 }
72 }
73
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (276608 bytes)
Powered by blists - more mailing lists