[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210122049.iBsodfTg-lkp@intel.com>
Date: Wed, 12 Oct 2022 20:05:41 +0800
From: kernel test robot <lkp@...el.com>
To: Martin PoviĊĦer <povik+lin@...ebit.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: sound/soc/codecs/cs42l83-i2c.c:148:28: sparse: sparse: symbol
'cs42l83_regmap' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 49da070062390094112b423ba443ea193527b2e4
commit: 94d5f62a91aab6ac9c3f4abfd048cbe5f77153ac ASoC: cs42l83: Extend CS42L42 support to new part
date: 3 weeks ago
config: arc-randconfig-s033-20221012
compiler: arc-elf-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=94d5f62a91aab6ac9c3f4abfd048cbe5f77153ac
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 94d5f62a91aab6ac9c3f4abfd048cbe5f77153ac
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arc SHELL=/bin/bash sound/soc/codecs/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> sound/soc/codecs/cs42l83-i2c.c:148:28: sparse: sparse: symbol 'cs42l83_regmap' was not declared. Should it be static?
vim +/cs42l83_regmap +148 sound/soc/codecs/cs42l83-i2c.c
143
144 /*
145 * This is all the same as for CS42L42 but we
146 * replace the on-reset register defaults.
147 */
> 148 const struct regmap_config cs42l83_regmap = {
149 .reg_bits = 8,
150 .val_bits = 8,
151
152 .readable_reg = cs42l42_readable_register,
153 .volatile_reg = cs42l42_volatile_register,
154
155 .ranges = &cs42l42_page_range,
156 .num_ranges = 1,
157
158 .max_register = CS42L42_MAX_REGISTER,
159 .reg_defaults = cs42l83_reg_defaults,
160 .num_reg_defaults = ARRAY_SIZE(cs42l83_reg_defaults),
161 .cache_type = REGCACHE_RBTREE,
162
163 .use_single_read = true,
164 .use_single_write = true,
165 };
166
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (158864 bytes)
Powered by blists - more mailing lists