diff options
author | Ben Dooks (Codethink) | 2019-10-11 13:51:52 +0100 |
---|---|---|
committer | Russell King | 2019-10-27 21:14:49 +0000 |
commit | ea5379be539e2a83cd582d79b9a12323ea1bae78 (patch) | |
tree | 20c2ad828253997802e09d8d74d551a0c3819965 /arch/arm/mm/init.c | |
parent | 43fa593eb7eec998534547a30ac040704f10a30a (diff) |
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 <ben.dooks@codethink.co.uk>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |