Hi,Ok then, just to be consistent with the rest of the driver.
You could probably have a comment here explaining the magic belowMakes sense.
(just like in the commit message to ease the task of understanding
while reading the code why 2 of 8 bytes of the EDID header is checked
and why it is all needed). Of course one can use git blame... Up to you
Why is that a problem? gcc uses bytes when doing pointer arithmetic+ if (readb(bochs->mmio + 0) != 0x00 ||bochs->mmio is defined as "void __iomemÂÂ *mmio;". Can we please avoid
+ readb(bochs->mmio + 1) != 0xff)
void pointer arithmetic here?
with void pointers (even though it is undefined in the C standard),
and as far I know the linux kernel depends on that behavior anyway.
Also the driver already does it everywhere.
cheers,
Gerd