kernel/drm: In asm/io.h, improve the iowriteN() macros.
authorSascha Wildner <saw@online.de>
Wed, 28 Oct 2015 18:56:31 +0000 (19:56 +0100)
committerSascha Wildner <saw@online.de>
Wed, 28 Oct 2015 18:56:31 +0000 (19:56 +0100)
commit076b4d5884e2f7615ff8f71f7dfab052d8ebf092
treecc5ab09c749b0e75e4e080182e0e3b8c291cbdbc
parent9e39c380dac9da2fdaaf4dfd373947bbd0b2b2d6
kernel/drm: In asm/io.h, improve the iowriteN() macros.

The main issue were the trailing semicolons in the definitions.
These prevent usage in braceless if/else, for example:

if (blah)
        iowrite32(...);
else
...

The resulting double semicolons after preprocessing lead to the
closing of the if (), resulting in an "'else' without a previous 'if'"
error.
sys/dev/drm/include/asm/io.h