Skip to content

Commit 3815553

Browse files
Vadim Fedorenkokuba-moo
authored andcommitted
bnxt_en: silence clang build warning
Clang build brings a warning: ../drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:133:12: warning: comparison of distinct pointer types ('typeof (tmo_us) *' (aka 'unsigned int *') and 'typeof (65535) *' (aka 'int *')) [-Wcompare-distinct-pointer-types] 133 | tmo_us = min(tmo_us, BNXT_PTP_QTS_MAX_TMO_US); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix it by specifying proper type for BNXT_PTP_QTS_MAX_TMO_US. Fixes: 7de3c22 ("bnxt_en: Add a timeout parameter to bnxt_hwrm_port_ts_query()") Signed-off-by: Vadim Fedorenko <[email protected]> Reviewed-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f8beae0 commit 3815553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#define BNXT_PTP_DFLT_TX_TMO 1000 /* ms */
2626
#define BNXT_PTP_QTS_TIMEOUT 1000
27-
#define BNXT_PTP_QTS_MAX_TMO_US 65535
27+
#define BNXT_PTP_QTS_MAX_TMO_US 65535U
2828
#define BNXT_PTP_QTS_TX_ENABLES (PORT_TS_QUERY_REQ_ENABLES_PTP_SEQ_ID | \
2929
PORT_TS_QUERY_REQ_ENABLES_TS_REQ_TIMEOUT | \
3030
PORT_TS_QUERY_REQ_ENABLES_PTP_HDR_OFFSET)

0 commit comments

Comments
 (0)