Skip to content

Commit ac7fb27

Browse files
Matthew WilcoxLinus Torvalds
authored andcommitted
[PATCH] headers_check: Clean up asm-parisc/page.h for user headers
Remove definitions of PAGE_* from the user view Delete unnecessary comments referring to the size of pages Only include <asm-generic> if we're in __KERNEL__ Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Matthew Wilcox <matthew@wil.cx> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 020d8c0 commit ac7fb27

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

‎include/asm-parisc/page.h‎

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,14 @@
11
#ifndef _PARISC_PAGE_H
22
#define _PARISC_PAGE_H
33

4-
#if !defined(__KERNEL__)
5-
/* this is for userspace applications (4k page size) */
6-
# define PAGE_SHIFT 12 /* 4k */
7-
# define PAGE_SIZE (1UL << PAGE_SHIFT)
8-
# define PAGE_MASK (~(PAGE_SIZE-1))
9-
#endif
10-
11-
124
#ifdef __KERNEL__
135

146
#if defined(CONFIG_PARISC_PAGE_SIZE_4KB)
15-
# define PAGE_SHIFT 12 /* 4k */
7+
# define PAGE_SHIFT 12
168
#elif defined(CONFIG_PARISC_PAGE_SIZE_16KB)
17-
# define PAGE_SHIFT 14 /* 16k */
9+
# define PAGE_SHIFT 14
1810
#elif defined(CONFIG_PARISC_PAGE_SIZE_64KB)
19-
# define PAGE_SHIFT 16 /* 64k */
11+
# define PAGE_SHIFT 16
2012
#else
2113
# error "unknown default kernel page size"
2214
#endif
@@ -188,9 +180,9 @@ extern int npmem_ranges;
188180
#define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
189181
VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
190182

191-
#endif /* __KERNEL__ */
192-
193183
#include <asm-generic/memory_model.h>
194184
#include <asm-generic/page.h>
195185

186+
#endif /* __KERNEL__ */
187+
196188
#endif /* _PARISC_PAGE_H */

0 commit comments

Comments
 (0)