summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_sas_internal.h
diff options
context:
space:
mode:
authorIan Munsie <imunsie@au1.ibm.com>2016-07-19 04:33:35 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-19 12:12:28 +0200
commitc2ca9f6b4cc4c45eb598b24b8b06beee668052d5 (patch)
treeef9bfab697a31b8d5ed3948f7c098fcee6309489 /drivers/scsi/scsi_sas_internal.h
parentpowerpc/mm: Cleanup LPCR defines (diff)
downloadlinux-c2ca9f6b4cc4c45eb598b24b8b06beee668052d5.tar.xz
linux-c2ca9f6b4cc4c45eb598b24b8b06beee668052d5.zip
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>
Diffstat (limited to 'drivers/scsi/scsi_sas_internal.h')
0 files changed, 0 insertions, 0 deletions