* [linux-sof-driver:pr/2298 1/2] sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean
@ 2020-07-20 18:53 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-20 18:53 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 32263 bytes --]
tree: https://github.com/thesofproject/linux pr/2298
head: cbddce5bcdf201bf4c6a5bcccd3b192f9472f3e3
commit: 099553e4970d633d81658a7270f30332c12521a8 [1/2] ASoc: rt711-sdca: Add RT711 SDCA vendor-specific driver
config: arm64-sof-customedconfig-soundwire-defconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.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
git checkout 099553e4970d633d81658a7270f30332c12521a8
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from sound/soc/codecs/rt711-sdca.c:27:
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean 'SDW_SCP_CTRL'? [-Werror=implicit-function-declaration]
78 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_CS01, CTL_SAMPLE_FREQ_INDEX, 0), 0x09 },
| ^~~~~~~~~~~~
| SDW_SCP_CTRL
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: initializer element is not constant
sound/soc/codecs/rt711-sdca-sdw.h:78:4: note: (near initialization for 'rt711_sdca_reg_defaults[63].reg')
sound/soc/codecs/rt711-sdca-sdw.h:79:4: error: initializer element is not constant
79 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:79:4: note: (near initialization for 'rt711_sdca_reg_defaults[64].reg')
sound/soc/codecs/rt711-sdca-sdw.h:80:4: error: initializer element is not constant
80 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:80:4: note: (near initialization for 'rt711_sdca_reg_defaults[65].reg')
sound/soc/codecs/rt711-sdca-sdw.h:81:4: error: initializer element is not constant
81 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:81:4: note: (near initialization for 'rt711_sdca_reg_defaults[66].reg')
sound/soc/codecs/rt711-sdca-sdw.h:82:4: error: initializer element is not constant
82 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:82:4: note: (near initialization for 'rt711_sdca_reg_defaults[67].reg')
sound/soc/codecs/rt711-sdca-sdw.h:83:4: error: initializer element is not constant
83 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:83:4: note: (near initialization for 'rt711_sdca_reg_defaults[68].reg')
sound/soc/codecs/rt711-sdca-sdw.h:84:4: error: initializer element is not constant
84 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:84:4: note: (near initialization for 'rt711_sdca_reg_defaults[69].reg')
sound/soc/codecs/rt711-sdca-sdw.h:85:4: error: initializer element is not constant
85 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:85:4: note: (near initialization for 'rt711_sdca_reg_defaults[70].reg')
sound/soc/codecs/rt711-sdca-sdw.h:86:4: error: initializer element is not constant
86 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:86:4: note: (near initialization for 'rt711_sdca_reg_defaults[71].reg')
sound/soc/codecs/rt711-sdca-sdw.h:87:4: error: initializer element is not constant
87 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PDE28, CTL_REQ_POWER_STATE, 0), 0x03 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:87:4: note: (near initialization for 'rt711_sdca_reg_defaults[72].reg')
sound/soc/codecs/rt711-sdca-sdw.h:88:4: error: initializer element is not constant
88 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:88:4: note: (near initialization for 'rt711_sdca_reg_defaults[73].reg')
sound/soc/codecs/rt711-sdca-sdw.h:89:4: error: initializer element is not constant
89 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:89:4: note: (near initialization for 'rt711_sdca_reg_defaults[74].reg')
sound/soc/codecs/rt711-sdca-sdw.h:90:4: error: initializer element is not constant
90 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:90:4: note: (near initialization for 'rt711_sdca_reg_defaults[75].reg')
sound/soc/codecs/rt711-sdca-sdw.h:91:4: error: initializer element is not constant
91 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:91:4: note: (near initialization for 'rt711_sdca_reg_defaults[76].reg')
sound/soc/codecs/rt711-sdca-sdw.h:92:4: error: initializer element is not constant
92 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:92:4: note: (near initialization for 'rt711_sdca_reg_defaults[77].reg')
sound/soc/codecs/rt711-sdca-sdw.h:93:4: error: initializer element is not constant
93 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:93:4: note: (near initialization for 'rt711_sdca_reg_defaults[78].reg')
sound/soc/codecs/rt711-sdca-sdw.h:94:4: error: initializer element is not constant
94 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:94:4: note: (near initialization for 'rt711_sdca_reg_defaults[79].reg')
sound/soc/codecs/rt711-sdca-sdw.h:95:4: error: initializer element is not constant
95 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:95:4: note: (near initialization for 'rt711_sdca_reg_defaults[80].reg')
In file included from sound/soc/codecs/rt711-sdca.h:15,
from sound/soc/codecs/rt711-sdca.c:26:
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:570:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
570 | SOC_DOUBLE_R_EXT_TLV("FU05 Playback Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[0]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:570:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
570 | SOC_DOUBLE_R_EXT_TLV("FU05 Playback Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:575:2: note: in expansion of macro 'SOC_DOUBLE_R'
575 | SOC_DOUBLE_R("FU1E Capture Switch",
| ^~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[1]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:575:2: note: in expansion of macro 'SOC_DOUBLE_R'
575 | SOC_DOUBLE_R("FU1E Capture Switch",
| ^~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:579:2: note: in expansion of macro 'SOC_DOUBLE_R'
579 | SOC_DOUBLE_R("FU0F Capture Switch",
| ^~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[2]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:121:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
121 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:579:2: note: in expansion of macro 'SOC_DOUBLE_R'
579 | SOC_DOUBLE_R("FU0F Capture Switch",
| ^~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:583:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
583 | SOC_DOUBLE_R_EXT_TLV("FU1E Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[3]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:583:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
583 | SOC_DOUBLE_R_EXT_TLV("FU1E Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:588:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
588 | SOC_DOUBLE_R_EXT_TLV("FU0F Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[4]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:588:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
588 | SOC_DOUBLE_R_EXT_TLV("FU0F Capture Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:593:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
593 | SOC_DOUBLE_R_EXT_TLV("FU44 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[5]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:593:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
593 | SOC_DOUBLE_R_EXT_TLV("FU44 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
>> include/sound/soc.h:48:2: error: initializer element is not constant
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:598:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
598 | SOC_DOUBLE_R_EXT_TLV("FU15 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
include/sound/soc.h:48:2: note: (near initialization for 'rt711_sdca_snd_controls[6]')
48 | {.reg = xlreg, .rreg = xrreg, .shift = xshift, .rshift = xshift, \
| ^
include/sound/soc.h:281:19: note: in expansion of macro 'SOC_DOUBLE_R_VALUE'
281 | .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \
| ^~~~~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca.c:598:2: note: in expansion of macro 'SOC_DOUBLE_R_EXT_TLV'
598 | SOC_DOUBLE_R_EXT_TLV("FU15 Gain Volume",
| ^~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/codecs/rt711-sdca.c:27:
sound/soc/codecs/rt711-sdca-sdw.h:14:33: warning: 'rt711_sdca_reg_defaults' defined but not used [-Wunused-const-variable=]
14 | static const struct reg_default rt711_sdca_reg_defaults[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from sound/soc/codecs/rt711-sdca-sdw.c:16:
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean 'SDW_SCP_CTRL'? [-Werror=implicit-function-declaration]
78 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_CS01, CTL_SAMPLE_FREQ_INDEX, 0), 0x09 },
| ^~~~~~~~~~~~
| SDW_SCP_CTRL
>> sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: initializer element is not constant
sound/soc/codecs/rt711-sdca-sdw.h:78:4: note: (near initialization for 'rt711_sdca_reg_defaults[63].reg')
sound/soc/codecs/rt711-sdca-sdw.h:79:4: error: initializer element is not constant
79 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:79:4: note: (near initialization for 'rt711_sdca_reg_defaults[64].reg')
sound/soc/codecs/rt711-sdca-sdw.h:80:4: error: initializer element is not constant
80 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:80:4: note: (near initialization for 'rt711_sdca_reg_defaults[65].reg')
sound/soc/codecs/rt711-sdca-sdw.h:81:4: error: initializer element is not constant
81 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:81:4: note: (near initialization for 'rt711_sdca_reg_defaults[66].reg')
sound/soc/codecs/rt711-sdca-sdw.h:82:4: error: initializer element is not constant
82 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:82:4: note: (near initialization for 'rt711_sdca_reg_defaults[67].reg')
sound/soc/codecs/rt711-sdca-sdw.h:83:4: error: initializer element is not constant
83 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:83:4: note: (near initialization for 'rt711_sdca_reg_defaults[68].reg')
sound/soc/codecs/rt711-sdca-sdw.h:84:4: error: initializer element is not constant
84 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:84:4: note: (near initialization for 'rt711_sdca_reg_defaults[69].reg')
sound/soc/codecs/rt711-sdca-sdw.h:85:4: error: initializer element is not constant
85 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:85:4: note: (near initialization for 'rt711_sdca_reg_defaults[70].reg')
sound/soc/codecs/rt711-sdca-sdw.h:86:4: error: initializer element is not constant
86 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:86:4: note: (near initialization for 'rt711_sdca_reg_defaults[71].reg')
sound/soc/codecs/rt711-sdca-sdw.h:87:4: error: initializer element is not constant
87 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PDE28, CTL_REQ_POWER_STATE, 0), 0x03 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:87:4: note: (near initialization for 'rt711_sdca_reg_defaults[72].reg')
sound/soc/codecs/rt711-sdca-sdw.h:88:4: error: initializer element is not constant
88 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:88:4: note: (near initialization for 'rt711_sdca_reg_defaults[73].reg')
sound/soc/codecs/rt711-sdca-sdw.h:89:4: error: initializer element is not constant
89 | { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:89:4: note: (near initialization for 'rt711_sdca_reg_defaults[74].reg')
sound/soc/codecs/rt711-sdca-sdw.h:90:4: error: initializer element is not constant
90 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:90:4: note: (near initialization for 'rt711_sdca_reg_defaults[75].reg')
sound/soc/codecs/rt711-sdca-sdw.h:91:4: error: initializer element is not constant
91 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:91:4: note: (near initialization for 'rt711_sdca_reg_defaults[76].reg')
sound/soc/codecs/rt711-sdca-sdw.h:92:4: error: initializer element is not constant
92 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:92:4: note: (near initialization for 'rt711_sdca_reg_defaults[77].reg')
sound/soc/codecs/rt711-sdca-sdw.h:93:4: error: initializer element is not constant
93 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R), 0x00 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:93:4: note: (near initialization for 'rt711_sdca_reg_defaults[78].reg')
sound/soc/codecs/rt711-sdca-sdw.h:94:4: error: initializer element is not constant
94 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_L), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:94:4: note: (near initialization for 'rt711_sdca_reg_defaults[79].reg')
sound/soc/codecs/rt711-sdca-sdw.h:95:4: error: initializer element is not constant
95 | { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_R), 0x01 },
| ^~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.h:95:4: note: (near initialization for 'rt711_sdca_reg_defaults[80].reg')
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_sdw_read':
>> sound/soc/codecs/rt711-sdca-sdw.c:107:2: error: case label does not reduce to an integer constant
107 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:108:2: error: case label does not reduce to an integer constant
108 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:109:2: error: case label does not reduce to an integer constant
109 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:110:2: error: case label does not reduce to an integer constant
110 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:111:2: error: case label does not reduce to an integer constant
111 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:112:2: error: case label does not reduce to an integer constant
112 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:113:2: error: case label does not reduce to an integer constant
113 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:114:2: error: case label does not reduce to an integer constant
114 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:115:2: error: case label does not reduce to an integer constant
115 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:116:2: error: case label does not reduce to an integer constant
116 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_sdw_write':
sound/soc/codecs/rt711-sdca-sdw.c:158:2: error: case label does not reduce to an integer constant
158 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:159:2: error: case label does not reduce to an integer constant
159 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:160:2: error: case label does not reduce to an integer constant
160 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:161:2: error: case label does not reduce to an integer constant
161 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:162:2: error: case label does not reduce to an integer constant
162 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:163:2: error: case label does not reduce to an integer constant
163 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:164:2: error: case label does not reduce to an integer constant
164 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:165:2: error: case label does not reduce to an integer constant
165 | case SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:166:2: error: case label does not reduce to an integer constant
166 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c:167:2: error: case label does not reduce to an integer constant
167 | case SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R):
| ^~~~
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_read_prop':
>> sound/soc/codecs/rt711-sdca-sdw.c:249:6: error: 'struct sdw_slave_prop' has no member named 'is_sdca'
249 | prop->is_sdca = true;
| ^~
sound/soc/codecs/rt711-sdca-sdw.c:249:2: warning: statement with no effect [-Wunused-value]
249 | prop->is_sdca = true;
| ^~~~
In file included from include/linux/printk.h:404,
from include/linux/kernel.h:15,
from include/linux/delay.h:22,
from sound/soc/codecs/rt711-sdca-sdw.c:9:
sound/soc/codecs/rt711-sdca-sdw.c: In function 'rt711_sdca_interrupt_callback':
>> sound/soc/codecs/rt711-sdca-sdw.c:320:31: error: 'struct sdw_slave_intr_status' has no member named 'sdca_cascade'
320 | status->control_port, status->sdca_cascade);
| ^~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:115:2: note: in expansion of macro 'dynamic_dev_dbg'
115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
sound/soc/codecs/rt711-sdca-sdw.c:318:2: note: in expansion of macro 'dev_dbg'
318 | dev_dbg(&slave->dev,
| ^~~~~~~
>> sound/soc/codecs/rt711-sdca-sdw.c:319:3: warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'const struct reg_default *' [-Wformat=]
319 | "%s control_port_stat=%x, sdca_cascade=%x", __func__,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:125:15: note: in definition of macro '__dynamic_func_call'
125 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:157:2: note: in expansion of macro '_dynamic_func_call'
157 | _dynamic_func_call(fmt,__dynamic_dev_dbg, \
| ^~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:115:2: note: in expansion of macro 'dynamic_dev_dbg'
115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~
include/linux/dev_printk.h:115:23: note: in expansion of macro 'dev_fmt'
115 | dynamic_dev_dbg(dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
sound/soc/codecs/rt711-sdca-sdw.c:318:2: note: in expansion of macro 'dev_dbg'
318 | dev_dbg(&slave->dev,
| ^~~~~~~
sound/soc/codecs/rt711-sdca-sdw.c:319:43: note: format string is defined here
319 | "%s control_port_stat=%x, sdca_cascade=%x", __func__,
| ~^
| |
| unsigned int
sound/soc/codecs/rt711-sdca-sdw.c:322:42: error: 'struct sdw_slave_intr_status' has no member named 'sdca_cascade'
322 | if (status->control_port & 0x4 || status->sdca_cascade)
| ^~
cc1: some warnings being treated as errors
vim +78 sound/soc/codecs/rt711-sdca-sdw.h
13
14 static const struct reg_default rt711_sdca_reg_defaults[] = {
15 { 0x005c, 0x00 },
16 { 0x005d, 0x00 },
17 { 0x201a, 0x00 },
18 { 0x201e, 0x00 },
19 { 0x201f, 0x00 },
20 { 0x2020, 0x00 },
21 { 0x2021, 0x00 },
22 { 0x2022, 0x00 },
23 { 0x2023, 0x00 },
24 { 0x2024, 0x00 },
25 { 0x2025, 0x01 },
26 { 0x2026, 0x00 },
27 { 0x2027, 0x00 },
28 { 0x2029, 0x00 },
29 { 0x202a, 0x00 },
30 { 0x202d, 0x00 },
31 { 0x202e, 0x00 },
32 { 0x202f, 0x00 },
33 { 0x2030, 0x00 },
34 { 0x2031, 0x00 },
35 { 0x2032, 0x00 },
36 { 0x2033, 0x00 },
37 { 0x2230, 0x00 },
38 { 0x2231, 0x2f },
39 { 0x2232, 0x80 },
40 { 0x2233, 0x00 },
41 { 0x2234, 0x00 },
42 { 0x2235, 0x00 },
43 { 0x2236, 0x00 },
44 { 0x2237, 0x00 },
45 { 0x2238, 0x00 },
46 { 0x2239, 0x00 },
47 { 0x2f01, 0x00 },
48 { 0x2f02, 0x09 },
49 { 0x2f03, 0x00 },
50 { 0x2f04, 0x00 },
51 { 0x2f05, 0x0b },
52 { 0x2f06, 0x01 },
53 { 0x2f08, 0x00 },
54 { 0x2f09, 0x00 },
55 { 0x2f0a, 0x00 },
56 { 0x2f0b, 0x00 },
57 { 0x2f0c, 0x00 },
58 { 0x2f0d, 0x00 },
59 { 0x2f0e, 0x14 },
60 { 0x2f0f, 0x00 },
61 { 0x2f50, 0x03 },
62 { 0x2f5a, 0x00 },
63 { 0x2000009, 0x1029 },
64 { 0x2000011, 0x007a },
65 { 0x200001a, 0x8003 },
66 { 0x2000045, 0x5289 },
67 { 0x2000048, 0x8049 },
68 { 0x200004a, 0xa83b },
69 { 0x200006b, 0x5064 },
70 { 0x200006f, 0x058b },
71 { 0x5800000, 0x0008 },
72 { 0x5800001, 0x0000 },
73 { 0x5f00001, 0x000a },
74 { 0x6100000, 0x6100 },
75 { 0x6100035, 0x0060 },
76 { 0x6100036, 0x0029 },
77 { 0x610003f, 0xff12 },
> 78 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_CS01, CTL_SAMPLE_FREQ_INDEX, 0), 0x09 },
79 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_L), 0x01 },
80 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_MUTE, CH_R), 0x01 },
81 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_L), 0x00 },
82 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU05, CTL_FU_VOLUME, CH_R), 0x00 },
83 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_L), 0x00 },
84 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_VOLUME, CH_R), 0x00 },
85 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_L), 0x01 },
86 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_USER_FU0F, CTL_FU_MUTE, CH_R), 0x01 },
87 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PDE28, CTL_REQ_POWER_STATE, 0), 0x03 },
88 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_L), 0x00 },
89 { SDW_SDCA_CTL(FUN_JACK_CODEC, ENT_PLATFORM_FU44, CTL_FU_CH_GAIN, CH_R), 0x00 },
90 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_L), 0x00 },
91 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_PLATFORM_FU15, CTL_FU_CH_GAIN, CH_R), 0x00 },
92 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_L), 0x00 },
93 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_VOLUME, CH_R), 0x00 },
94 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_L), 0x01 },
95 { SDW_SDCA_CTL(FUN_MIC_ARRAY, ENT_USER_FU1E, CTL_FU_MUTE, CH_R), 0x01 },
96 };
97
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 42850 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-07-20 18:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-20 18:53 [linux-sof-driver:pr/2298 1/2] sound/soc/codecs/rt711-sdca-sdw.h:78:4: error: implicit declaration of function 'SDW_SDCA_CTL'; did you mean kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.