tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git watchdog-next head: 4cade386df4881eaec83d4b1d1631861ee942d11 commit: 36657904fe28786802ec2c9b016fcefb8631bbb9 [18/22] watchdog: iTCO_wdt: use dev_*() instead of pr_*() for logging config: x86_64-randconfig-a012-20201213 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project d38205144febf4dc42c9270c6aa3d978f1ef65e1) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=36657904fe28786802ec2c9b016fcefb8631bbb9 git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git git fetch --no-tags hwmon watchdog-next git checkout 36657904fe28786802ec2c9b016fcefb8631bbb9 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 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/watchdog/iTCO_wdt.c:280:19: error: no member named 'dev' in 'struct watchdog_device' dev_err(wd_dev->dev, "failed to reset NO_REBOOT flag, reboot disabled by hardware/BIOS\n"); ~~~~~~ ^ include/linux/dev_printk.h:112:11: note: expanded from macro 'dev_err' _dev_err(dev, dev_fmt(fmt), ##__VA_ARGS__) ^~~ 1 error generated. vim +280 drivers/watchdog/iTCO_wdt.c 267 268 static int iTCO_wdt_start(struct watchdog_device *wd_dev) 269 { 270 struct iTCO_wdt_private *p = watchdog_get_drvdata(wd_dev); 271 unsigned int val; 272 273 spin_lock(&p->io_lock); 274 275 iTCO_vendor_pre_start(p->smi_res, wd_dev->timeout); 276 277 /* disable chipset's NO_REBOOT bit */ 278 if (p->update_no_reboot_bit(p->no_reboot_priv, false)) { 279 spin_unlock(&p->io_lock); > 280 dev_err(wd_dev->dev, "failed to reset NO_REBOOT flag, reboot disabled by hardware/BIOS\n"); 281 return -EIO; 282 } 283 284 /* Force the timer to its reload value by writing to the TCO_RLD 285 register */ 286 if (p->iTCO_version >= 2) 287 outw(0x01, TCO_RLD(p)); 288 else if (p->iTCO_version == 1) 289 outb(0x01, TCO_RLD(p)); 290 291 /* Bit 11: TCO Timer Halt -> 0 = The TCO timer is enabled to count */ 292 val = inw(TCO1_CNT(p)); 293 val &= 0xf7ff; 294 outw(val, TCO1_CNT(p)); 295 val = inw(TCO1_CNT(p)); 296 spin_unlock(&p->io_lock); 297 298 if (val & 0x0800) 299 return -1; 300 return 0; 301 } 302 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip