Skip to contentSkip to conversation

IB/hfi1: Remove inline from trace functions

PATCH In review Mike Marciniszyn 2 participants 3 messages Aug 13, 2015 – Aug 15, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 IB/hfi1: Remove inline from trace functions

From: Dennis Dalessandro <[email protected]>

Inline in trace functions causes the following build error when CONFIG_OPTIMIZE_INLINING is not defined in the kernel config:
error: function can never be inlined because it uses variable argument lists

Reported by 0-day build:
https://lists.01.org/pipermail/kbuild-all/2015-August/011215.html

This patch converts to a non-inline version of the hfi1 trace functions

---
 drivers/staging/hfi1/trace.c |   15 ++++++++++-
 drivers/staging/hfi1/trace.h |   56 +++++++++++++++++-------------------------
 2 files changed, 35 insertions(+), 36 deletions(-)
drivers/staging/hfi1/trace.c +13 -2
index afbb212..ea95591 100644
@@ -48,7 +48,6 @@
  *
  */
 #define CREATE_TRACE_POINTS
-#define HFI1_TRACE_DO_NOT_CREATE_INLINES
 #include "trace.h"
 
 u8 ibhdr_exhdr_len(struct hfi1_ib_header *hdr)
@@ -208,4 +207,16 @@ const char *print_u64_array(
 	return ret;
 }
 
-#undef HFI1_TRACE_DO_NOT_CREATE_INLINES
+__hfi1_trace_fn(PKT);
+__hfi1_trace_fn(PROC);
+__hfi1_trace_fn(SDMA);
+__hfi1_trace_fn(LINKVERB);
+__hfi1_trace_fn(DEBUG);
+__hfi1_trace_fn(SNOOP);
+__hfi1_trace_fn(CNTR);
+__hfi1_trace_fn(PIO);
+__hfi1_trace_fn(DC8051);
+__hfi1_trace_fn(FIRMWARE);
+__hfi1_trace_fn(RCVCTRL);
+__hfi1_trace_fn(TID);
+
drivers/staging/hfi1/trace.h +22 -34

80 lines not on this page · raw message

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to a message not in the archive
Quoted 7 lines · Mike Marciniszyn

From: Dennis Dalessandro <[email protected]>

Inline in trace functions causes the following build error when CONFIG_OPTIMIZE_INLINING is not defined in the kernel config:
error: function can never be inlined because it uses variable argument lists

Quoted 8 lines

Reported by 0-day build:
https://lists.01.org/pipermail/kbuild-all/2015-August/011215.html

This patch converts to a non-inline version of the hfi1 trace functions

This has been added to the hfi1 branch.

Signature · 2 lines
Doug Ledford <[email protected]>
              GPG KeyID: 0E572FDD