Re: [v2] powerpc/powernv: fix pci-cxl.c build when CONFIG_MODULES=n

2016-07-20 Thread Michael Ellerman
On Tue, 2016-19-07 at 02:33:35 UTC, Ian Munsie wrote: > From: Ian Munsie > > 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 e

[PATCH v2] powerpc/powernv: fix pci-cxl.c build when CONFIG_MODULES=n

2016-07-18 Thread Ian Munsie
From: Ian Munsie 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 prote