From 970c2c2ed3ae8f87cf4d6cbbb6c7733eba82e55a Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 16 Feb 2016 19:19:29 +0000 Subject: [PATCH] scst_debug.h: Kernel v4.5 build fix git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6795 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index 5cb93fe66..18a052c98 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -245,7 +245,7 @@ do { \ #define TRACING_MINOR() (false) #define TRACE(trace, format, args...) \ - ((void)(trace), no_printk(format, ##args)) + do { (void)(trace); no_printk(format, ##args); } while (0) #define PRINT_BUFFER(message, buff, len) \ ((void)(message), (void)(buff), (void)(len)) #define PRINT_BUFF_FLAG(flag, message, buff, len) \ @@ -391,7 +391,7 @@ do { \ #define TRACE_SG(format, args...) no_printk(format, ##args) #define TRACE_DBG(format, args...) no_printk(format, ##args) #define TRACE_DBG_FLAG(flag, format, args...) \ - ((void)(flag), no_printk(format, ##args)) + do { (void)(flag); no_printk(format, ##args); } while (0) #define TRACE_DBG_SPECIAL(format, args...) no_printk(format, ##args) #define TRACE_MGMT_DBG(format, args...) no_printk(format, ##args) #define TRACE_MGMT_DBG_SPECIAL(format, args...) no_printk(format, ##args)