diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-04-19 16:07:15 +0200 |
---|---|---|
committer | Oleg Nesterov <oleg@redhat.com> | 2014-04-30 19:10:35 +0200 |
commit | 8dbacad93a2a12adebcc717e6055b1bcc1739ab8 (patch) | |
tree | 30304d63a8174762bf68e1dc271390c0eaec39ed /firmware/mts_edge.fw.ihex | |
parent | ff261964cfcfe49d73690ca29b0ba2853d9497e3 (diff) | |
download | lwn-8dbacad93a2a12adebcc717e6055b1bcc1739ab8.tar.gz lwn-8dbacad93a2a12adebcc717e6055b1bcc1739ab8.zip |
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 'firmware/mts_edge.fw.ihex')
0 files changed, 0 insertions, 0 deletions