git: kernel/drm: In asm/io.h, improve the iowriteN() macros.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Oct 28 11:57:21 PDT 2015


commit 076b4d5884e2f7615ff8f71f7dfab052d8ebf092
Author: Sascha Wildner <saw at online.de>
Date:   Wed Oct 28 19:56:31 2015 +0100

    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.

Summary of changes:
 sys/dev/drm/include/asm/io.h | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/076b4d5884e2f7615ff8f71f7dfab052d8ebf092


-- 
DragonFly BSD source repository



More information about the Commits mailing list