Re: [PATCH v2 2/2] riscv: Fix build warning for mm/pageattr

2020-07-16 Thread Anup Patel
On Thu, Jul 16, 2020 at 6:36 PM Zong Li wrote: > > Add header for missing prototype. Also, static keyword should be at > beginning of declaration. > > The warning messages as follows (with W=1 build): > > arch/riscv/mm/pageattr.c:130:5: > warning: no previous prototype for 'set_memory_ro' [-Wmissi

[PATCH v2 2/2] riscv: Fix build warning for mm/pageattr

2020-07-16 Thread Zong Li
Add header for missing prototype. Also, static keyword should be at beginning of declaration. The warning messages as follows (with W=1 build): arch/riscv/mm/pageattr.c:130:5: warning: no previous prototype for 'set_memory_ro' [-Wmissing-prototypes] arch/riscv/mm/pageattr.c:136:5: warning: no pr