PCI: disable pci_find_device warnings when deprecated pci functions are enabled
authorAndi Kleen <andi@firstfloor.org>
Fri, 24 Jul 2009 09:41:15 +0000 (11:41 +0200)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 9 Sep 2009 20:29:25 +0000 (13:29 -0700)
commite8b553bf4b19c6a6d72f5eac3a17c43ac8e68390
tree38ddf9ca2d7e5ff47c6d6520d2f63258c1341cd2
parent6b5096e4d4496e185cd1ada5d1b8e1d941c805ed
PCI: disable pci_find_device warnings when deprecated pci functions are enabled

Shut off the long standing

linux/drivers/pci/search.c:144: warning: 'pci_find_device' is deprecated (declared at linux/drivers/pci/search.c:136)
linux/drivers/pci/search.c:144: warning: 'pci_find_device' is deprecated (declared at linux/drivers/pci/search.c:136)

warnings that appear on every build when CONFIG_PCI_LEGACY is enabled.

gcc warns for the use in EXPORT_SYMBOL

I moved these to a separate file and disabled the warning in the Makefile for that file.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/Makefile
drivers/pci/legacy.c [new file with mode: 0644]
drivers/pci/search.c