mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: torvalds@osdl.org, akpm@osdl.org, bernds_cb1@t-online.de,
	sam@ravnborg.org
Cc: dhowells@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH 6/8] FDPIC: Move roundup() into linux/kernel.h [try #4]
Date: Fri, 07 Jul 2006 12:47:51 +0100	[thread overview]
Message-ID: <20060707114751.948.50969.stgit@warthog.cambridge.redhat.com> (raw)
In-Reply-To: <20060707114738.948.76567.stgit@warthog.cambridge.redhat.com>

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	*/

  parent reply	other threads:[~2006-07-07 11:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-07 11:47 [PATCH 0/8] Fix FRV, ELF-FDPIC and NOMMU stuff " David Howells
2006-07-07 11:47 ` [PATCH 1/8] FRV: Fix FRV arch compile errors " David Howells
2006-07-07 11:47 ` [PATCH 2/8] NOMMU: Fix execution off of ramfs with mmap() " David Howells
2006-07-07 11:47 ` [PATCH 3/8] FDPIC: Fix FDPIC compile errors " David Howells
2006-07-07 11:47 ` [PATCH 4/8] FDPIC: Adjust the ELF-FDPIC driver to conform more to the CodingStyle " David Howells
2006-07-07 11:47 ` [PATCH 5/8] FDPIC: Define SEEK_* constants in the Linux kernel headers " David Howells
2006-07-07 11:47 ` David Howells [this message]
2006-07-07 11:47 ` [PATCH 7/8] FDPIC: Add coredump capability for the ELF-FDPIC binfmt " David Howells
2006-07-07 11:47 ` [PATCH 8/8] FRV: Introduce asm-offsets for FRV arch " David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060707114751.948.50969.stgit@warthog.cambridge.redhat.com \
    --to=dhowells@redhat.com \
    --cc=akpm@osdl.org \
    --cc=bernds_cb1@t-online.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome