File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ pub(crate) struct UatPageTable {
235235}
236236
237237impl UatPageTable {
238- pub ( crate ) fn new ( oas : usize ) -> Result < Self > {
238+ pub ( crate ) fn new ( oas : u32 ) -> Result < Self > {
239239 mod_pr_debug ! ( "UATPageTable::new: oas={}\n " , oas) ;
240240 let ttb_page = Page :: alloc_page ( GFP_KERNEL | __GFP_ZERO) ?;
241241 let ttb = Page :: into_phys ( ttb_page) ;
@@ -250,7 +250,7 @@ impl UatPageTable {
250250 pub ( crate ) fn new_with_ttb (
251251 ttb : PhysicalAddr ,
252252 va_range : Range < u64 > ,
253- oas : usize ,
253+ oas : u32 ,
254254 ) -> Result < Self > {
255255 mod_pr_debug ! (
256256 "UATPageTable::new_with_ttb: ttb={:#x} range={:#x?} oas={}\n " ,
@@ -277,7 +277,7 @@ impl UatPageTable {
277277 ttb,
278278 ttb_owned : false ,
279279 va_range,
280- oas_mask : ( 1 << oas) - 1 ,
280+ oas_mask : ( 1u64 << oas) - 1 ,
281281 } )
282282 }
283283
You can’t perform that action at this time.
0 commit comments