uprobes: Cleanup !CONFIG_UPROBES decls, unexport xol_area
authorOleg Nesterov <oleg@redhat.com>
Sat, 9 Nov 2013 18:49:39 +0000 (19:49 +0100)
committerOleg Nesterov <oleg@redhat.com>
Wed, 20 Nov 2013 15:31:01 +0000 (16:31 +0100)
commitc912dae60ae6f659455f239298110adc67a5f3e9
tree1997566bb556e768f12881dd39d1d1036ef9e5b5
parent3d78e945b6249d4ef2308192343f8b203b1d7ea5
uprobes: Cleanup !CONFIG_UPROBES decls, unexport xol_area

1. Don't include asm/uprobes.h unconditionally, we only need
   it if CONFIG_UPROBES.

2. Move the definition of "struct xol_area" into uprobes.c.

   Perhaps we should simply kill struct uprobes_state, it buys
   nothing.

3. Kill the dummy definition of uprobe_get_swbp_addr(), nobody
   except handle_swbp() needs it.

4. Purely cosmetic, but move the decl of uprobe_get_swbp_addr()
   up, close to other __weak helpers.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
include/linux/uprobes.h
kernel/events/uprobes.c