lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACKFLikp26CsUcv2-cf9DkBgNAbMxoiw32cQ63FQi8T1TB1XVA@mail.gmail.com>
Date: Thu, 9 May 2024 09:06:36 -0700
From: Michael Chan <michael.chan@...adcom.com>
To: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
Cc: Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org
Subject: Re: [PATCH net] bnxt_en: silence clang build warning

On Thu, May 9, 2024 at 8:16 AM Vadim Fedorenko
<vadim.fedorenko@...ux.dev> wrote:
>
> 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@...ux.dev>

Thanks.
Reviewed-by: Michael Chan <michael.chan@...adcom.com>

Download attachment "smime.p7s" of type "application/pkcs7-signature" (4209 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ