[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164850001114.15808.2888038241566176965.git-patchwork-notify@kernel.org>
Date: Mon, 28 Mar 2022 20:40:11 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Damien Le Moal <damien.lemoal@...nsource.wdc.com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, pavan.chebbi@...adcom.com
Subject: Re: [PATCH v3] net: bnxt_ptp: fix compilation error
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Mon, 28 Mar 2022 15:27:08 +0900 you wrote:
> The Broadcom bnxt_ptp driver does not compile with GCC 11.2.2 when
> CONFIG_WERROR is enabled. The following error is generated:
>
> drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c: In function ‘bnxt_ptp_enable’:
> drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:400:43: error: array
> subscript 255 is above array bounds of ‘struct pps_pin[4]’
> [-Werror=array-bounds]
> 400 | ptp->pps_info.pins[pin_id].event = BNXT_PPS_EVENT_EXTERNAL;
> | ~~~~~~~~~~~~~~~~~~^~~~~~~~
> In file included from drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.c:20:
> drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h:75:24: note: while
> referencing ‘pins’
> 75 | struct pps_pin pins[BNXT_MAX_TSIO_PINS];
> | ^~~~
> cc1: all warnings being treated as errors
>
> [...]
Here is the summary with links:
- [v3] net: bnxt_ptp: fix compilation error
https://git.kernel.org/netdev/net/c/dcf500065fab
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists