sound/soc/codecs/nau8360-dsp.c:23:22: sparse: sparse: symbol 'nau8360_dsp_addr' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next head: 27a50351cbc82e9f0811df417c5e7d2a72f60ef5 commit: be88847a8bb1a14194cf50116f8909d127861318 [20/61] ASoC: codecs: nau8360: Add support for NAU83G60 amplifier config: microblaze-randconfig-r133-20260902 (https://download.01.org/0day-ci/archive/20260902/[email protected]/config) compiler: microblaze-linux-gcc (GCC) 16.1.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260902/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
sparse warnings: (new ones prefixed by >>)
>> sound/soc/codecs/nau8360-dsp.c:23:22: sparse: sparse: symbol 'nau8360_dsp_addr' was not declared. Should it be static? -- >> sound/soc/codecs/nau8360.c:436:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got restricted __be16 [usertype] @@
sound/soc/codecs/nau8360.c:436:28: sparse: expected unsigned short [usertype]
sound/soc/codecs/nau8360.c:436:28: sparse: got restricted __be16 [usertype]
vim +/nau8360_dsp_addr +23 sound/soc/codecs/nau8360-dsp.c
21
22 #define NAU8360_DSP_IDLE_RETRY 10
> 23 const unsigned short nau8360_dsp_addr[NAU8360_DSP_FW_NUM] = {
24 NAU8360_RF000_DSP_COMM, NAU8360_RF002_DSP_COMM };
25 --
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki