[patch] fix compilation on arm

Marc Kleine-Budde mkl at pengutronix.de
Sun Aug 24 15:21:36 EDT 2008


Hi,

cross compilation to arm fails with toolchain based on recent new kernel
headers, due to mussing asm/page.h, This patch fixes the problem.

cheers, Marc

-- 
 Marc Kleine-Budde              Phone: +49-231-2826-924
 Pengutronix - Linux Solutions for Science and Industry
 Vertretung West/Dortmund     http://www.pengutronix.de

From f1786e47eb58f4eec4357ff07d8d009222e6ea7c Mon Sep 17 00:00:00 2001
From: Marc Kleine-Budde <mkl at pengutronix.de>
Date: Sun, 24 Aug 2008 21:11:05 +0200
Subject: [PATCH] remove "asm/page.h" include, define _XOPEN_SOURCE

In recent kernels "asm/page.h" isn't exported to userspace anymore, thus
the include is removed.

Further this patch defines _XOPEN_SOURCE, in order to use getpagesize.

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 kexec/arch/arm/kexec-zImage-arm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kexec/arch/arm/kexec-zImage-arm.c
b/kexec/arch/arm/kexec-zImage-arm.c
index 440ad73..5eb4905 100644
--- a/kexec/arch/arm/kexec-zImage-arm.c
+++ b/kexec/arch/arm/kexec-zImage-arm.c
@@ -3,6 +3,7 @@
  *
  */
 #define _GNU_SOURCE
+#define _XOPEN_SOURCE
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
@@ -11,7 +12,6 @@
 #include <stdint.h>
 #include <getopt.h>
 #include <arch/options.h>
-#include <asm/page.h>
 #include "../../kexec.h"

 #define COMMAND_LINE_SIZE 1024
-- 
1.5.5.1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.infradead.org/pipermail/kexec/attachments/20080824/7ca9305e/attachment.bin 


More information about the kexec mailing list