tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next head: 9b9f1e670d2c61c676039474fd2d98ca0a54ff75 commit: 165aace2ebd0b55c5589f213d55e3ac28b7aa588 [14/33] hwmon: (lm83) Use regmap config: mips-gpr_defconfig (https://download.01.org/0day-ci/archive/20220124/202201241714.m6MHXXnD-lkp@xxxxxxxxx/config) compiler: mipsel-linux-gcc (GCC) 11.2.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 # https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=165aace2ebd0b55c5589f213d55e3ac28b7aa588 git remote add groeck-staging https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git git fetch --no-tags groeck-staging hwmon-next git checkout 165aace2ebd0b55c5589f213d55e3ac28b7aa588 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): >> drivers/hwmon/lm83.c:159:21: error: variable 'lm83_regmap_config' has initializer but incomplete type 159 | static const struct regmap_config lm83_regmap_config = { | ^~~~~~~~~~~~~ >> drivers/hwmon/lm83.c:160:10: error: 'const struct regmap_config' has no member named 'reg_bits' 160 | .reg_bits = 8, | ^~~~~~~~ drivers/hwmon/lm83.c:160:21: warning: excess elements in struct initializer 160 | .reg_bits = 8, | ^ drivers/hwmon/lm83.c:160:21: note: (near initialization for 'lm83_regmap_config') >> drivers/hwmon/lm83.c:161:10: error: 'const struct regmap_config' has no member named 'val_bits' 161 | .val_bits = 8, | ^~~~~~~~ drivers/hwmon/lm83.c:161:21: warning: excess elements in struct initializer 161 | .val_bits = 8, | ^ drivers/hwmon/lm83.c:161:21: note: (near initialization for 'lm83_regmap_config') >> drivers/hwmon/lm83.c:162:10: error: 'const struct regmap_config' has no member named 'cache_type' 162 | .cache_type = REGCACHE_RBTREE, | ^~~~~~~~~~ drivers/hwmon/lm83.c:162:23: warning: excess elements in struct initializer 162 | .cache_type = REGCACHE_RBTREE, | ^~~~~~~~~~~~~~~ drivers/hwmon/lm83.c:162:23: note: (near initialization for 'lm83_regmap_config') >> drivers/hwmon/lm83.c:163:10: error: 'const struct regmap_config' has no member named 'volatile_reg' 163 | .volatile_reg = lm83_regmap_is_volatile, | ^~~~~~~~~~~~ drivers/hwmon/lm83.c:163:25: warning: excess elements in struct initializer 163 | .volatile_reg = lm83_regmap_is_volatile, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/hwmon/lm83.c:163:25: note: (near initialization for 'lm83_regmap_config') >> drivers/hwmon/lm83.c:164:10: error: 'const struct regmap_config' has no member named 'reg_read' 164 | .reg_read = lm83_regmap_reg_read, | ^~~~~~~~ drivers/hwmon/lm83.c:164:21: warning: excess elements in struct initializer 164 | .reg_read = lm83_regmap_reg_read, | ^~~~~~~~~~~~~~~~~~~~ drivers/hwmon/lm83.c:164:21: note: (near initialization for 'lm83_regmap_config') >> drivers/hwmon/lm83.c:165:10: error: 'const struct regmap_config' has no member named 'reg_write' 165 | .reg_write = lm83_regmap_reg_write, | ^~~~~~~~~ drivers/hwmon/lm83.c:165:22: warning: excess elements in struct initializer 165 | .reg_write = lm83_regmap_reg_write, | ^~~~~~~~~~~~~~~~~~~~~ drivers/hwmon/lm83.c:165:22: note: (near initialization for 'lm83_regmap_config') drivers/hwmon/lm83.c: In function 'lm83_probe': >> drivers/hwmon/lm83.c:383:24: error: implicit declaration of function 'devm_regmap_init' [-Werror=implicit-function-declaration] 383 | data->regmap = devm_regmap_init(dev, NULL, client, &lm83_regmap_config); | ^~~~~~~~~~~~~~~~ drivers/hwmon/lm83.c:383:22: warning: assignment to 'struct regmap *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 383 | data->regmap = devm_regmap_init(dev, NULL, client, &lm83_regmap_config); | ^ drivers/hwmon/lm83.c: At top level: >> drivers/hwmon/lm83.c:159:35: error: storage size of 'lm83_regmap_config' isn't known 159 | static const struct regmap_config lm83_regmap_config = { | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/lm83_regmap_config +159 drivers/hwmon/lm83.c 158 > 159 static const struct regmap_config lm83_regmap_config = { > 160 .reg_bits = 8, > 161 .val_bits = 8, > 162 .cache_type = REGCACHE_RBTREE, > 163 .volatile_reg = lm83_regmap_is_volatile, > 164 .reg_read = lm83_regmap_reg_read, > 165 .reg_write = lm83_regmap_reg_write, 166 }; 167 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx