tree: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/host-cleanups-wip head: ee9b4e4188d1ca0e60edc96ed54acebe8ec19dc9 commit: 599c020242a08897c11d3fd2004352ccc7d8a79a [26/95] PCI: altera: Rename altera_pcie_valid_config() to altera_pcie_valid_device() 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 599c020242a08897c11d3fd2004352ccc7d8a79a # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): drivers/pci/host/pcie-altera.c:95:19: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *' static inline u32 altera_cra_readl(struct altera_pcie *altera, const u32 reg) ^~~~~~~~~~~~~~~~ drivers/pci/host/pcie-altera.c:170:28: error: passing argument 1 of 'altera_cra_readl' from incompatible pointer type [-Werror=incompatible-pointer-types] reg1 = altera_cra_readl(altera, RP_RXCPL_REG1); ^~~~~~ drivers/pci/host/pcie-altera.c:95:19: note: expected 'struct altera_pcie *' but argument is of type 'struct altera_pcie *' static inline u32 altera_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_device' from incompatible pointer type [-Werror=incompatible-pointer-types] if (!altera_pcie_valid_device(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_device(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_device' from incompatible pointer type [-Werror=incompatible-pointer-types] if (!altera_pcie_valid_device(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_device(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, vim +/altera_pcie_valid_device +339 drivers/pci/host/pcie-altera.c 321 default: 322 data32 = value; 323 byte_en = 0xf; 324 break; 325 } 326 > 327 return tlp_cfg_dword_write(altera, busno, devfn, (where & ~DWORD_MASK), 328 byte_en, data32); 329 } 330 331 static int altera_pcie_cfg_read(struct pci_bus *bus, unsigned int devfn, 332 int where, int size, u32 *value) 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_device(altera, bus, PCI_SLOT(devfn))) { 340 *value = 0xffffffff; 341 return PCIBIOS_DEVICE_NOT_FOUND; 342 } --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip