[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <164622488602.2052779.922464247956478447.b4-ty@ellerman.id.au>
Date: Wed, 02 Mar 2022 23:41:26 +1100
From: Michael Ellerman <patch-notifications@...erman.id.au>
To: Paul Mackerras <paulus@...ba.org>,
Christophe Leroy <christophe.leroy@...roup.eu>,
Michael Ellerman <mpe@...erman.id.au>,
open list <linux-kernel@...r.kernel.org>,
"open list:LINUX FOR POWERPC 32-BIT AND 64-BIT"
<linuxppc-dev@...ts.ozlabs.org>,
Russell Currey <ruscur@...sell.cc>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Wedson Almeida Filho <wedsonaf@...gle.com>,
Guo Zhengkui <guozhengkui@...o.com>
Cc: kernel@...o.com
Subject: Re: [PATCH] powerpc/module_64: fix array_size.cocci warning
On Wed, 23 Feb 2022 15:54:23 +0800, Guo Zhengkui wrote:
> Fix following coccicheck warning:
> ./arch/powerpc/kernel/module_64.c:432:40-41: WARNING: Use ARRAY_SIZE.
>
> ARRAY_SIZE(arr) is a macro provided by the kernel. It makes sure that arr
> is an array, so it's safer than sizeof(arr) / sizeof(arr[0]) and more
> standard.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/module_64: fix array_size.cocci warning
https://git.kernel.org/powerpc/c/8a0edc72bec25fa62450bfef1a150483558e1289
cheers
Powered by blists - more mailing lists