linux/arch/powerpc
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
..
boot powerpc/boot: Add OPAL console to epapr wrappers 2016-07-05 23:58:54 +10:00
configs powerpc/pseries: Auto-online hotplugged memory 2016-07-15 20:18:37 +10:00
crypto powerpc: Various typo fixes 2016-06-14 13:58:26 +10:00
include powerpc/mm: Cleanup LPCR defines 2016-07-19 20:12:28 +10:00
kernel powerpc/mm/radix: Add a kernel command line to disable radix 2016-07-17 16:42:55 +10:00
kvm powerpc/powernv: Rename reusable idle functions to hardware agnostic names 2016-07-15 20:18:39 +10:00
lib powerpc/lib: Clarify that adde is an instruction and we mean plural 2016-07-15 20:18:37 +10:00
math-emu
mm powerpc/mm/radix: Add LPID based tlb flush helpers 2016-07-17 16:42:55 +10:00
net powerpc/ebpf/jit: Implement JIT compiler for extended BPF 2016-06-24 15:17:57 +10:00
oprofile powerpc: Various typo fixes 2016-06-14 13:58:26 +10:00
perf powerpc/perf: Export Power9 generic and cache events to sysfs 2016-07-05 23:49:48 +10:00
platforms powerpc/powernv: Fix pci-cxl.c build when CONFIG_MODULES=n 2016-07-19 20:12:28 +10:00
scripts powerpc/ftrace: Add Kconfig & Make glue for mprofile-kernel 2016-03-07 14:53:56 +11:00
sysdev powerpc/xics: Add ICP OPAL backend 2016-07-17 16:42:45 +10:00
xmon powerpc/xmon: Dump ISA 2.07 SPRs 2016-07-14 20:26:24 +10:00
Kconfig powerpc/ebpf/jit: Implement JIT compiler for extended BPF 2016-06-24 15:17:57 +10:00
Kconfig.debug powerpc/pseries: HVC early debug options should depend on HVC_CONSOLE 2016-07-15 15:02:26 +10:00
Makefile powerpc/sparse: Pass endianness to sparse 2016-07-14 20:44:03 +10:00
relocs_check.sh powerpc: Convert relocs_check to a shell script using grep 2015-03-23 14:47:39 +11:00