diff options
| author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-10-07 20:00:55 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-10-07 21:46:29 -0400 |
| commit | 08ea8c07fb56d6eb8194d8ad408b469544bf2c29 (patch) | |
| tree | 59ecdc97181fc0b14c335268b390dcad2cbf218b /arch/x86/include | |
| parent | cc30c5d6461a2813406f7f84d581643781922a82 (diff) | |
mm: move phys_mem_access_prot_allowed() declaration to pgtable.h
We get 1 warning when building kernel with W=1:
drivers/char/mem.c:220:12: warning: no previous prototype for 'phys_mem_access_prot_allowed' [-Wmissing-prototypes]
int __weak phys_mem_access_prot_allowed(struct file *file,
In fact, its declaration is spreading to several header files in
different architecture, but need to be declare in common header file.
So this patch moves phys_mem_access_prot_allowed() to pgtable.h.
Link: http://lkml.kernel.org/r/1473751597-12139-1-git-send-email-baoyou.xie@linaro.org
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86/include')
| -rw-r--r-- | arch/x86/include/asm/pgtable_types.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h index f1218f512f62..8b4de22d6429 100644 --- a/arch/x86/include/asm/pgtable_types.h +++ b/arch/x86/include/asm/pgtable_types.h | |||
| @@ -439,8 +439,6 @@ extern pgprot_t pgprot_writethrough(pgprot_t prot); | |||
| 439 | struct file; | 439 | struct file; |
| 440 | pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, | 440 | pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, |
| 441 | unsigned long size, pgprot_t vma_prot); | 441 | unsigned long size, pgprot_t vma_prot); |
| 442 | int phys_mem_access_prot_allowed(struct file *file, unsigned long pfn, | ||
| 443 | unsigned long size, pgprot_t *vma_prot); | ||
| 444 | 442 | ||
| 445 | /* Install a pte for a particular vaddr in kernel space. */ | 443 | /* Install a pte for a particular vaddr in kernel space. */ |
| 446 | void set_pte_vaddr(unsigned long vaddr, pte_t pte); | 444 | void set_pte_vaddr(unsigned long vaddr, pte_t pte); |
