From: kernel test robot <lkp@intel.com>
To: "Enrico Weigelt, metux IT consult" <info@metux.net>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-hwmon@vger.kernel.org, Guenter Roeck <linux@roeck-us.net>
Subject: [hwmon:watchdog-next 18/22] drivers/watchdog/iTCO_wdt.c:280:19: error: no member named 'dev' in 'struct watchdog_device'
Date: Mon, 14 Dec 2020 05:22:20 +0800 [thread overview]
Message-ID: <202012140514.W0eUjCav-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3068 bytes --]
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@intel.com>
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@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34130 bytes --]
reply other threads:[~2020-12-13 21:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202012140514.W0eUjCav-lkp@intel.com \
--to=lkp@intel.com \
--cc=clang-built-linux@googlegroups.com \
--cc=info@metux.net \
--cc=kbuild-all@lists.01.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox