diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-03-15 17:46:35 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-03-15 16:51:02 +0100 |
commit | 56af4f566a637b8dd78a8d4ea8624e3d27645e6e (patch) | |
tree | a8a120370c50ceda5ee1c2ddb4a14c2cc199d1f7 /kexec/kexec-elf-boot.c | |
parent | 337d4fcbdc45e61cab28f8ba6da49015cca5c8d0 (diff) |
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 <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec-elf-boot.c')
-rw-r--r-- | kexec/kexec-elf-boot.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |