Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: Kconfig: Add missing MODULES dependency to VPE_LOADER
@ 2013-06-28 12:25 Markos Chandras
  2013-06-28 12:25 ` Markos Chandras
  2013-06-28 13:31 ` Ralf Baechle
  0 siblings, 2 replies; 5+ messages in thread
From: Markos Chandras @ 2013-06-28 12:25 UTC (permalink / raw)
  To: linux-mips; +Cc: Markos Chandras

The vpe.c code uses the 'struct module' which is only available if
CONFIG_MODULES is selected.

Also fixes the following build problem on a lantiq allmodconfig:
In file included from arch/mips/kernel/vpe.c:41:0:
include/linux/moduleloader.h: In function 'apply_relocate':
include/linux/moduleloader.h:48:63: error: dereferencing pointer
to incomplete type
include/linux/moduleloader.h: In function 'apply_relocate_add':
include/linux/moduleloader.h:70:63: error: dereferencing pointer
to incomplete type

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
---
 arch/mips/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 8f5e646..77a6598 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1929,7 +1929,7 @@ config MIPS_MT_FPAFF
 
 config MIPS_VPE_LOADER
 	bool "VPE loader support."
-	depends on SYS_SUPPORTS_MULTITHREADING
+	depends on SYS_SUPPORTS_MULTITHREADING && MODULES
 	select CPU_MIPSR2_IRQ_VI
 	select CPU_MIPSR2_IRQ_EI
 	select MIPS_MT
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-06-28 14:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-28 12:25 [PATCH] MIPS: Kconfig: Add missing MODULES dependency to VPE_LOADER Markos Chandras
2013-06-28 12:25 ` Markos Chandras
2013-06-28 13:31 ` Ralf Baechle
2013-06-28 13:40   ` Florian Fainelli
2013-06-28 14:21     ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox