Skip to content

Commit 9f49db6

Browse files
committed
eth: bnxt: fix warning for define in struct_group
Fix C=1 warning with sparse 0.6.4: drivers/net/ethernet/broadcom/bnxt/bnxt.c: note: in included file: drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: warning: directive in macro's argument list Don't put defines in a struct_group(). Reviewed-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 833c4a8 commit 9f49db6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ struct bnxt_cos2bw_cfg {
2727
u8 queue_id;
2828
__le32 min_bw;
2929
__le32 max_bw;
30-
#define BW_VALUE_UNIT_PERCENT1_100 (0x1UL << 29)
3130
u8 tsa;
3231
u8 pri_lvl;
3332
u8 bw_weight;
3433
);
34+
/* for min_bw / max_bw */
35+
#define BW_VALUE_UNIT_PERCENT1_100 (0x1UL << 29)
3536
u8 unused;
3637
};
3738

0 commit comments

Comments
 (0)