@@ -181,9 +181,9 @@ static void mtip_init_cmd_header(struct request *rq)
181181 (sizeof (struct mtip_cmd_hdr ) * rq -> tag );
182182
183183 if (test_bit (MTIP_PF_HOST_CAP_64 , & dd -> port -> flags ))
184- cmd -> command_header -> ctbau = __force_bit2int cpu_to_le32 ((cmd -> command_dma >> 16 ) >> 16 );
184+ cmd -> command_header -> ctbau = cpu_to_le32 ((cmd -> command_dma >> 16 ) >> 16 );
185185
186- cmd -> command_header -> ctba = __force_bit2int cpu_to_le32 (cmd -> command_dma & 0xFFFFFFFF );
186+ cmd -> command_header -> ctba = cpu_to_le32 (cmd -> command_dma & 0xFFFFFFFF );
187187}
188188
189189static struct mtip_cmd * mtip_get_int_command (struct driver_data * dd )
@@ -1459,8 +1459,8 @@ static blk_status_t mtip_send_trim(struct driver_data *dd, unsigned int lba,
14591459 tlen = (sect_left >= MTIP_MAX_TRIM_ENTRY_LEN ?
14601460 MTIP_MAX_TRIM_ENTRY_LEN :
14611461 sect_left );
1462- buf [i ].lba = __force_bit2int cpu_to_le32 (tlba );
1463- buf [i ].range = __force_bit2int cpu_to_le16 (tlen );
1462+ buf [i ].lba = cpu_to_le32 (tlba );
1463+ buf [i ].range = cpu_to_le16 (tlen );
14641464 tlba += tlen ;
14651465 sect_left -= tlen ;
14661466 }
@@ -1590,11 +1590,9 @@ static inline void fill_command_sg(struct driver_data *dd,
15901590 if (dma_len > 0x400000 )
15911591 dev_err (& dd -> pdev -> dev ,
15921592 "DMA segment length truncated\n" );
1593- command_sg -> info = __force_bit2int
1594- cpu_to_le32 ((dma_len - 1 ) & 0x3FFFFF );
1595- command_sg -> dba = __force_bit2int
1596- cpu_to_le32 (sg_dma_address (sg ));
1597- command_sg -> dba_upper = __force_bit2int
1593+ command_sg -> info = cpu_to_le32 ((dma_len - 1 ) & 0x3FFFFF );
1594+ command_sg -> dba = cpu_to_le32 (sg_dma_address (sg ));
1595+ command_sg -> dba_upper =
15981596 cpu_to_le32 ((sg_dma_address (sg ) >> 16 ) >> 16 );
15991597 command_sg ++ ;
16001598 sg ++ ;
@@ -2231,8 +2229,7 @@ static void mtip_hw_submit_io(struct driver_data *dd, struct request *rq,
22312229
22322230 /* Populate the command header */
22332231 command -> command_header -> opts =
2234- __force_bit2int cpu_to_le32 (
2235- (nents << 16 ) | 5 | AHCI_CMD_PREFETCH );
2232+ cpu_to_le32 ((nents << 16 ) | 5 | AHCI_CMD_PREFETCH );
22362233 command -> command_header -> byte_count = 0 ;
22372234
22382235 command -> direction = dma_dir ;
@@ -3586,20 +3583,16 @@ static blk_status_t mtip_issue_reserved_cmd(struct blk_mq_hw_ctx *hctx,
35863583 return BLK_STS_RESOURCE ;
35873584
35883585 /* Populate the SG list */
3589- cmd -> command_header -> opts =
3590- __force_bit2int cpu_to_le32 (icmd -> opts | icmd -> fis_len );
3586+ cmd -> command_header -> opts = cpu_to_le32 (icmd -> opts | icmd -> fis_len );
35913587 if (icmd -> buf_len ) {
35923588 command_sg = cmd -> command + AHCI_CMD_TBL_HDR_SZ ;
35933589
3594- command_sg -> info =
3595- __force_bit2int cpu_to_le32 ((icmd -> buf_len - 1 ) & 0x3FFFFF );
3596- command_sg -> dba =
3597- __force_bit2int cpu_to_le32 (icmd -> buffer & 0xFFFFFFFF );
3590+ command_sg -> info = cpu_to_le32 ((icmd -> buf_len - 1 ) & 0x3FFFFF );
3591+ command_sg -> dba = cpu_to_le32 (icmd -> buffer & 0xFFFFFFFF );
35983592 command_sg -> dba_upper =
3599- __force_bit2int cpu_to_le32 ((icmd -> buffer >> 16 ) >> 16 );
3593+ cpu_to_le32 ((icmd -> buffer >> 16 ) >> 16 );
36003594
3601- cmd -> command_header -> opts |=
3602- __force_bit2int cpu_to_le32 ((1 << 16 ));
3595+ cmd -> command_header -> opts |= cpu_to_le32 ((1 << 16 ));
36033596 }
36043597
36053598 /* Populate the command header */
0 commit comments