[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220321081559.GF3293@kadam>
Date: Mon, 21 Mar 2022 11:15:59 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Martin Kaiser <martin@...ser.cx>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Larry Finger <Larry.Finger@...inger.net>,
Phillip Potter <phil@...lpotter.co.uk>,
Michael Straube <straube.linux@...il.com>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: r8188eu: remove local BIT macro
This version is better, thanks!
Reviewed-by: Dan Carpenter <dan.carpenter@...cle.com>
What the GCC devs should have done is run their checker on real code and
silence the common false positives. There are a few ways to do this.
You could make ~ a special case. They already ignore truncated sign
extension so they could equally well ignore truncation when all it's a
32 bits which are all set to 1. Probably the best answer is to do both.
Sure, you might miss some bugs that way, but anyone relying on GCC to
find *all* their bugs is a moron.
regards,
dan carpenter
Powered by blists - more mailing lists