From: Aaron Conole Date: Tue, 22 Mar 2016 21:37:16 +0000 (-0400) Subject: igb: fix constant sign in left shift operator X-Git-Tag: spdx-start~7133 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d988d78fa2ea0ff0607d8cd089ed1d3ccddeed1c;p=dpdk.git igb: fix constant sign in left shift operator Tell the compiler to use an unsigned constant for the config shifts. Signed-off-by: Aaron Conole Acked-by: Panu Matilainen Acked-by: Helin Zhang --- diff --git a/drivers/net/e1000/igb_pf.c b/drivers/net/e1000/igb_pf.c index 7f45a44da0..5845bc2242 100644 --- a/drivers/net/e1000/igb_pf.c +++ b/drivers/net/e1000/igb_pf.c @@ -172,8 +172,8 @@ int igb_pf_host_configure(struct rte_eth_dev *eth_dev) E1000_WRITE_REG(hw, E1000_VT_CTL, vtctl); /* Enable pools reserved to PF only */ - E1000_WRITE_REG(hw, E1000_VFRE, (~0) << vf_num); - E1000_WRITE_REG(hw, E1000_VFTE, (~0) << vf_num); + E1000_WRITE_REG(hw, E1000_VFRE, (~0U) << vf_num); + E1000_WRITE_REG(hw, E1000_VFTE, (~0U) << vf_num); /* PFDMA Tx General Switch Control Enables VMDQ loopback */ if (hw->mac.type == e1000_i350)