IB/hfi1: Remove inline from trace functions
Subsystems (2)
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
@@ -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
A message that is not in the archive (sent off-list or not yet received): 20150813200524.28650.91753.stgit-K+u1se/DcYrLESAwzcoQNrvm/[email protected]
PiBTdWJqZWN0OiBbUEFUQ0ggdjJdIElCL2hmaTE6IFJlbW92ZSBpbmxpbmUgZnJvbSB0cmFjZSBm dW5jdGlvbnMNCj4gDQoNCnYyIGFkanVzdHMgc29tZSBvZiB0aGUgY29tbWVudCB0ZXh0IHRvIGNs YXJpZnkgYWRkaW5nIG5ldyB0cmFjZXMuDQo=
--
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
Quoted 7 lines · Mike Marciniszyn
From: Dennis Dalessandro <[email protected]>
Inline in trace functions causes the following build error when
CONFIG_OPTIMIZE_INLININGis 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.htmlThis patch converts to a non-inline version of the hfi1 trace functions
Reviewed-by Jubin John <[email protected]>Reviewed-by Mike Marciniszyn <[email protected]>Signed-off-by Dennis Dalessandro <[email protected]>
This has been added to the hfi1 branch.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD