[tobetter:odroid-7.2.y 53/58] sound/soc/codecs/es8316.c:928:1: error: type defaults to 'int' in declaration of 'module_i2c_driver'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/tobetter/linux odroid-7.2.y
head:   a105acaa179819b345f92c1de3b2628b9d1a31f9
commit: 4093d770faddfc408c741a41d0dbf37a3787f32d [53/58] ODROID-M2:arm64/dts: hdmi / analog sound_card support
config: nios2-randconfig-002-20260813 (https://download.01.org/0day-ci/archive/20260813/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260813/[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]/

All error/warnings (new ones prefixed by >>):

>> sound/soc/codecs/es8316.c:928:1: warning: data definition has no type or storage class
     928 | module_i2c_driver(es8316_i2c_driver);
         | ^~~~~~~~~~~~~~~~~
>> sound/soc/codecs/es8316.c:928:1: error: type defaults to 'int' in declaration of 'module_i2c_driver' [-Werror=implicit-int]
>> sound/soc/codecs/es8316.c:928:1: warning: parameter names (without types) in function declaration
>> sound/soc/codecs/es8316.c:919:26: warning: 'es8316_i2c_driver' defined but not used [-Wunused-variable]
     919 | static struct i2c_driver es8316_i2c_driver = {
         |                          ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for COMMON_CLK_AXG_AUDIO
   Depends on [n]: COMMON_CLK [=y] && (ARCH_MESON || COMPILE_TEST [=y]) && ARM64
   Selected by [y]:
   - SND_MESON_AXG_FIFO [=y] && SOUND [=y] && SND [=y] && SND_SOC [=y] && (ARCH_MESON || COMPILE_TEST [=y] && COMMON_CLK [=y])
   WARNING: unmet direct dependencies detected for SND_SOC_ES8316
   Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=y] && I2C [=n]
   Selected by [y]:
   - SND_SOC_ROCKCHIP_I2S [=y] && SOUND [=y] && SND [=y] && SND_SOC [=y] && (COMPILE_TEST [=y] || ARCH_ROCKCHIP) && HAVE_CLK [=y]


vim +928 sound/soc/codecs/es8316.c

b8b88b70875af7 Daniel Drake     2017-06-12  918  
b8b88b70875af7 Daniel Drake     2017-06-12 @919  static struct i2c_driver es8316_i2c_driver = {
b8b88b70875af7 Daniel Drake     2017-06-12  920  	.driver = {
b8b88b70875af7 Daniel Drake     2017-06-12  921  		.name			= "es8316",
b8b88b70875af7 Daniel Drake     2017-06-12  922  		.acpi_match_table	= ACPI_PTR(es8316_acpi_match),
b8b88b70875af7 Daniel Drake     2017-06-12  923  		.of_match_table		= of_match_ptr(es8316_of_match),
b8b88b70875af7 Daniel Drake     2017-06-12  924  	},
9abcd24002bf79 Uwe Kleine-König 2023-04-25  925  	.probe		= es8316_i2c_probe,
b8b88b70875af7 Daniel Drake     2017-06-12  926  	.id_table	= es8316_i2c_id,
b8b88b70875af7 Daniel Drake     2017-06-12  927  };
b8b88b70875af7 Daniel Drake     2017-06-12 @928  module_i2c_driver(es8316_i2c_driver);
b8b88b70875af7 Daniel Drake     2017-06-12  929  

:::::: The code at line 928 was first introduced by commit
:::::: b8b88b70875af786d9f346d766fa2b0630e2cf41 ASoC: add es8316 codec driver

:::::: TO: Daniel Drake <[email protected]>
:::::: CC: Mark Brown <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.