[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220211171053.5044fa8b@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Fri, 11 Feb 2022 17:10:53 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Hariprasad Kelam <hkelam@...vell.com>
Cc: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<davem@...emloft.net>, <sgoutham@...vell.com>,
<lcherian@...vell.com>, <gakula@...vell.com>, <jerinj@...vell.com>,
<sbhatta@...vell.com>
Subject: Re: [net-next PATCH V2] octeontx2-af: fix array bound error
On Fri, 11 Feb 2022 21:25:39 +0530 Hariprasad Kelam wrote:
> This patch fixes below error by using proper data type.
>
> drivers/net/ethernet/marvell/octeontx2/af/rpm.c: In function
> 'rpm_cfg_pfc_quanta_thresh':
> include/linux/find.h:40:23: error: array subscript 'long unsigned
> int[0]' is partly outside array bounds of 'u16[1]' {aka 'short unsigned
> int[1]'} [-Werror=array-bounds]
> 40 | val = *addr & GENMASK(size - 1, offset);
>
> Reported-by: Stephen Rothwell <sfr@...b.auug.org.au>
> Signed-off-by: Hariprasad Kelam <hkelam@...vell.com>
Applied, tnx!
Powered by blists - more mailing lists