diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2018-10-30 18:04:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-10-31 11:54:12 -0400 |
commit | de0d22e50cd3d57277f073ccf65d57aa519d6888 (patch) | |
tree | 1ba7b5bb0ca2e4639378609fa64ea4dbad19aff7 /arch/openrisc | |
parent | 49ef341ab668df248949c8e011d176ac6f8918fe (diff) |
treewide: remove current_text_addr
Prefer _THIS_IP_ defined in linux/kernel.h.
Most definitions of current_text_addr were the same as _THIS_IP_, but
a few archs had inline assembly instead.
This patch removes the final call site of current_text_addr, making all
of the definitions dead code.
[akpm@linux-foundation.org: fix arch/csky/include/asm/processor.h]
Link: http://lkml.kernel.org/r/20180911182413.180715-1-ndesaulniers@google.com
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/include/asm/processor.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/openrisc/include/asm/processor.h b/arch/openrisc/include/asm/processor.h index af31a9fe736a..351d3aed7a06 100644 --- a/arch/openrisc/include/asm/processor.h +++ b/arch/openrisc/include/asm/processor.h | |||
@@ -30,11 +30,6 @@ | |||
30 | | SPR_SR_DCE | SPR_SR_SM) | 30 | | SPR_SR_DCE | SPR_SR_SM) |
31 | #define USER_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ | 31 | #define USER_SR (SPR_SR_DME | SPR_SR_IME | SPR_SR_ICE \ |
32 | | SPR_SR_DCE | SPR_SR_IEE | SPR_SR_TEE) | 32 | | SPR_SR_DCE | SPR_SR_IEE | SPR_SR_TEE) |
33 | /* | ||
34 | * Default implementation of macro that returns current | ||
35 | * instruction pointer ("program counter"). | ||
36 | */ | ||
37 | #define current_text_addr() ({ __label__ _l; _l: &&_l; }) | ||
38 | 33 | ||
39 | /* | 34 | /* |
40 | * User space process size. This is hardcoded into a few places, | 35 | * User space process size. This is hardcoded into a few places, |