[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0e420e0e-001e-4d0f-a192-a2daa4e789c6@kili.mountain>
Date: Wed, 19 Apr 2023 07:48:08 +0300
From: Dan Carpenter <error27@...il.com>
To: John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>
Cc: Christophe JAILLET <christophe.jaillet@...adoo.fr>,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Rich Felker <dalias@...c.org>, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-sh@...r.kernel.org,
Geert Uytterhoeven <geert@...ux-m68k.org>
Subject: Re: [PATCH RESEND] sh: sq: Use the bitmap API when applicable
On Tue, Apr 18, 2023 at 12:39:43PM +0300, Dan Carpenter wrote:
> On Tue, Apr 18, 2023 at 10:30:01AM +0300, Dan Carpenter wrote:
> > I have some unpublished Smatch stuff which tries to track "variable x
> > is in terms of bit units or byte units etc." I will try to make a
> > static checker rule for this.
>
> Attached. It prints a warning like this:
>
> drivers/net/ethernet/broadcom/cnic.c:667 cnic_init_id_tbl() warn: allocating units of longs instead of bytes 'test_var'
>
> I'll test it out tonight.
It didn't find any bugs. (Which is hardly surprising because most would
be caught in testing). No false postives either. I imagine that people
will introduce bugs like this in the future and now we'll see it when
that happens.
regards,
dan carpenter
Powered by blists - more mailing lists