All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add include for offsetof macro
@ 2008-11-05  9:41 Stefan Assmann
  2008-11-10  3:45 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Assmann @ 2008-11-05  9:41 UTC (permalink / raw)
  To: kexec

kexec/arch/i386/kexec-elf-x86.c and kexec/arch/x86_64/kexec-elf-x86_64.c
both use the macro offsetof() which according to the man page requires
#include <stddef.h>.
The include is not present at the moment and this patch adds it. This is
necessary for compatibility with i.e. uClibc.

Signed-off-by: Stefan Assmann <sassmann@suse.de>

---
 kexec/arch/i386/kexec-elf-x86.c      |    1 +
 kexec/arch/x86_64/kexec-elf-x86_64.c |    1 +
 2 files changed, 2 insertions(+)

--- a/kexec/arch/i386/kexec-elf-x86.c
+++ b/kexec/arch/i386/kexec-elf-x86.c
@@ -18,6 +18,7 @@
  */

 #define _GNU_SOURCE
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
--- a/kexec/arch/x86_64/kexec-elf-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-x86_64.c
@@ -18,6 +18,7 @@
  */

 #define _GNU_SOURCE
+#include <stddef.h>
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>

-- 
Stefan Assmann          | SUSE LINUX Products GmbH
Software Engineer       | Maxfeldstr. 5, D-90409 Nuernberg
Mail: sassmann@suse.de  | GF: Markus Rex, HRB 16746 (AG Nuernberg)

_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Add include for offsetof macro
  2008-11-05  9:41 [PATCH] Add include for offsetof macro Stefan Assmann
@ 2008-11-10  3:45 ` Simon Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2008-11-10  3:45 UTC (permalink / raw)
  To: Stefan Assmann; +Cc: kexec

On Wed, Nov 05, 2008 at 10:41:49AM +0100, Stefan Assmann wrote:
> kexec/arch/i386/kexec-elf-x86.c and kexec/arch/x86_64/kexec-elf-x86_64.c
> both use the macro offsetof() which according to the man page requires
> #include <stddef.h>.
> The include is not present at the moment and this patch adds it. This is
> necessary for compatibility with i.e. uClibc.
> 
> Signed-off-by: Stefan Assmann <sassmann@suse.de>

Thanks, applied.

-- 
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-10  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-05  9:41 [PATCH] Add include for offsetof macro Stefan Assmann
2008-11-10  3:45 ` Simon Horman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.