Skip to contentSkip to conversation

mipsel: compile warning in drivers/bcma/driver_pci_host.c

DISCUSSION Arend van Spriel 2 participants 3 messages Nov 25, 2012 – Dec 3, 2012

lore
Share & tools
lore
#0 lore raw

I got the following warning compiling with gcc 4.7.2 for MIPS (based on bcm47xx_defconfig).

*mipsel*:
CC drivers/bcma/driver_pci_host.o
drivers/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

#1 lore raw
Quoted 12 lines · Arend van Spriel

I got the following warning compiling with gcc 4.7.2 for MIPS (based on bcm47xx_defconfig).

*mipsel*:
CC drivers/bcma/driver_pci_host.o
drivers/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

Hi Arend,

Thanks for the info, this patch should fix this issue:
http://www.spinics.net/lists/linux-wireless/msg99670.html

Hauke

#2 lore raw
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*:
CC drivers/bcma/driver_pci_host.o
drivers/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]

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.html

Hauke

Yes,

I already saw that patch flying by.

Gr. AvS