From: Oleg Nesterov Date: Sat, 19 Apr 2014 14:07:15 +0000 (+0200) Subject: uprobes/x86: Make good_insns_* depend on CONFIG_X86_* X-Git-Tag: omap-for-v3.16/fixes-against-rc1~34^2~14^2~1^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbacad93a2a12adebcc717e6055b1bcc1739ab8;p=pandora-kernel.git uprobes/x86: Make good_insns_* depend on CONFIG_X86_* Add the suitable ifdef's around good_insns_* arrays. We do not want to add the ugly ifdef's into their only user, uprobe_init_insn(), so the "#else" branch simply defines them as NULL. This doesn't generate the extra code, gcc is smart enough, although the code is fine even if it could not detect that (without CONFIG_IA32_EMULATION) is_64bit_mm() is __builtin_constant_p(). The patch looks more complicated because it also moves good_insns_64 up close to good_insns_32. Signed-off-by: Oleg Nesterov Reviewed-by: Jim Keniston Acked-by: Srikar Dronamraju --- Reading git-diff-tree failed