Skip to content

Commit 253c892

Browse files
oohalmpe
authored andcommitted
powerpc/eeh: Fix eeh eeh_debugfs_break_device() with SRIOV devices
s/CONFIG_IOV/CONFIG_PCI_IOV/ Whoops. Fixes: bd6461c ("powerpc/eeh: Add a eeh_dev_break debugfs interface") Signed-off-by: Oliver O'Halloran <[email protected]> [mpe: Fixup the #endif comment as well] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent faa6d21 commit 253c892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/powerpc/kernel/eeh.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev)
19601960
pci_err(pdev, "Going to break: %pR\n", bar);
19611961

19621962
if (pdev->is_virtfn) {
1963-
#ifndef CONFIG_IOV
1963+
#ifndef CONFIG_PCI_IOV
19641964
return -ENXIO;
19651965
#else
19661966
/*
@@ -1980,7 +1980,7 @@ static int eeh_debugfs_break_device(struct pci_dev *pdev)
19801980
pos = pci_find_ext_capability(pdev, PCI_EXT_CAP_ID_SRIOV);
19811981
pos += PCI_SRIOV_CTRL;
19821982
bit = PCI_SRIOV_CTRL_MSE;
1983-
#endif /* !CONFIG_IOV */
1983+
#endif /* !CONFIG_PCI_IOV */
19841984
} else {
19851985
bit = PCI_COMMAND_MEMORY;
19861986
pos = PCI_COMMAND;

0 commit comments

Comments
 (0)