diff options
author | Pekka Paalanen <pq@iki.fi> | 2008-05-12 15:21:14 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-24 05:27:47 -0400 |
commit | 790e2a290b499b0400254e6870ec27969065d122 (patch) | |
tree | 0c6b0e7d6b0db645e84c9dbb54ccab428f3d74a8 /arch/x86/mm/kmmio.c | |
parent | a50445d76c22a34ae149704ea5adaef171c8acb7 (diff) |
x86 mmiotrace: page level is unsigned
Fixes some sparse warnings.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/kmmio.c')
-rw-r--r-- | arch/x86/mm/kmmio.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/mm/kmmio.c b/arch/x86/mm/kmmio.c index 93b1797666cb..b65871e6bba6 100644 --- a/arch/x86/mm/kmmio.c +++ b/arch/x86/mm/kmmio.c | |||
@@ -104,11 +104,12 @@ static struct kmmio_fault_page *get_kmmio_fault_page(unsigned long page) | |||
104 | return NULL; | 104 | return NULL; |
105 | } | 105 | } |
106 | 106 | ||
107 | static void set_page_present(unsigned long addr, bool present, int *pglevel) | 107 | static void set_page_present(unsigned long addr, bool present, |
108 | unsigned int *pglevel) | ||
108 | { | 109 | { |
109 | pteval_t pteval; | 110 | pteval_t pteval; |
110 | pmdval_t pmdval; | 111 | pmdval_t pmdval; |
111 | int level; | 112 | unsigned int level; |
112 | pmd_t *pmd; | 113 | pmd_t *pmd; |
113 | pte_t *pte = lookup_address(addr, &level); | 114 | pte_t *pte = lookup_address(addr, &level); |
114 | 115 | ||
@@ -145,15 +146,15 @@ static void set_page_present(unsigned long addr, bool present, int *pglevel) | |||
145 | } | 146 | } |
146 | 147 | ||
147 | /** Mark the given page as not present. Access to it will trigger a fault. */ | 148 | /** Mark the given page as not present. Access to it will trigger a fault. */ |
148 | static void arm_kmmio_fault_page(unsigned long page, int *page_level) | 149 | static void arm_kmmio_fault_page(unsigned long page, unsigned int *pglevel) |
149 | { | 150 | { |
150 | set_page_present(page & PAGE_MASK, false, page_level); | 151 | set_page_present(page & PAGE_MASK, false, pglevel); |
151 | } | 152 | } |
152 | 153 | ||
153 | /** Mark the given page as present. */ | 154 | /** Mark the given page as present. */ |
154 | static void disarm_kmmio_fault_page(unsigned long page, int *page_level) | 155 | static void disarm_kmmio_fault_page(unsigned long page, unsigned int *pglevel) |
155 | { | 156 | { |
156 | set_page_present(page & PAGE_MASK, true, page_level); | 157 | set_page_present(page & PAGE_MASK, true, pglevel); |
157 | } | 158 | } |
158 | 159 | ||
159 | /* | 160 | /* |