summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorBen Dooks (Codethink) <ben.dooks@codethink.co.uk>2019-10-11 14:51:52 +0200
committerRussell King <rmk+kernel@armlinux.org.uk>2019-10-27 22:14:49 +0100
commitea5379be539e2a83cd582d79b9a12323ea1bae78 (patch)
tree20c2ad828253997802e09d8d74d551a0c3819965 /arch/arm/mm
parentARM: 8915/1: zImage: atags_to_fdt: fix __be32 and __be64 types (diff)
downloadlinux-ea5379be539e2a83cd582d79b9a12323ea1bae78.tar.xz
linux-ea5379be539e2a83cd582d79b9a12323ea1bae78.zip
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')
-rw-r--r--arch/arm/mm/init.c4
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;