[PATCH v1 1/1] mfd: syscon: atmel-smc: Don't use "proxy" headers

kernel test robot lkp at intel.com
Fri Jun 27 04:30:25 PDT 2025


Hi Andy,

kernel test robot noticed the following build warnings:

[auto build test WARNING on lee-mfd/for-mfd-next]
[also build test WARNING on lee-mfd/for-mfd-fixes soc/for-next lee-leds/for-leds-next linus/master v6.16-rc3 next-20250626]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/mfd-syscon-atmel-smc-Don-t-use-proxy-headers/20250626-235519
base:   https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git for-mfd-next
patch link:    https://lore.kernel.org/r/20250626155435.325336-1-andriy.shevchenko%40linux.intel.com
patch subject: [PATCH v1 1/1] mfd: syscon: atmel-smc: Don't use "proxy" headers
config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20250627/202506271909.O9FuRVos-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250627/202506271909.O9FuRVos-lkp@intel.com/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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506271909.O9FuRVos-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/mfd/atmel-smc.c:24:1: warning: data definition has no type or storage class
      24 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_init);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:24:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:24:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:118:1: warning: data definition has no type or storage class
     118 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_set_timing);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:118:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:118:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:157:1: warning: data definition has no type or storage class
     157 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_set_setup);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:157:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:157:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:196:1: warning: data definition has no type or storage class
     196 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_set_pulse);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:196:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:196:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:234:1: warning: data definition has no type or storage class
     234 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_set_cycle);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:234:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:234:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c: In function 'atmel_smc_cs_conf_apply':
   drivers/mfd/atmel-smc.c:248:9: error: implicit declaration of function 'regmap_write' [-Wimplicit-function-declaration]
     248 |         regmap_write(regmap, ATMEL_SMC_SETUP(cs), conf->setup);
         |         ^~~~~~~~~~~~
   drivers/mfd/atmel-smc.c: At top level:
   drivers/mfd/atmel-smc.c:253:1: warning: data definition has no type or storage class
     253 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_apply);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:253:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:253:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:275:1: warning: data definition has no type or storage class
     275 | EXPORT_SYMBOL_GPL(atmel_hsmc_cs_conf_apply);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:275:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:275:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c: In function 'atmel_smc_cs_conf_get':
   drivers/mfd/atmel-smc.c:289:9: error: implicit declaration of function 'regmap_read' [-Wimplicit-function-declaration]
     289 |         regmap_read(regmap, ATMEL_SMC_SETUP(cs), &conf->setup);
         |         ^~~~~~~~~~~
   drivers/mfd/atmel-smc.c: At top level:
   drivers/mfd/atmel-smc.c:294:1: warning: data definition has no type or storage class
     294 | EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_get);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:294:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:294:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:316:1: warning: data definition has no type or storage class
     316 | EXPORT_SYMBOL_GPL(atmel_hsmc_cs_conf_get);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:316:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:316:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:326:34: error: array type has incomplete element type 'struct of_device_id'
     326 | static const struct of_device_id atmel_smc_ids[] __maybe_unused = {
         |                                  ^~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c: In function 'atmel_hsmc_get_reg_layout':
   drivers/mfd/atmel-smc.c:347:17: error: implicit declaration of function 'of_match_node' [-Wimplicit-function-declaration]
     347 |         match = of_match_node(atmel_smc_ids, np);
         |                 ^~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:349:29: error: invalid use of undefined type 'const struct of_device_id'
     349 |         return match ? match->data : ERR_PTR(-EINVAL);
         |                             ^~
   drivers/mfd/atmel-smc.c: At top level:
   drivers/mfd/atmel-smc.c:351:1: warning: data definition has no type or storage class
     351 | EXPORT_SYMBOL_GPL(atmel_hsmc_get_reg_layout);
         | ^~~~~~~~~~~~~~~~~
   drivers/mfd/atmel-smc.c:351:1: error: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL' [-Wimplicit-int]
   drivers/mfd/atmel-smc.c:351:1: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
   drivers/mfd/atmel-smc.c:326:34: warning: 'atmel_smc_ids' defined but not used [-Wunused-variable]
     326 | static const struct of_device_id atmel_smc_ids[] __maybe_unused = {
         |                                  ^~~~~~~~~~~~~


vim +24 drivers/mfd/atmel-smc.c

fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  13  
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  14  /**
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  15   * atmel_smc_cs_conf_init - initialize a SMC CS conf
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  16   * @conf: the SMC CS conf to initialize
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  17   *
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  18   * Set all fields to 0 so that one can start defining a new config.
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  19   */
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  20  void atmel_smc_cs_conf_init(struct atmel_smc_cs_conf *conf)
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  21  {
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  22  	memset(conf, 0, sizeof(*conf));
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  23  }
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16 @24  EXPORT_SYMBOL_GPL(atmel_smc_cs_conf_init);
fe9d7cb22ef3a2 Boris Brezillon 2017-03-16  25  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki



More information about the linux-arm-kernel mailing list