git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/thunderx/base: add functions to store qsets
[dpdk.git]
/
drivers
/
net
/
i40e
/
base
/
i40e_lan_hmc.c
diff --git
a/drivers/net/i40e/base/i40e_lan_hmc.c
b/drivers/net/i40e/base/i40e_lan_hmc.c
index
6511767
..
2260648
100644
(file)
--- a/
drivers/net/i40e/base/i40e_lan_hmc.c
+++ b/
drivers/net/i40e/base/i40e_lan_hmc.c
@@
-769,7
+769,7
@@
static void i40e_write_byte(u8 *hmc_bits,
/* prepare the bits and mask */
shift_width = ce_info->lsb % 8;
/* prepare the bits and mask */
shift_width = ce_info->lsb % 8;
- mask =
BIT(ce_info->width) - 1
;
+ mask =
(u8)(BIT(ce_info->width) - 1)
;
src_byte = *from;
src_byte &= mask;
src_byte = *from;
src_byte &= mask;
@@
-954,7
+954,7
@@
static void i40e_read_byte(u8 *hmc_bits,
/* prepare the bits and mask */
shift_width = ce_info->lsb % 8;
/* prepare the bits and mask */
shift_width = ce_info->lsb % 8;
- mask =
BIT(ce_info->width) - 1
;
+ mask =
(u8)(BIT(ce_info->width) - 1)
;
/* shift to correct alignment */
mask <<= shift_width;
/* shift to correct alignment */
mask <<= shift_width;