Re: [PATCH 09/12] misc: flexcard: add device attributes
From: kbuild test robot
Date: Tue Dec 13 2016 - 20:34:03 EST
Hi Holger,
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on v4.9]
[cannot apply to ljones-mfd/for-mfd-next next-20161213]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Holger-Dengler/Eberspaecher-Flexcard-PMC-II-base-support/20161214-082350
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All errors (new ones prefixed by >>):
drivers/misc/flexcard_misc.c: In function 'serialno_show':
>> drivers/misc/flexcard_misc.c:70:10: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
fc_sn = readq(&priv->conf->fc_sn);
^~~~~
cc1: some warnings being treated as errors
vim +/readq +70 drivers/misc/flexcard_misc.c
64 static ssize_t serialno_show(struct device *dev,
65 struct device_attribute *attr, char *buf)
66 {
67 struct flexcard_misc *priv = dev_get_drvdata(dev);
68 u64 fc_sn;
69
> 70 fc_sn = readq(&priv->conf->fc_sn);
71 return sprintf(buf, "%lld\n", fc_sn);
72 }
73 static DEVICE_ATTR_RO(serialno);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip