[2.6.22-rc1-mm1 PATCH] fix missing '}' in new ratelimit macros

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

 



dm-add-ratelimit-logging-macros-fix.patch
 brassow

Index: linux-2.6.22-rc1-mm1/drivers/md/dm.h
===================================================================
--- linux-2.6.22-rc1-mm1.orig/drivers/md/dm.h
+++ linux-2.6.22-rc1-mm1/drivers/md/dm.h
@@ -25,7 +25,7 @@
 		if (printk_ratelimit())	\
 			printk(KERN_ERR DM_NAME ": " DM_MSG_PREFIX ": " \
 			       f "\n", ## arg); \
-	while (0)
+	} while (0)
 
 #define DMWARN(f, arg...) \
 	printk(KERN_WARNING DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)
@@ -34,7 +34,7 @@
 		if (printk_ratelimit())	\
 			printk(KERN_WARNING DM_NAME ": " DM_MSG_PREFIX ": " \
 			       f "\n", ## arg); \
-	while (0)
+	} while (0)
 
 #define DMINFO(f, arg...) \
 	printk(KERN_INFO DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg)
@@ -43,7 +43,7 @@
 		if (printk_ratelimit())	\
 			printk(KERN_INFO DM_NAME ": " DM_MSG_PREFIX ": " f \
 			       "\n", ## arg); \
-	while (0)
+	} while (0)
 
 #ifdef CONFIG_DM_DEBUG
 #  define DMDEBUG(f, arg...) \
@@ -53,7 +53,7 @@
 		if (printk_ratelimit())	\
 			printk(KERN_DEBUG DM_NAME ": " DM_MSG_PREFIX ": " f \
 			       "\n", ## arg); \
-	while (0)
+	} while (0)
 #else
 #  define DMDEBUG(f, arg...) do {} while (0)
 #  define DMDEBUG_LIMIT(f, arg...) do {} while (0)


--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux