tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next head: d444dcb933452b2de609f827a5dd66001a3a67dd commit: d444dcb933452b2de609f827a5dd66001a3a67dd [16/16] hwmon: (it87) Switch to using the new API kobj_to_dev() config: nds32-randconfig-r024-20210108 (attached as .config) compiler: nds32le-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 # https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=d444dcb933452b2de609f827a5dd66001a3a67dd git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git git fetch --no-tags hwmon hwmon-next git checkout d444dcb933452b2de609f827a5dd66001a3a67dd # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All error/warnings (new ones prefixed by >>): drivers/hwmon/it87.c: In function 'it87_auto_pwm_is_visible': >> drivers/hwmon/it87.c:2293:23: error: implicit declaration of function 'konj_to_dev'; did you mean 'kobj_to_dev'? [-Werror=implicit-function-declaration] 2293 | struct device *dev = konj_to_dev(kobj); | ^~~~~~~~~~~ | kobj_to_dev >> drivers/hwmon/it87.c:2293:23: warning: initialization of 'struct device *' from 'int' makes pointer from integer without a cast [-Wint-conversion] cc1: some warnings being treated as errors vim +2293 drivers/hwmon/it87.c 2289 2290 static umode_t it87_auto_pwm_is_visible(struct kobject *kobj, 2291 struct attribute *attr, int index) 2292 { > 2293 struct device *dev = konj_to_dev(kobj); 2294 struct it87_data *data = dev_get_drvdata(dev); 2295 int i = index / 11; /* pwm index */ 2296 int a = index % 11; /* attribute index */ 2297 2298 if (index >= 33) { /* pwm 4..6 */ 2299 i = (index - 33) / 6 + 3; 2300 a = (index - 33) % 6 + 4; 2301 } 2302 2303 if (!(data->has_pwm & BIT(i))) 2304 return 0; 2305 2306 if (has_newer_autopwm(data)) { 2307 if (a < 4) /* no auto point pwm */ 2308 return 0; 2309 if (a == 8) /* no auto_point4 */ 2310 return 0; 2311 } 2312 if (has_old_autopwm(data)) { 2313 if (a >= 9) /* no pwm_auto_start, pwm_auto_slope */ 2314 return 0; 2315 } 2316 2317 return attr->mode; 2318 } 2319 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip