PCI: Fix cavium quirk compile failure with PCI_ATS off
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 5 Sep 2016 09:12:57 +0000 (17:12 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Sep 2016 13:10:18 +0000 (21:10 +0800)
commit0bec90571cb95afee80beb98c12cd82bd9136ac6
treed2fc933d2b32cb1f3cadeb9318121a8af0aeaa20
parentda28caaaf878b224c3ca89c1eb7373536cc5d556
PCI: Fix cavium quirk compile failure with PCI_ATS off

The newly added quirk_cavium_sriov_rnm_link doesn't compile if
PCI_ATS is off.  This patch adds a check for PCI_ATS.

Fixes: 21b5b8eebbae ("PCI: quirk fixup for cavium invalid sriov...")
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/pci/quirks.c