summaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorJoshua Kinard2012-12-27 19:46:46 +0100
committerRalf Baechle2013-01-03 00:03:08 +0100
commit2f12fb20dee7285d8e9b8c1f703c0c1604b2c22e (patch)
tree7a59dcaea0b472fecfe573b330b1854016bd7b69 /arch/mips/include
parentMIPS: Wire up finit_module syscall. (diff)
downloadkernel-qcow2-linux-2f12fb20dee7285d8e9b8c1f703c0c1604b2c22e.tar.gz
kernel-qcow2-linux-2f12fb20dee7285d8e9b8c1f703c0c1604b2c22e.tar.xz
kernel-qcow2-linux-2f12fb20dee7285d8e9b8c1f703c0c1604b2c22e.zip
MIPS: 64-bit: Fix build if !CONFIG_MODULES
Fix 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: CC arch/mips/kernel/module-rela.o arch/mips/kernel/module-rela.c: In function ‘apply_r_mips_26_rela’: arch/mips/kernel/module-rela.c:38:74: error: dereferencing pointer to incomplete type arch/mips/kernel/module-rela.c:46:12: error: dereferencing pointer to incomplete type arch/mips/kernel/module-rela.c: In function ‘apply_relocate_add’: arch/mips/kernel/module-rela.c:133:13: error: dereferencing pointer to incomplete type make[2]: *** [arch/mips/kernel/module-rela.o] Error 1 Signed-off-by: Joshua Kinard <kumba@gentoo.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/4749/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
0 files changed, 0 insertions, 0 deletions