RE: [PATCH v2 2/3] bnx2x: remove unused variable 'cur_data_offset'
From: Prabhakar Kushwaha
Date: Mon Aug 02 2021 - 07:52:04 EST
> -----Original Message-----
> From: Bill Wendling <morbo@xxxxxxxxxx>
> Sent: Tuesday, July 27, 2021 1:49 AM
> To: linux-kernel@xxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-
> scsi@xxxxxxxxxxxxxxx; clang-built-linux@xxxxxxxxxxxxxxxx; Nathan Chancellor
> <nathan@xxxxxxxxxx>; Nick Desaulniers <ndesaulniers@xxxxxxxxxx>; Ariel Elior
> <aelior@xxxxxxxxxxx>; Sudarsana Reddy Kalluru <skalluru@xxxxxxxxxxx>; GR-
> everest-linux-l2 <GR-everest-linux-l2@xxxxxxxxxxx>; David S . Miller
> <davem@xxxxxxxxxxxxx>; Nilesh Javali <njavali@xxxxxxxxxxx>; GR-QLogic-
> Storage-Upstream <GR-QLogic-Storage-Upstream@xxxxxxxxxxx>; James E . J .
> Bottomley <jejb@xxxxxxxxxxxxx>; Martin K . Petersen
> <martin.petersen@xxxxxxxxxx>
> Cc: Bill Wendling <morbo@xxxxxxxxxx>
> Subject: [EXT] [PATCH v2 2/3] bnx2x: remove unused variable 'cur_data_offset'
>
> Fix the clang build warning:
>
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c:1862:13: error: variable
> 'cur_data_offset' set but not used [-Werror,-Wunused-but-set-variable]
> dma_addr_t cur_data_offset;
>
> Signed-off-by: Bill Wendling <morbo@xxxxxxxxxx>
> ---
Acked-by: Prabhakar Kushwaha <pkushwaha@xxxxxxxxxxx>