Skip to content

Commit

Permalink
ARM: 8916/1: mm: make set_section_perms() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ben Dooks (Codethink) authored and Russell King committed Oct 27, 2019
1 parent 43fa593 commit ea5379b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/arm/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea5379b

Please sign in to comment.