From: kbuild test robot <lkp@intel.com>
To: "Serge, Semin," <Sergey.Semin@baikalelectronics.ru>
Cc: arm@kernel.org, kbuild-all@lists.01.org,
Arnd Bergmann <arnd@arndb.de>,
linux-arm-kernel@lists.infradead.org
Subject: [soc:baikal/drivers-1 4/5] drivers/bus/bt1-apb.c:330:3: error: implicit declaration of function 'readl'
Date: Wed, 3 Jun 2020 07:21:26 +0800 [thread overview]
Message-ID: <202006030720.Ds2L3QJH%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1995 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git baikal/drivers-1
head: 83ca8b3e8f213f49cc68b5c1fbcf88ebb24671eb
commit: 8f93662d8324940e8925a0e492c587dbcf7c7fee [4/5] bus: Add Baikal-T1 APB-bus driver
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-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
git checkout 8f93662d8324940e8925a0e492c587dbcf7c7fee
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/bus/bt1-apb.c: In function 'inject_error_store':
>> drivers/bus/bt1-apb.c:330:3: error: implicit declaration of function 'readl' [-Werror=implicit-function-declaration]
330 | readl(apb->res);
| ^~~~~
cc1: some warnings being treated as errors
vim +/readl +330 drivers/bus/bt1-apb.c
318
319 static ssize_t inject_error_store(struct device *dev,
320 struct device_attribute *attr,
321 const char *data, size_t count)
322 {
323 struct bt1_apb *apb = dev_get_drvdata(dev);
324
325 /*
326 * Either dummy read from the unmapped address in the APB IO area
327 * or manually set the IRQ status.
328 */
329 if (!strncmp(data, "nodev", 5))
> 330 readl(apb->res);
331 else if (!strncmp(data, "irq", 3))
332 regmap_update_bits(apb->regs, APB_EHB_ISR, APB_EHB_ISR_PENDING,
333 APB_EHB_ISR_PENDING);
334 else
335 return -EINVAL;
336
337 return count;
338 }
339 static DEVICE_ATTR_RW(inject_error);
340
---
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: 62590 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2020-06-02 23:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-02 23:21 kbuild test robot [this message]
2020-06-03 10:29 ` [soc:baikal/drivers-1 4/5] drivers/bus/bt1-apb.c:330:3: error: implicit declaration of function 'readl' Serge Semin
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=202006030720.Ds2L3QJH%lkp@intel.com \
--to=lkp@intel.com \
--cc=Sergey.Semin@baikalelectronics.ru \
--cc=arm@kernel.org \
--cc=arnd@arndb.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).