linux/arch/powerpc/platforms
Ian Munsie c2ca9f6b4c powerpc/powernv: Fix pci-cxl.c build when CONFIG_MODULES=n
pnv_cxl_enable_phb_kernel_api() grabs a reference to the cxl module to
prevent it from being unloaded after the PHB has been switched to CX4
mode. This breaks the build when CONFIG_MODULES=n as module_mutex
doesn't exist.

However, if we don't have modules, we don't need to protect against the
case of the cxl module being unloaded. As such, split the relevant code
out into a function surrounded with #if IS_MODULE(CXL) so we don't try
to compile it if cxl isn't being compiled as a module.

Fixes: 5918dbc9b4ec ("powerpc/powernv: Add support for the cxl kernel api on the real phb")
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-07-19 20:12:28 +10:00
..
8xx powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
40x powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
44x powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
52xx powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
82xx powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
83xx powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
85xx powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
86xx powerpc/86xx: Consolidate common platform code 2016-03-11 19:14:12 -06:00
512x powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
amigaone powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
cell powerpc/cell: Don't use flat device-tree after boot 2016-07-13 18:15:36 +10:00
chrp powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
embedded6xx powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
maple powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
pasemi powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
powermac powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
powernv powerpc/powernv: Fix pci-cxl.c build when CONFIG_MODULES=n 2016-07-19 20:12:28 +10:00
ps3 powerpc: Make ppc_md.{halt, restart} __noreturn 2016-07-14 21:12:06 +10:00
pseries powerpc/pseries/pci: Remove obsolete SW invalidate 2016-07-17 16:42:45 +10:00
fsl_uli1575.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00
Kconfig QE: Move QE from arch/powerpc to drivers/soc 2015-12-22 17:12:56 -06:00
Kconfig.cputype powerpc/mm/radix: Add THP support for 4K linux page size 2016-05-11 21:53:58 +10:00
Makefile powerpc: Remove platforms/wsp and associated pieces 2014-06-11 16:35:38 +10:00