[patch] <sys/mman.h> is not needed by any kexec/ source

Simon Horman horms at verge.net.au
Wed Apr 23 21:01:20 EDT 2008


This continues the work that Jamey Sharp did on i386 to
cover all other architectures.

Cc: Jamey Sharp <jamey at thetovacompany.com>
Signed-off-by: Simon Horman <horms at verge.net.au>

Index: kexec-tools-testing-merge/kexec/arch/ia64/kexec-elf-ia64.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/ia64/kexec-elf-ia64.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/ia64/kexec-elf-ia64.c	2008-04-24 09:34:59.000000000 +1000
@@ -31,7 +31,6 @@
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/mips/kexec-elf-mips.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/mips/kexec-elf-mips.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/mips/kexec-elf-mips.c	2008-04-24 09:34:59.000000000 +1000
@@ -17,7 +17,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/ppc/kexec-dol-ppc.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/ppc/kexec-dol-ppc.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/ppc/kexec-dol-ppc.c	2008-04-24 09:34:59.000000000 +1000
@@ -13,7 +13,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/ppc/kexec-elf-ppc.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/ppc/kexec-elf-ppc.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/ppc/kexec-elf-ppc.c	2008-04-24 09:34:59.000000000 +1000
@@ -13,7 +13,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/ppc64/kexec-elf-ppc64.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/ppc64/kexec-elf-ppc64.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/ppc64/kexec-elf-ppc64.c	2008-04-24 09:34:59.000000000 +1000
@@ -27,7 +27,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/ppc64/kexec-zImage-ppc64.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/ppc64/kexec-zImage-ppc64.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/ppc64/kexec-zImage-ppc64.c	2008-04-24 09:34:59.000000000 +1000
@@ -25,7 +25,6 @@
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/sh/kexec-netbsd-sh.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/sh/kexec-netbsd-sh.c	2008-04-24 09:34:21.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/sh/kexec-netbsd-sh.c	2008-04-24 09:34:59.000000000 +1000
@@ -15,7 +15,6 @@
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/sh/kexec-zImage-sh.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/sh/kexec-zImage-sh.c	2008-04-24 09:34:22.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/sh/kexec-zImage-sh.c	2008-04-24 09:34:59.000000000 +1000
@@ -15,7 +15,6 @@
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>
Index: kexec-tools-testing-merge/kexec/arch/x86_64/crashdump-x86_64.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/x86_64/crashdump-x86_64.c	2008-04-24 09:34:22.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/x86_64/crashdump-x86_64.c	2008-04-24 09:34:59.000000000 +1000
@@ -27,7 +27,6 @@
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <unistd.h>
 #include "../../kexec.h"
 #include "../../kexec-elf.h"
Index: kexec-tools-testing-merge/kexec/arch/x86_64/kexec-elf-x86_64.c
===================================================================
--- kexec-tools-testing-merge.orig/kexec/arch/x86_64/kexec-elf-x86_64.c	2008-04-24 09:34:22.000000000 +1000
+++ kexec-tools-testing-merge/kexec/arch/x86_64/kexec-elf-x86_64.c	2008-04-24 09:34:59.000000000 +1000
@@ -25,7 +25,6 @@
 #include <limits.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <getopt.h>



More information about the kexec mailing list