powerpc/pcidn: Warn when sriov pci_dn management is used incorrectly
authorOliver O'Halloran <oohall@gmail.com>
Wed, 21 Aug 2019 06:26:55 +0000 (16:26 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:19 +0000 (21:31 +1100)
commita4af49f34f76f1e6125b22b50d18580426d935e0
treef6cd29095f06bbe30da02b49132ff0dbf444e11a
parent8cd6aacc640116213f9373808a627ecd3728accc
powerpc/pcidn: Warn when sriov pci_dn management is used incorrectly

These functions can only be used on a SR-IOV capable physical function and
they're only called in pcibios_sriov_enable / disable. Make them emit a
warning in the future if they're used incorrectly and remove the dead
code that checks if the device is a VF.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Sam Bobroff <sbobroff@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190821062655.19735-3-oohall@gmail.com
arch/powerpc/kernel/pci_dn.c