linux-next: build warning after merge of the pci-current tree

From: Stephen Rothwell
Date: Mon Nov 05 2012 - 18:30:56 EST


Hi Bjorn,

After merging the pci-current tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

drivers/acpi/pci_bind.c: In function 'acpi_pci_unbind':
drivers/acpi/pci_bind.c:48:2: warning: passing argument 1 of 'acpi_power_resource_unregister_device' from incompatible pointer type [enabled by default]
include/acpi/acpi_bus.h:346:6: note: expected 'struct device *' but argument is of type 'struct pci_dev *'
drivers/acpi/pci_bind.c: In function 'acpi_pci_bind':
drivers/acpi/pci_bind.c:75:2: warning: passing argument 1 of 'acpi_power_resource_register_device' from incompatible pointer type [enabled by default]
include/acpi/acpi_bus.h:345:5: note: expected 'struct device *' but argument is of type 'struct pci_dev *'

Introduced by commit 942dd0958697 ("ACPI/PCI: Notify PCI devices when
their power resource is turned on").
--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx

Attachment: pgp00000.pgp
Description: PGP signature