Re: [PATCH] driver : edac : Fix warning using plain integer as NULL

From: Abhinav Singh
Date: Mon Nov 27 2023 - 13:23:13 EST


On 11/27/23 22:44, Borislav Petkov wrote:
On Fri, Nov 10, 2023 at 02:51:57AM +0530, Abhinav Singh wrote:
Sparse static analysis tools generate a warning with this message
"Using plain integer as NULL pointer". In this case this warning is
being shown because we are trying to initialize pointer to NULL using
integer value 0.

And that is a problem because?


Hello, thanks for reviewing this. As of now this is only a warning issue in kernel. I saw this post by linus https://www.spinics.net/lists/linux-sparse/msg10066.html and thought of submitting a patch. Also a similar patch of mine got accepted https://www.mail-archive.com/linux-kernel@xxxxxxxxxxxxxxx/msg2560740.html, so thought about opening this one as well.

Thank You,
Abhinav Singh