Re: [PATCH v2] mm: move phys_mem_access_prot_allowed() declaration to pgtable.h

2016-09-16 Thread Ralf Baechle
On Tue, Sep 13, 2016 at 03:26:37PM +0800, Baoyou Xie wrote: > 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, > >

Re: [PATCH v2] mm: move phys_mem_access_prot_allowed() declaration to pgtable.h

2016-09-13 Thread Thomas Gleixner
On Tue, 13 Sep 2016, Baoyou Xie wrote: > 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 declarat

[PATCH v2] mm: move phys_mem_access_prot_allowed() declaration to pgtable.h

2016-09-13 Thread Baoyou Xie
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 differen