* [pci:pci/host-cleanups-wip 22/95] drivers/pci/host/pcie-altera.c:344:29: error: passing argument 1 of 'altera_raw_cfg_read' from incompatible pointer type
@ 2016-10-05 8:55 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-10-05 8:55 UTC (permalink / raw)
To: Bjorn Helgaas; +Cc: kbuild-all, linux-pci
[-- Attachment #1: Type: text/plain, Size: 18422 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-cleanups-wip
head: ee9b4e4188d1ca0e60edc96ed54acebe8ec19dc9
commit: ad09574db5ed884c57de00374ddb77ba09a6a859 [22/95] PCI: altera: Rename _altera_pcie_cfg_read() to altera_raw_cfg_read()
config: arm-allmodconfig (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 ad09574db5ed884c57de00374ddb77ba09a6a859
# save the attached .config to linux build tree
make.cross ARCH=arm
All errors (new ones prefixed by >>):
drivers/pci/host/pcie-altera.c:101:19: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static inline u32 cra_readl(struct altera_pcie *altera, const u32 reg)
^~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:193:37: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static void tlp_write_packet(struct altera_pcie *altera, u32 *headers,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'tlp_write_packet':
drivers/pci/host/pcie-altera.c:201:15: error: passing argument 1 of 'tlp_write_tx' from incompatible pointer type [-Werror=incompatible-pointer-types]
tlp_write_tx(altera, &tlp_rp_regdata);
^~~~~~
drivers/pci/host/pcie-altera.c:130:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static void tlp_write_tx(struct altera_pcie *altera,
^~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:207:16: error: passing argument 1 of 'tlp_write_tx' from incompatible pointer type [-Werror=incompatible-pointer-types]
tlp_write_tx(altera, &tlp_rp_regdata);
^~~~~~
drivers/pci/host/pcie-altera.c:130:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static void tlp_write_tx(struct altera_pcie *altera,
^~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:217:15: error: passing argument 1 of 'tlp_write_tx' from incompatible pointer type [-Werror=incompatible-pointer-types]
tlp_write_tx(altera, &tlp_rp_regdata);
^~~~~~
drivers/pci/host/pcie-altera.c:130:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static void tlp_write_tx(struct altera_pcie *altera,
^~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:220:38: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static int tlp_cfg_dword_read(struct altera_pcie *altera, u8 bus, u32 devfn,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'tlp_cfg_dword_read':
drivers/pci/host/pcie-altera.c:61:22: error: dereferencing pointer to incomplete type 'struct altera_pcie'
((((bus == altera->root_bus_nr) ? TLP_FMTTYPE_CFGRD0
^
drivers/pci/host/pcie-altera.c:225:15: note: in expansion of macro 'TLP_CFG_DW0'
headers[0] = TLP_CFG_DW0(altera, bus);
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c:225:39: error: expected ':' before ';' token
headers[0] = TLP_CFG_DW0(altera, bus);
^
drivers/pci/host/pcie-altera.c:232:1: error: expected ')' before '}' token
}
^
drivers/pci/host/pcie-altera.c:232:1: error: expected ')' before '}' token
drivers/pci/host/pcie-altera.c:232:1: error: expected ';' before '}' token
drivers/pci/host/pcie-altera.c:232:1: warning: no return statement in function returning non-void [-Wreturn-type]
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:234:39: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static int tlp_cfg_dword_write(struct altera_pcie *altera, u8 bus, u32 devfn,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'tlp_cfg_dword_write':
drivers/pci/host/pcie-altera.c:61:22: error: dereferencing pointer to incomplete type 'struct altera_pcie'
((((bus == altera->root_bus_nr) ? TLP_FMTTYPE_CFGRD0
^
drivers/pci/host/pcie-altera.c:240:15: note: in expansion of macro 'TLP_CFG_DW0'
headers[0] = TLP_CFG_DW0(altera, bus);
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c:240:39: error: expected ':' before ';' token
headers[0] = TLP_CFG_DW0(altera, bus);
^
drivers/pci/host/pcie-altera.c:262:1: error: expected ')' before '}' token
}
^
drivers/pci/host/pcie-altera.c:262:1: error: expected ')' before '}' token
drivers/pci/host/pcie-altera.c:262:1: error: expected ';' before '}' token
drivers/pci/host/pcie-altera.c:238:6: warning: unused variable 'ret' [-Wunused-variable]
int ret;
^~~
drivers/pci/host/pcie-altera.c:262:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:264:39: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static int altera_raw_cfg_read(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_raw_cfg_read':
drivers/pci/host/pcie-altera.c:284:27: error: passing argument 1 of 'tlp_cfg_dword_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = tlp_cfg_dword_read(altera, busno, devfn,
^~~~~~
drivers/pci/host/pcie-altera.c:220:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int tlp_cfg_dword_read(struct altera_pcie *altera, u8 bus, u32 devfn,
^~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:304:40: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static int altera_raw_cfg_write(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_raw_cfg_write':
drivers/pci/host/pcie-altera.c:327:29: error: passing argument 1 of 'tlp_cfg_dword_write' from incompatible pointer type [-Werror=incompatible-pointer-types]
return tlp_cfg_dword_write(altera, busno, devfn, (where & ~DWORD_MASK),
^~~~~~
drivers/pci/host/pcie-altera.c:234:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int tlp_cfg_dword_write(struct altera_pcie *altera, u8 bus, u32 devfn,
^~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_pcie_cfg_read':
drivers/pci/host/pcie-altera.c:339:32: error: passing argument 1 of 'altera_pcie_valid_config' from incompatible pointer type [-Werror=incompatible-pointer-types]
if (!altera_pcie_valid_config(altera, bus, PCI_SLOT(devfn))) {
^~~~~~
drivers/pci/host/pcie-altera.c:138:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static bool altera_pcie_valid_config(struct altera_pcie *altera,
^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/host/pcie-altera.c:344:29: error: passing argument 1 of 'altera_raw_cfg_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
return altera_raw_cfg_read(altera, bus->number, devfn, where, size,
^~~~~~
drivers/pci/host/pcie-altera.c:264:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_raw_cfg_read(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_pcie_cfg_write':
drivers/pci/host/pcie-altera.c:356:32: error: passing argument 1 of 'altera_pcie_valid_config' from incompatible pointer type [-Werror=incompatible-pointer-types]
if (!altera_pcie_valid_config(altera, bus, PCI_SLOT(devfn)))
^~~~~~
drivers/pci/host/pcie-altera.c:138:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static bool altera_pcie_valid_config(struct altera_pcie *altera,
^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/pci/host/pcie-altera.c:359:30: error: passing argument 1 of 'altera_raw_cfg_write' from incompatible pointer type [-Werror=incompatible-pointer-types]
return altera_raw_cfg_write(altera, bus->number, devfn, where, size,
^~~~~~
drivers/pci/host/pcie-altera.c:304:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_raw_cfg_write(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:368:40: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static int altera_read_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_read_cap_word':
drivers/pci/host/pcie-altera.c:374:28: error: passing argument 1 of 'altera_raw_cfg_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
ret = altera_raw_cfg_read(altera, busno, devfn,
^~~~~~
drivers/pci/host/pcie-altera.c:264:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_raw_cfg_read(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:381:41: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static int altera_write_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_write_cap_word':
drivers/pci/host/pcie-altera.c:384:30: error: passing argument 1 of 'altera_raw_cfg_write' from incompatible pointer type [-Werror=incompatible-pointer-types]
return altera_raw_cfg_write(altera, busno, devfn,
^~~~~~
drivers/pci/host/pcie-altera.c:304:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_raw_cfg_write(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:389:45: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static void altera_wait_link_retrain(struct altera_pcie *altera)
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_wait_link_retrain':
drivers/pci/host/pcie-altera.c:397:38: error: dereferencing pointer to incomplete type 'struct altera_pcie'
altera_read_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~
drivers/pci/host/pcie-altera.c:397:24: error: passing argument 1 of 'altera_read_cap_word' from incompatible pointer type [-Werror=incompatible-pointer-types]
altera_read_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~~~~~
drivers/pci/host/pcie-altera.c:368:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_read_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:412:30: error: passing argument 1 of 'altera_pcie_link_is_up' from incompatible pointer type [-Werror=incompatible-pointer-types]
if (altera_pcie_link_is_up(altera))
^~~~~~
drivers/pci/host/pcie-altera.c:106:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static bool altera_pcie_link_is_up(struct altera_pcie *altera)
^~~~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: At top level:
drivers/pci/host/pcie-altera.c:423:40: warning: 'struct altera_pcie' declared inside parameter list will not be visible outside of this definition or declaration
static void altera_pcie_retrain(struct altera_pcie *altera)
^~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_pcie_retrain':
drivers/pci/host/pcie-altera.c:427:30: error: passing argument 1 of 'altera_pcie_link_is_up' from incompatible pointer type [-Werror=incompatible-pointer-types]
if (!altera_pcie_link_is_up(altera))
^~~~~~
drivers/pci/host/pcie-altera.c:106:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static bool altera_pcie_link_is_up(struct altera_pcie *altera)
^~~~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:434:37: error: dereferencing pointer to incomplete type 'struct altera_pcie'
altera_read_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~
drivers/pci/host/pcie-altera.c:434:23: error: passing argument 1 of 'altera_read_cap_word' from incompatible pointer type [-Werror=incompatible-pointer-types]
altera_read_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~~~~~
drivers/pci/host/pcie-altera.c:368:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_read_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:439:23: error: passing argument 1 of 'altera_read_cap_word' from incompatible pointer type [-Werror=incompatible-pointer-types]
altera_read_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~~~~~
drivers/pci/host/pcie-altera.c:368:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_read_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:442:24: error: passing argument 1 of 'altera_read_cap_word' from incompatible pointer type [-Werror=incompatible-pointer-types]
altera_read_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~~~~~
drivers/pci/host/pcie-altera.c:368:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_read_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:445:25: error: passing argument 1 of 'altera_write_cap_word' from incompatible pointer type [-Werror=incompatible-pointer-types]
altera_write_cap_word(altera, altera->root_bus_nr, RP_DEVFN,
^~~~~~
drivers/pci/host/pcie-altera.c:381:12: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static int altera_write_cap_word(struct altera_pcie *altera, u8 busno,
^~~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c:448:28: error: passing argument 1 of 'altera_wait_link_retrain' from incompatible pointer type [-Werror=incompatible-pointer-types]
altera_wait_link_retrain(altera);
^~~~~~
drivers/pci/host/pcie-altera.c:389:13: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static void altera_wait_link_retrain(struct altera_pcie *altera)
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/pci/host/pcie-altera.c: In function 'altera_pcie_isr':
drivers/pci/host/pcie-altera.c:476:29: error: passing argument 1 of 'cra_readl' from incompatible pointer type [-Werror=incompatible-pointer-types]
while ((status = cra_readl(altera, P2A_INT_STATUS)
^~~~~~
drivers/pci/host/pcie-altera.c:101:19: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *'
static inline u32 cra_readl(struct altera_pcie *altera, const u32 reg)
^~~~~~~~~
drivers/pci/host/pcie-altera.c:480:15: error: passing argument 1 of 'cra_writel' from incompatible pointer type [-Werror=incompatible-pointer-types]
cra_writel(altera, 1 << bit, P2A_INT_STATUS);
vim +/altera_raw_cfg_read +344 drivers/pci/host/pcie-altera.c
333 {
334 struct altera_pcie *altera = bus->sysdata;
335
336 if (altera_pcie_hide_rc_bar(bus, devfn, where))
337 return PCIBIOS_BAD_REGISTER_NUMBER;
338
> 339 if (!altera_pcie_valid_config(altera, bus, PCI_SLOT(devfn))) {
340 *value = 0xffffffff;
341 return PCIBIOS_DEVICE_NOT_FOUND;
342 }
343
> 344 return altera_raw_cfg_read(altera, bus->number, devfn, where, size,
345 value);
346 }
347
348 static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn,
349 int where, int size, u32 value)
350 {
351 struct altera_pcie *altera = bus->sysdata;
352
353 if (altera_pcie_hide_rc_bar(bus, devfn, where))
354 return PCIBIOS_BAD_REGISTER_NUMBER;
355
> 356 if (!altera_pcie_valid_config(altera, bus, PCI_SLOT(devfn)))
357 return PCIBIOS_DEVICE_NOT_FOUND;
358
> 359 return altera_raw_cfg_write(altera, bus->number, devfn, where, size,
360 value);
361 }
362
---
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: 58509 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-10-05 8:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 8:55 [pci:pci/host-cleanups-wip 22/95] drivers/pci/host/pcie-altera.c:344:29: error: passing argument 1 of 'altera_raw_cfg_read' from incompatible pointer type kbuild test robot
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).