lkml.org 
[lkml]   [2022]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[asahilinux:bits/070-audio 11/15] sound/soc/apple/macaudio.c:290:3: sparse: sparse: symbol 'macaudio_fixed_kctls' was not declared. Should it be static?
tree:   https://github.com/AsahiLinux/linux bits/070-audio
head: f284fb1969531d5bcbc85cdaba483d954aafbb1f
commit: 45d56de6798e69a32c1e7b529e7849fc74ed3e66 [11/15] ASoC: Add macaudio machine driver
config: arm64-randconfig-s043-20220721 (https://download.01.org/0day-ci/archive/20220801/202208010056.ESwV1wcB-lkp@intel.com/config)
compiler: aarch64-linux-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://github.com/AsahiLinux/linux/commit/45d56de6798e69a32c1e7b529e7849fc74ed3e66
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/070-audio
git checkout 45d56de6798e69a32c1e7b529e7849fc74ed3e66
# 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=arm64 SHELL=/bin/bash sound/soc/apple/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
>> sound/soc/apple/macaudio.c:290:3: sparse: sparse: symbol 'macaudio_fixed_kctls' was not declared. Should it be static?

vim +/macaudio_fixed_kctls +290 sound/soc/apple/macaudio.c

286
287 struct fixed_kctl {
288 char *name;
289 char *value;
> 290 } macaudio_fixed_kctls[] = {
291 {"ASI1 Sel", "Left"},
292 {"Left ASI1 Sel", "Left"},
293 {"Right ASI1 Sel", "Left"},
294 {"Left Front ASI1 Sel", "Left"},
295 {"Left Rear ASI1 Sel", "Left"},
296 {"Right Front ASI1 Sel", "Left"},
297 {"Right Rear ASI1 Sel", "Left"},
298 {"Left Tweeter ASI1 Sel", "Left"},
299 {"Left Woofer 1 ASI1 Sel", "Left"},
300 {"Left Woofer 2 ASI1 Sel", "Left"},
301 {"Right Tweeter ASI1 Sel", "Left"},
302 {"Right Woofer 1 ASI1 Sel", "Left"},
303 {"Right Woofer 2 ASI1 Sel", "Left"},
304 {"Left ISENSE Switch", "Off"},
305 {"Left VSENSE Switch", "Off"},
306 {"Right ISENSE Switch", "Off"},
307 {"Right VSENSE Switch", "Off"},
308 {"Jack Mixer Volume", "63"},
309 { }
310 };
311

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-07-31 18:22    [W:0.031 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site