mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
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>
This commit is contained in:
parent
43fa593eb7
commit
ea5379be53
@ -593,8 +593,8 @@ static inline bool arch_has_strict_perms(void)
|
|||||||
return !!(get_cr() & CR_XP);
|
return !!(get_cr() & CR_XP);
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_section_perms(struct section_perm *perms, int n, bool set,
|
static void set_section_perms(struct section_perm *perms, int n, bool set,
|
||||||
struct mm_struct *mm)
|
struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
unsigned long addr;
|
unsigned long addr;
|
||||||
|
Loading…
Reference in New Issue
Block a user