]> git.karo-electronics.de Git - linux-beck.git/commit
ARC: module: Fix !CONFIG_ARC_DW2_UNWIND builds
authorVineet Gupta <vgupta@synopsys.com>
Mon, 16 Jan 2017 18:48:09 +0000 (10:48 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:37 +0000 (08:24 +0100)
commitbb82fb48df8cab8f902052ce03f6d51b9b8f1bcd
treea9db5ddc8228cdefdca84db622184a4b45ba0b53
parent3c4d83a1a41efdf2c191d0072e6545e6bf8ecc94
ARC: module: Fix !CONFIG_ARC_DW2_UNWIND builds

commit eb1357d942e5d96de6b4c20a8ffa55acf96233a2 upstream.

commit d65283f7b695b5 added mod->arch.secstr under
CONFIG_ARC_DW2_UNWIND, but used it unconditionally which broke builds
when the option was disabled. Fix that by adjusting the #ifdef guard.

And while at it add a missing guard (for unwinder) in module.c as well

Reported-by: Waldemar Brodkorb <wbx@openadk.org>
Fixes: d65283f7b695b5 ("ARC: module: elide loop to save reference to .eh_frame")
Tested-by: Anton Kolesov <akolesov@synopsys.com>
Reviewed-by: Alexey Brodkin <abrodkin@synopsys.com>
[abrodkin: provided fixlet to Kconfig per failure in allnoconfig build]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/Kconfig
arch/arc/include/asm/module.h
arch/arc/kernel/module.c