diff options
| author | Vadim Fedorenko <[email protected]> | 2024-05-09 15:18:33 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-05-11 01:16:35 +0000 |
| commit | 38155539a16ebb79dbb7a2e058138d70be68d245 (patch) | |
| tree | 413a8969ca3490b1401de19bf627670b74948b82 /rust/helpers.c | |
| parent | Merge tag 'gtp-24-05-07' of git://git.kernel.org/pub/scm/linux/kernel/git/pab... (diff) | |
| download | kernel-38155539a16ebb79dbb7a2e058138d70be68d245.tar.gz kernel-38155539a16ebb79dbb7a2e058138d70be68d245.zip | |
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 <[email protected]>
Reviewed-by: Michael Chan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
