]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ARM: 8916/1: mm: make set_section_perms() static
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>
Fri, 11 Oct 2019 12:51:52 +0000 (13:51 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 27 Oct 2019 21:14:49 +0000 (21:14 +0000)
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>
arch/arm/mm/init.c

index a373e9f59fd4368ee9c177c99b43ecfe7630d61f..b743272eacb3af1810c301ef23a785893a8046f6 100644 (file)
@@ -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;