mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net/mlx5: Address static checker warnings on non-constant initializers
Address these sparse warnings on drivers/net/ethernet/mellanox/mlx5 [..]/core/diag/fs_tracepoint.c:99:53: warning: non-constant initializer for static object [..]/core/diag/fs_tracepoint.c:102:53: warning: non-constant initializer for static object etc Signed-off-by: Or Gerlitz <[email protected]> Reviewed-by: Matan Barak <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
This commit is contained in:
parent
9afe9a5353
commit
4f5c02f949
1 changed files with 4 additions and 4 deletions
|
|
@ -96,10 +96,10 @@ static void print_lyr_2_4_hdrs(struct trace_seq *p,
|
|||
"%pI4");
|
||||
} else if (ethertype.v == ETH_P_IPV6) {
|
||||
static const struct in6_addr full_ones = {
|
||||
.in6_u.u6_addr32 = {htonl(0xffffffff),
|
||||
htonl(0xffffffff),
|
||||
htonl(0xffffffff),
|
||||
htonl(0xffffffff)},
|
||||
.in6_u.u6_addr32 = {__constant_htonl(0xffffffff),
|
||||
__constant_htonl(0xffffffff),
|
||||
__constant_htonl(0xffffffff),
|
||||
__constant_htonl(0xffffffff)},
|
||||
};
|
||||
DECLARE_MASK_VAL(struct in6_addr, src_ipv6);
|
||||
DECLARE_MASK_VAL(struct in6_addr, dst_ipv6);
|
||||
|
|
|
|||
Loading…
Reference in a new issue