[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen stable-4.14] xen/arm: mm: Remove ; at the end of mm_printk()



commit b22b824f2eac90e1f2cac1df407c2e853aa997ed
Author:     Julien Grall <jgrall@xxxxxxxxxx>
AuthorDate: Thu Nov 19 19:07:47 2020 +0000
Commit:     Stefano Stabellini <sstabellini@xxxxxxxxxx>
CommitDate: Fri Mar 19 12:34:19 2021 -0700

    xen/arm: mm: Remove ; at the end of mm_printk()
    
    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@xxxxxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
    Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
    (cherry picked from commit bfe67a17d4df2efbedaaf5cfbadc8a8627debf5c)
---
 xen/arch/arm/mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
index 4aba9015b9..38200e2533 100644
--- a/xen/arch/arm/mm.c
+++ b/xen/arch/arm/mm.c
@@ -59,7 +59,7 @@ mm_printk(const char *fmt, ...) {}
     {                                       \
         dprintk(XENLOG_ERR, fmt, ## args);  \
         WARN();                             \
-    } while (0);
+    } while (0)
 #endif
 
 /*
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.14



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.