mipsel: compile warning in drivers/bcma/driver_pci_host.c
I got the following warning compiling with gcc 4.7.2 for MIPS (based on bcm47xx_defconfig).
*mipsel*:
CC drivers/bcma/driver_pci_host.odrivers/bcma/driver_pci_host.c: In function 'bcma_core_pci_fixup_addresses':drivers/bcma/driver_pci_host.c:555:23: error: ignoring return value of 'pci_assign_resource', declared with attribute warn_unused_result [-Werror=unused-result]
Gr. AvS
Quoted 12 lines · Arend van Spriel
I got the following warning compiling with gcc 4.7.2 for MIPS (based on
bcm47xx_defconfig).*mipsel*:
CCdrivers/bcma/driver_pci_host.odrivers/bcma/driver_pci_host.c: In function 'bcma_core_pci_fixup_addresses':drivers/bcma/driver_pci_host.c:555:23: error: ignoring return value of 'pci_assign_resource', declared with attributewarn_unused_result[-Werror=unused-result]Gr. AvS
Hi Arend,
Thanks for the info, this patch should fix this issue:
http://www.spinics.net/lists/linux-wireless/msg99670.html
Hauke
Quoted 11 lines · Hauke Mehrtens
Quoted 10 lines · Arend van Spriel
I got the following warning compiling with gcc 4.7.2 for MIPS (based on
bcm47xx_defconfig).*mipsel*:
CCdrivers/bcma/driver_pci_host.odrivers/bcma/driver_pci_host.c: In function 'bcma_core_pci_fixup_addresses':drivers/bcma/driver_pci_host.c:555:23: error: ignoring return value of 'pci_assign_resource', declared with attributewarn_unused_result[-Werror=unused-result]
Quoted 9 lines
Quoted 2 lines
Gr. AvS
Hi Arend,
Thanks for the info, this patch should fix this issue:
http://www.spinics.net/lists/linux-wireless/msg99670.htmlHauke
Yes,
I already saw that patch flying by.
Gr. AvS