• Ingo Molnar's avatar
    tracing, Text Edit Lock - kprobes architecture independent support, nommu fix · 505f2b97
    Ingo Molnar authored
    Impact: build fix on SH !CONFIG_MMU
    
    Stephen Rothwell reported this linux-next build failure on the SH
    architecture:
    
      kernel/built-in.o: In function `disable_all_kprobes':
      kernel/kprobes.c:1382: undefined reference to `text_mutex'
      [...]
    
    And observed:
    
    | Introduced by commit 4460fdad ("tracing,
    | Text Edit Lock - kprobes architecture independent support") from the
    | tracing tree.  text_mutex is defined in mm/memory.c which is only built
    | if CONFIG_MMU is defined, which is not true for sh allmodconfig.
    
    Move this lock to kernel/extable.c (which is already home to various
    kernel text related routines), which file is always built-in.
    Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Cc: Paul Mundt <lethal@linux-sh.org>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    LKML-Reference: <20090320110602.86351a91.sfr@canb.auug.org.au>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    505f2b97
extable.c 2.8 KB