-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renaming the function sparc64_mmap_check() to sparc_mmap_check() was enough to make the two header files identical. :$ diff -u include/asm-sparc/mman.h include/asm-sparc64/mman.h :-- include/asm-sparc/mman.h 2008-06-13 06:46:39.000000000 +0200 :++ include/asm-sparc64/mman.h 2008-06-13 06:46:39.000000000 +0200 :@@ -1,5 +1,5 @@ :-#ifndef __SPARC_MMAN_H__ :-#define __SPARC_MMAN_H__ :+#ifndef __SPARC64_MMAN_H__ :+#define __SPARC64_MMAN_H__ : : #include <asm-generic/mman.h> : :@@ -23,9 +23,9 @@ : : #ifdef __KERNEL__ : #ifndef __ASSEMBLY__ :-#define arch_mmap_check(addr,len,flags) sparc_mmap_check(addr,len) :-int sparc_mmap_check(unsigned long addr, unsigned long len); :+#define arch_mmap_check(addr,len,flags) sparc64_mmap_check(addr,len) :+int sparc64_mmap_check(unsigned long addr, unsigned long len); : #endif : #endif : :-#endif /* __SPARC_MMAN_H__ */ :+#endif /* __SPARC64_MMAN_H__ */ Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
- Loading branch information
Sam Ravnborg
authored and
David S. Miller
committed
Jul 18, 2008
1 parent
2d14196
commit f92ffa1
Showing
3 changed files
with
6 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1 @@ | ||
#ifndef __SPARC64_MMAN_H__ | ||
#define __SPARC64_MMAN_H__ | ||
|
||
#include <asm-generic/mman.h> | ||
|
||
/* SunOS'ified... */ | ||
|
||
#define MAP_RENAME MAP_ANONYMOUS /* In SunOS terminology */ | ||
#define MAP_NORESERVE 0x40 /* don't reserve swap pages */ | ||
#define MAP_INHERIT 0x80 /* SunOS doesn't do this, but... */ | ||
#define MAP_LOCKED 0x100 /* lock the mapping */ | ||
#define _MAP_NEW 0x80000000 /* Binary compatibility is fun... */ | ||
|
||
#define MAP_GROWSDOWN 0x0200 /* stack-like segment */ | ||
#define MAP_DENYWRITE 0x0800 /* ETXTBSY */ | ||
#define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ | ||
|
||
#define MCL_CURRENT 0x2000 /* lock all currently mapped pages */ | ||
#define MCL_FUTURE 0x4000 /* lock all additions to address space */ | ||
|
||
#define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ | ||
#define MAP_NONBLOCK 0x10000 /* do not block on IO */ | ||
|
||
#ifdef __KERNEL__ | ||
#ifndef __ASSEMBLY__ | ||
#define arch_mmap_check(addr,len,flags) sparc64_mmap_check(addr,len) | ||
int sparc64_mmap_check(unsigned long addr, unsigned long len); | ||
#endif | ||
#endif | ||
|
||
#endif /* __SPARC64_MMAN_H__ */ | ||
#include <asm-sparc/mman.h> |