]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: mm: Remove ; at the end of mm_printk()
authorJulien Grall <jgrall@amazon.com>
Thu, 19 Nov 2020 19:07:47 +0000 (19:07 +0000)
committerJulien Grall <jgrall@amazon.com>
Sat, 23 Jan 2021 11:41:45 +0000 (11:41 +0000)
The ; at the end of mm_printk() means the following code will not build
correctly:

if ( ... )
    mm_printk(...);
else
    ...

As we treat the macro as a function, we want to remove the ; at the end
of it.

Signed-off-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/mm.c

index 4dd886f7c80db4d2d7be4be4971b0c71ad183752..59f8a3f15fd1c4880cb2a91498122578f619b0dd 100644 (file)
@@ -59,7 +59,7 @@ mm_printk(const char *fmt, ...) {}
     {                                       \
         dprintk(XENLOG_ERR, fmt, ## args);  \
         WARN();                             \
-    } while (0);
+    } while (0)
 #endif
 
 /*