Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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>

authored by

Matthew Wilcox and committed by
Linus Torvalds
ac7fb273 020d8c06

+5 -13
+5 -13
include/asm-parisc/page.h
··· 1 1 #ifndef _PARISC_PAGE_H 2 2 #define _PARISC_PAGE_H 3 3 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 - 12 4 #ifdef __KERNEL__ 13 5 14 6 #if defined(CONFIG_PARISC_PAGE_SIZE_4KB) 15 - # define PAGE_SHIFT 12 /* 4k */ 7 + # define PAGE_SHIFT 12 16 8 #elif defined(CONFIG_PARISC_PAGE_SIZE_16KB) 17 - # define PAGE_SHIFT 14 /* 16k */ 9 + # define PAGE_SHIFT 14 18 10 #elif defined(CONFIG_PARISC_PAGE_SIZE_64KB) 19 - # define PAGE_SHIFT 16 /* 64k */ 11 + # define PAGE_SHIFT 16 20 12 #else 21 13 # error "unknown default kernel page size" 22 14 #endif ··· 180 188 #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \ 181 189 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) 182 190 183 - #endif /* __KERNEL__ */ 184 - 185 191 #include <asm-generic/memory_model.h> 186 192 #include <asm-generic/page.h> 193 + 194 + #endif /* __KERNEL__ */ 187 195 188 196 #endif /* _PARISC_PAGE_H */