The attached patch fixes a build failure if building a monolithic kernel due to arch/mips/kernel/Kconfig selecting MODULES_USE_ELF_REL[A] without checking to see if MODULES is set or not. This leads to 'struct module' not existing, which triggers a compile failure in arch/mips/kernel/module-rela.c when the compiler attempts to dereference me->name on lines 36, 48, and 133. Signed-off-by: Joshua Kinard <kumba@xxxxxxxxxx> --- Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -Naurp a/arch/mips/Kconfig b/arch/mips/Kconfig --- a/arch/mips/Kconfig 2012-12-22 22:52:28.264461836 -0500 +++ b/arch/mips/Kconfig 2012-12-26 23:00:46.202996691 -0500 @@ -39,8 +39,8 @@ config MIPS select GENERIC_CLOCKEVENTS select GENERIC_CMOS_UPDATE select HAVE_MOD_ARCH_SPECIFIC - select MODULES_USE_ELF_REL - select MODULES_USE_ELF_RELA if 64BIT + select MODULES_USE_ELF_REL && MODULES + select MODULES_USE_ELF_RELA if MODULES && 64BIT menu "Machine selection"