From ff3b499a4c33a5799917b448bccd73c6728ef3ad Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 15 Jul 2016 01:23:38 +0000 Subject: [PATCH] scst: fix perf build git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6911 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index 6bd8a7407..d07230199 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -217,6 +217,13 @@ do { \ #define PRINT_BUFF_FLAG(flag, message, buff, len) \ ((void)(flag), (void)(message), (void)(buff), (void)(len)) +/* + * no_printk still calls its arguments, so we can not use it in perf build + * for TRACE_PR or debug_transport_id_to_initiator_name() is not going to + * be found. + */ +#define TRACE_PR(format, args...) do { } while (0) + #ifdef LOG_PREFIX #define PRINT_INFO(format, args...) \