linux/kernel.h: Add ALIGN_DOWN macro
authorKrzysztof Kozlowski <krzk@kernel.org>
Tue, 11 Apr 2017 18:08:34 +0000 (20:08 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Apr 2017 12:30:44 +0000 (20:30 +0800)
commited067d4a859ff696373324c5061392e013a7561a
treead38c59cb06b548f56d1bbc38845a39b9091a056
parent7e207d8550644c1076ceb070f40abf52701253ec
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>
arch/metag/kernel/stacktrace.c
drivers/gpu/drm/udl/udl_fb.c
include/linux/kernel.h
include/video/udlfb.h