On Mon, Apr 11, 2022 at 10:49:39PM +0200, Philipp Hortmann wrote:
Replace macro VNSvOutPortB with iowrite8.I hate that GCC prints warnings for this. Useless. Horrible. But I
The name of macro and the arguments use CamelCase which
is not accepted by checkpatch.pl
For constants from 0 to below 0x80 the u8 cast was omitted.
For variables which are defined as unsigned char the u8 is omitted.
understand that GCC does and we haven't figured out how to disable it
or who needs to approve that.
But even then I still don't understand the casting in this patch.
Shouldn't the rule be to do the minimum work arounds to silence GCC?
My understand is that the the casting is only needed when you're dealing
with a bitwise negated constant. These are macros so the parameters
might be constant so basically any bitwise negate gets a cast.