wifi: iwlwifi: suppress printf warnings in tracing
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Mar 2023 12:29:20 +0000 (13:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Mar 2023 12:30:08 +0000 (13:30 +0100)
This can't really be fixed due to the macro layout of
tracepoints (you'd need a special tracepoint macro for
when this is needed), so just suppress the warnings.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-devtrace.c

index 999b7c6..c190ec5 100644 (file)
@@ -12,6 +12,7 @@
 #include "iwl-trans.h"
 
 #define CREATE_TRACE_POINTS
+#pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
 #include "iwl-devtrace.h"
 
 EXPORT_TRACEPOINT_SYMBOL(iwlwifi_dev_ucode_event);