File tree 1 file changed +2
-2
lines changed
src/drivers/virtio/virtqueue 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ impl DescrRing {
147
147
unsafe { VolatileRef :: new_read_only ( NonNull :: new ( self . used_ring_cell . get ( ) ) . unwrap ( ) ) }
148
148
}
149
149
150
- fn push ( & mut self , tkn : TransferToken ) -> ( u16 , u16 ) {
150
+ fn push ( & mut self , tkn : TransferToken ) -> ( u16 , u8 ) {
151
151
let mut desc_lst = Vec :: new ( ) ;
152
152
let mut is_indirect = false ;
153
153
@@ -381,7 +381,7 @@ impl Virtq for SplitVq {
381
381
let index = self . index . 0 . to_le_bytes ( ) ;
382
382
let mut index = index. iter ( ) ;
383
383
let det_notif_data: u16 = next_off & !( 1 << 15 ) ;
384
- let flags = ( det_notif_data | ( next_wrap << 15 ) ) . to_le_bytes ( ) ;
384
+ let flags = ( det_notif_data | ( u16 :: from ( next_wrap) << 15 ) ) . to_le_bytes ( ) ;
385
385
let mut flags = flags. iter ( ) ;
386
386
let mut notif_data: [ u8 ; 4 ] = [ 0 , 0 , 0 , 0 ] ;
387
387
You can’t perform that action at this time.
0 commit comments