diff options
author | Vadim Fedorenko <vadim.fedorenko@linux.dev> | 2024-05-09 18:18:33 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-11 04:16:35 +0300 |
commit | 38155539a16ebb79dbb7a2e058138d70be68d245 (patch) | |
tree | 413a8969ca3490b1401de19bf627670b74948b82 /ipc | |
parent | f8beae078c82abde57fed4a5be0bbc3579b59ad0 (diff) | |
download | linux-38155539a16ebb79dbb7a2e058138d70be68d245.tar.xz |
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: 7de3c2218eed ("bnxt_en: Add a timeout parameter to bnxt_hwrm_port_ts_query()")
Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20240509151833.12579-1-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions