* [pci:pci/host-cleanups-wip 136/152] drivers/pci/host/pci-tegra.c:342:29: error: 'offset' undeclared
@ 2016-10-05 23:07 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-10-05 23:07 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: kbuild-all, linux-pci
[-- Attachment #1: Type: text/plain, Size: 3743 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-cleanups-wip
head: d043f96bad5fa3ffb3896411f2ba2bc5180a7c83
commit: 60b45e73730aea49cc78d088d968098233a26394 [136/152] PCI: tegra: Swap order of pads_writel() reg/val arguments
config: arm-multi_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 60b45e73730aea49cc78d088d968098233a26394
# save the attached .config to linux build tree
make.cross ARCH=arm
All error/warnings (new ones prefixed by >>):
In file included from include/linux/io.h:25:0,
from include/linux/irq.h:24,
from drivers/pci/host/pci-tegra.c:34:
drivers/pci/host/pci-tegra.c: In function 'pads_writel':
>> drivers/pci/host/pci-tegra.c:342:29: error: 'offset' undeclared (first use in this function)
writel(value, pcie->pads + offset);
^
arch/arm/include/asm/io.h:297:71: note: in definition of macro 'writel_relaxed'
#define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c)
^
>> drivers/pci/host/pci-tegra.c:342:2: note: in expansion of macro 'writel'
writel(value, pcie->pads + offset);
^~~~~~
drivers/pci/host/pci-tegra.c:342:29: note: each undeclared identifier is reported only once for each function it appears in
writel(value, pcie->pads + offset);
^
arch/arm/include/asm/io.h:297:71: note: in definition of macro 'writel_relaxed'
#define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c)
^
>> drivers/pci/host/pci-tegra.c:342:2: note: in expansion of macro 'writel'
writel(value, pcie->pads + offset);
^~~~~~
drivers/pci/host/pci-tegra.c: In function 'tegra_pcie_phy_disable':
drivers/pci/host/pci-tegra.c:863:2: error: unknown type name 'XXXX'
XXXX
^~~~
drivers/pci/host/pci-tegra.c:866:2: error: conflicting types for 'value'
value = pads_readl(pcie, soc->pads_pll_ctl);
^~~~~
drivers/pci/host/pci-tegra.c:850:6: note: previous declaration of 'value' was here
u32 value;
^~~~~
drivers/pci/host/pci-tegra.c:863:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
XXXX
^~~~
vim +/offset +342 drivers/pci/host/pci-tegra.c
d1523b52b Thierry Reding 2013-08-09 336 {
d1523b52b Thierry Reding 2013-08-09 337 return readl(pcie->afi + offset);
d1523b52b Thierry Reding 2013-08-09 338 }
d1523b52b Thierry Reding 2013-08-09 339
60b45e737 Bjorn Helgaas 2016-10-05 340 static void pads_writel(struct tegra_pcie *pcie, unsigned long ofset, u32 value)
d1523b52b Thierry Reding 2013-08-09 341 {
d1523b52b Thierry Reding 2013-08-09 @342 writel(value, pcie->pads + offset);
d1523b52b Thierry Reding 2013-08-09 343 }
d1523b52b Thierry Reding 2013-08-09 344
60b45e737 Bjorn Helgaas 2016-10-05 345 static u32 pads_readl(struct tegra_pcie *pcie, unsigned long offset)
:::::: The code at line 342 was first introduced by commit
:::::: d1523b52bff35ea709141abac87dd701559ef290 PCI: tegra: Move PCIe driver to drivers/pci/host
:::::: TO: Thierry Reding <thierry.reding@avionic-design.de>
:::::: CC: Stephen Warren <swarren@nvidia.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38537 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-05 23:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-05 23:07 [pci:pci/host-cleanups-wip 136/152] drivers/pci/host/pci-tegra.c:342:29: error: 'offset' undeclared kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.