summaryrefslogtreecommitdiff
path: root/arch/metag
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzk@kernel.org>2017-04-11 20:08:34 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-21 20:30:44 +0800
commited067d4a859ff696373324c5061392e013a7561a (patch)
treead38c59cb06b548f56d1bbc38845a39b9091a056 /arch/metag
parent7e207d8550644c1076ceb070f40abf52701253ec (diff)
linux/kernel.h: Add ALIGN_DOWN macro
Few parts of kernel define their own macro for aligning down so provide a common define for this, with the same usage and assumptions as existing ALIGN. Convert also three existing implementations to this one. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/metag')
-rw-r--r--arch/metag/kernel/stacktrace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/metag/kernel/stacktrace.c b/arch/metag/kernel/stacktrace.c
index 91ffc4b75c33..09d67b7f51ca 100644
--- a/arch/metag/kernel/stacktrace.c
+++ b/arch/metag/kernel/stacktrace.c
@@ -31,8 +31,6 @@ static void tbi_boing_init(void)
}
#endif
-#define ALIGN_DOWN(addr, size) ((addr)&(~((size)-1)))
-
/*
* Unwind the current stack frame and store the new register values in the
* structure passed as argument. Unwinding is equivalent to a function return,