Skip to content

Commit d39ff8e

Browse files
paliLorenzo Pieralisi
authored andcommitted
PCI: pci-bridge-emul: Export API functions
It allows kernel modules which are not compiled into kernel image to use pci-bridge-emul API functions. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Marek Behún <[email protected]>
1 parent 7862a61 commit d39ff8e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/pci/pci-bridge-emul.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ int pci_bridge_emul_init(struct pci_bridge_emul *bridge,
294294

295295
return 0;
296296
}
297+
EXPORT_SYMBOL_GPL(pci_bridge_emul_init);
297298

298299
/*
299300
* Cleanup a pci_bridge_emul structure that was previously initialized
@@ -305,6 +306,7 @@ void pci_bridge_emul_cleanup(struct pci_bridge_emul *bridge)
305306
kfree(bridge->pcie_cap_regs_behavior);
306307
kfree(bridge->pci_regs_behavior);
307308
}
309+
EXPORT_SYMBOL_GPL(pci_bridge_emul_cleanup);
308310

309311
/*
310312
* Should be called by the PCI controller driver when reading the PCI
@@ -366,6 +368,7 @@ int pci_bridge_emul_conf_read(struct pci_bridge_emul *bridge, int where,
366368

367369
return PCIBIOS_SUCCESSFUL;
368370
}
371+
EXPORT_SYMBOL_GPL(pci_bridge_emul_conf_read);
369372

370373
/*
371374
* Should be called by the PCI controller driver when writing the PCI
@@ -430,3 +433,4 @@ int pci_bridge_emul_conf_write(struct pci_bridge_emul *bridge, int where,
430433

431434
return PCIBIOS_SUCCESSFUL;
432435
}
436+
EXPORT_SYMBOL_GPL(pci_bridge_emul_conf_write);

0 commit comments

Comments
 (0)