aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2014-04-19 10:07:15 -0400
committerOleg Nesterov <oleg@redhat.com>2014-04-30 13:10:35 -0400
commit8dbacad93a2a12adebcc717e6055b1bcc1739ab8 (patch)
tree30304d63a8174762bf68e1dc271390c0eaec39ed /arch/sh
parentff261964cfcfe49d73690ca29b0ba2853d9497e3 (diff)
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 <oleg@redhat.com> Reviewed-by: Jim Keniston <jkenisto@us.ibm.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions