diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-09 17:24:08 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-02-09 17:24:08 -0500 |
commit | da7bfc50f5cb54aeee8147dca0c1de9d487cb5e0 (patch) | |
tree | d082b68848f4ed25e12ba54a7115b59fccd7cbc9 /arch/x86/mm | |
parent | 7c36752a6be84892afb085c67fd4209e686db482 (diff) |
x86: sparse warnings in pageattr.c
Adjust the definition of lookup_address to take an unsigned long
level argument. Adjust callers in xen/mmu.c that pass in a
dummy variable.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/pageattr.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/x86/mm/pageattr.c b/arch/x86/mm/pageattr.c index 8493c855582b..eb2a54415a77 100644 --- a/arch/x86/mm/pageattr.c +++ b/arch/x86/mm/pageattr.c | |||
@@ -191,7 +191,7 @@ static inline pgprot_t static_protections(pgprot_t prot, unsigned long address) | |||
191 | * or when the present bit is not set. Otherwise we would return a | 191 | * or when the present bit is not set. Otherwise we would return a |
192 | * pointer to a nonexisting mapping. | 192 | * pointer to a nonexisting mapping. |
193 | */ | 193 | */ |
194 | pte_t *lookup_address(unsigned long address, int *level) | 194 | pte_t *lookup_address(unsigned long address, unsigned int *level) |
195 | { | 195 | { |
196 | pgd_t *pgd = pgd_offset_k(address); | 196 | pgd_t *pgd = pgd_offset_k(address); |
197 | pud_t *pud; | 197 | pud_t *pud; |
@@ -255,7 +255,8 @@ try_preserve_large_page(pte_t *kpte, unsigned long address, | |||
255 | unsigned long nextpage_addr, numpages, pmask, psize, flags; | 255 | unsigned long nextpage_addr, numpages, pmask, psize, flags; |
256 | pte_t new_pte, old_pte, *tmp; | 256 | pte_t new_pte, old_pte, *tmp; |
257 | pgprot_t old_prot, new_prot; | 257 | pgprot_t old_prot, new_prot; |
258 | int level, do_split = 1; | 258 | int do_split = 1; |
259 | unsigned int level; | ||
259 | 260 | ||
260 | spin_lock_irqsave(&pgd_lock, flags); | 261 | spin_lock_irqsave(&pgd_lock, flags); |
261 | /* | 262 | /* |
@@ -406,7 +407,8 @@ out_unlock: | |||
406 | 407 | ||
407 | static int __change_page_attr(unsigned long address, struct cpa_data *cpa) | 408 | static int __change_page_attr(unsigned long address, struct cpa_data *cpa) |
408 | { | 409 | { |
409 | int level, do_split, err; | 410 | int do_split, err; |
411 | unsigned int level; | ||
410 | struct page *kpte_page; | 412 | struct page *kpte_page; |
411 | pte_t *kpte; | 413 | pte_t *kpte; |
412 | 414 | ||