|
@@ -95,7 +95,8 @@ static void subpage_prot_clear(unsigned long addr, unsigned long len)
|
|
struct mm_struct *mm = current->mm;
|
|
struct mm_struct *mm = current->mm;
|
|
struct subpage_prot_table *spt = &mm->context.spt;
|
|
struct subpage_prot_table *spt = &mm->context.spt;
|
|
u32 **spm, *spp;
|
|
u32 **spm, *spp;
|
|
- int i, nw;
|
|
|
|
|
|
+ unsigned long i;
|
|
|
|
+ size_t nw;
|
|
unsigned long next, limit;
|
|
unsigned long next, limit;
|
|
|
|
|
|
down_write(&mm->mmap_sem);
|
|
down_write(&mm->mmap_sem);
|
|
@@ -144,7 +145,8 @@ long sys_subpage_prot(unsigned long addr, unsigned long len, u32 __user *map)
|
|
struct mm_struct *mm = current->mm;
|
|
struct mm_struct *mm = current->mm;
|
|
struct subpage_prot_table *spt = &mm->context.spt;
|
|
struct subpage_prot_table *spt = &mm->context.spt;
|
|
u32 **spm, *spp;
|
|
u32 **spm, *spp;
|
|
- int i, nw;
|
|
|
|
|
|
+ unsigned long i;
|
|
|
|
+ size_t nw;
|
|
unsigned long next, limit;
|
|
unsigned long next, limit;
|
|
int err;
|
|
int err;
|
|
|
|
|