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)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 19 Mar 2021 19:34:19 +0000 (12:34 -0700)
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>
(cherry picked from commit bfe67a17d4df2efbedaaf5cfbadc8a8627debf5c)

xen/arch/arm/mm.c

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