]> git.baikalelectronics.ru Git - kernel.git/commit
mm: move phys_mem_access_prot_allowed() declaration to pgtable.h
authorBaoyou Xie <baoyou.xie@linaro.org>
Sat, 8 Oct 2016 00:00:55 +0000 (17:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 8 Oct 2016 01:46:29 +0000 (18:46 -0700)
commit48c596fae2cc23cb5a7e89831467601345362c79
tree59ecdc97181fc0b14c335268b390dcad2cbf218b
parent07ad519cb111c4857ebf2d01725118ea19f5661b
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>
arch/mips/include/asm/pgtable.h
arch/x86/include/asm/pgtable_types.h
include/asm-generic/pgtable.h