projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ad060e
)
net/mlx5: Use unsigned int bit instead of bool as a struct member
author
Roi Dayan
<roid@mellanox.com>
Wed, 27 Feb 2019 07:58:26 +0000
(09:58 +0200)
committer
Saeed Mahameed
<saeedm@mellanox.com>
Fri, 1 Mar 2019 20:04:15 +0000
(12:04 -0800)
This fix checkpatch check
CHECK: Avoid using bool structure members because of possible alignment
issues
Signed-off-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/lag.c
b/drivers/net/ethernet/mellanox/mlx5/core/lag.c
index 04c5aca7f8c54e35bd5f12d15a89049c6caa2b50..44ce4c36485f50a207a933b29f0af8f161456f75 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/lag.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/lag.c
@@
-52,7
+52,7
@@
struct lag_func {
struct lag_tracker {
enum netdev_lag_tx_type tx_type;
struct netdev_lag_lower_state_info netdev_state[MLX5_MAX_PORTS];
-
bool is_bonded
;
+
unsigned int is_bonded:1
;
};
/* LAG data of a ConnectX card.