]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6766/1: Thumb-2: Reflect ARM/Thumb-2 configuration in module vermagic
authorDave Martin <dave.martin@linaro.org>
Fri, 25 Feb 2011 16:54:52 +0000 (17:54 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Feb 2011 13:36:06 +0000 (13:36 +0000)
commitf55ecab63c1c8e67c26dd84afed9c17ec911e781
treedf195fff207483f4b10520ebcd3a500c1f703364
parent9d315be36ced285e9b3a62e779c9e38a706fb16c
ARM: 6766/1: Thumb-2: Reflect ARM/Thumb-2 configuration in module vermagic

Loading Thumb-2 modules into an ARM kernel or vice-versa isn't
guaranteed to work safely, since the kernel is not interworking-
aware everywhere.

This patch adds "thumb2" to the module vermagic when
CONFIG_THUMB2_KERNEL is enabled, to help avoid accidental loading
of modules into the wrong kernel.

Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/module.h