backports: ifdef some pci functions
authorEliad Peller <eliad@wizery.com>
Mon, 3 Mar 2014 11:34:21 +0000 (13:34 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Wed, 9 Apr 2014 01:16:20 +0000 (18:16 -0700)
commit611688352b51fa4f7fe246cce54b8c13c10de4de
treecc0d98f412e1f5dd5deb513b305af87194382db5
parent93bd9ce7ba3984a1f7ca2ce95abd5daa8efcc1f8
backports: ifdef some pci functions

struct msix_entry entry is defined only when CONFIG_PCI
is defined, resulting in warnings like:

backport-include/linux/pci.h:256:16: warning: 'struct msix_entry' declared inside parameter list [enabled by default]
backport-include/linux/pci.h:256:16: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

wrap (also the mock function) with appropriate ifdef CONFIG_PCI.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/pci.h