mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
octeontx2-af: fix operand size in bitwise operation
Made size of operands same in bitwise operations. The patch fixes the klocwork issue, operands in a bitwise operation have different size at line 375 and 483. Signed-off-by: Shijith Thotton <sthotton@marvell.com> Link: https://lore.kernel.org/r/f4fba33fe4f89b420b4da11d51255e7cc6ea1dbf.1656586269.git.sthotton@marvell.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
dbdd9a28e1
commit
b140569143
|
|
@ -17,7 +17,7 @@
|
|||
#define PCI_DEVID_OTX2_CPT10K_PF 0xA0F2
|
||||
|
||||
/* Length of initial context fetch in 128 byte words */
|
||||
#define CPT_CTX_ILEN 2
|
||||
#define CPT_CTX_ILEN 2ULL
|
||||
|
||||
#define cpt_get_eng_sts(e_min, e_max, rsp, etype) \
|
||||
({ \
|
||||
|
|
@ -480,7 +480,7 @@ static int cpt_inline_ipsec_cfg_inbound(struct rvu *rvu, int blkaddr, u8 cptlf,
|
|||
*/
|
||||
if (!is_rvu_otx2(rvu)) {
|
||||
val = (ilog2(NIX_CHAN_CPT_X2P_MASK + 1) << 16);
|
||||
val |= rvu->hw->cpt_chan_base;
|
||||
val |= (u64)rvu->hw->cpt_chan_base;
|
||||
|
||||
rvu_write64(rvu, blkaddr, CPT_AF_X2PX_LINK_CFG(0), val);
|
||||
rvu_write64(rvu, blkaddr, CPT_AF_X2PX_LINK_CFG(1), val);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user