Messages in this thread Patch in this message | | | From | David Howells <> | Subject | [PATCH 6/8] FDPIC: Move roundup() into linux/kernel.h [try #4] | Date | Fri, 07 Jul 2006 12:47:51 +0100 |
| |
From: David Howells <dhowells@redhat.com>
Move the roundup() macro from binfmt_elf.c into linux/kernel.h as it's generally useful.
Signed-Off-By: David Howells <dhowells@redhat.com> ---
fs/binfmt_elf.c | 2 -- include/linux/kernel.h | 1 + 2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index f42e642..672a3b9 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1185,8 +1185,6 @@ static int maydump(struct vm_area_struct return 1; } -#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) - /* An ELF note in memory */ struct memelfnote { diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 5c1ec1f..181c69c 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -33,6 +33,7 @@ #define STACK_MAGIC 0xdeadbeef #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define ALIGN(x,a) (((x)+(a)-1)&~((a)-1)) #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) +#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y)) #define KERN_EMERG "<0>" /* system is unusable */ #define KERN_ALERT "<1>" /* action must be taken immediately */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |