From 56af4f566a637b8dd78a8d4ea8624e3d27645e6e Mon Sep 17 00:00:00 2001 From: Zhang Yanfei Date: Fri, 15 Mar 2013 17:46:35 +0800 Subject: kexec: use _ALIGN* to make the logic clear By replacing all the explicit align opertion with marco _ALIGN*, the code logic could more clear. Signed-off-by: Zhang Yanfei Signed-off-by: Simon Horman --- kexec/kexec-elf-boot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kexec/kexec-elf-boot.c') diff --git a/kexec/kexec-elf-boot.c b/kexec/kexec-elf-boot.c index f082f8b..38f9056 100644 --- a/kexec/kexec-elf-boot.c +++ b/kexec/kexec-elf-boot.c @@ -31,7 +31,7 @@ #include "kexec-elf-boot.h" -#define UPSZ(X) ((sizeof(X) + 3) &~3) +#define UPSZ(X) _ALIGN_UP(sizeof(X), 4) static struct boot_notes { Elf_Bhdr hdr; -- cgit