From: Ben Dooks (Codethink) Date: Fri, 11 Oct 2019 12:51:52 +0000 (+0100) Subject: ARM: 8916/1: mm: make set_section_perms() static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ea5379be539e2a83cd582d79b9a12323ea1bae78;p=openwrt%2Fstaging%2Fblogic.git ARM: 8916/1: mm: make set_section_perms() static The set_section_perms() is not defined outside of the init.c file, so make it static to avoid the following warning: arch/arm/mm/init.c:596:6: warning: symbol 'set_section_perms' was not declared. Should it be static? Signed-off-by: Ben Dooks Signed-off-by: Russell King --- diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index a373e9f59fd4..b743272eacb3 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c @@ -593,8 +593,8 @@ static inline bool arch_has_strict_perms(void) return !!(get_cr() & CR_XP); } -void set_section_perms(struct section_perm *perms, int n, bool set, - struct mm_struct *mm) +static void set_section_perms(struct section_perm *perms, int n, bool set, + struct mm_struct *mm) { size_t i; unsigned long addr;