* [PATCH] iwlwifi: mei: fix linking when tracing is not enabled
@ 2021-12-01 11:34 Emmanuel Grumbach
2021-12-01 12:21 ` Kalle Valo
2021-12-05 11:55 ` Kalle Valo
0 siblings, 2 replies; 7+ messages in thread
From: Emmanuel Grumbach @ 2021-12-01 11:34 UTC (permalink / raw)
To: kvalo; +Cc: linux-wireless, luca, Emmanuel Grumbach, Jiri Slaby
I forgot to add stubs in case tracing is disabled.
Reported-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
---
.../net/wireless/intel/iwlwifi/mei/trace-data.h | 13 +++++++++++++
drivers/net/wireless/intel/iwlwifi/mei/trace.h | 14 ++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/drivers/net/wireless/intel/iwlwifi/mei/trace-data.h b/drivers/net/wireless/intel/iwlwifi/mei/trace-data.h
index 0a0078a79c7e..83639c6225ca 100644
--- a/drivers/net/wireless/intel/iwlwifi/mei/trace-data.h
+++ b/drivers/net/wireless/intel/iwlwifi/mei/trace-data.h
@@ -3,6 +3,12 @@
* Copyright(c) 2021 Intel Corporation
*/
+#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING)
+
+#define trace_iwlmei_sap_data(...)
+
+#else
+
#if !defined(__IWLWIFI_DEVICE_TRACE_IWLWIFI_SAP_DATA) || defined(TRACE_HEADER_MULTI_READ)
#ifndef __IWLWIFI_DEVICE_TRACE_IWLWIFI_SAP_DATA
@@ -60,6 +66,11 @@ TRACE_EVENT(iwlmei_sap_data,
__entry->trace_type, __get_dynamic_array_len(data))
);
+/*
+ * If you add something here, add a stub in case
+ * !defined(CONFIG_IWLWIFI_DEVICE_TRACING)
+ */
+
#endif /* __IWLWIFI_DEVICE_TRACE_IWLWIFI_SAP_DATA */
#undef TRACE_INCLUDE_PATH
@@ -67,3 +78,5 @@ TRACE_EVENT(iwlmei_sap_data,
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace-data
#include <trace/define_trace.h>
+
+#endif /* CONFIG_IWLWIFI_DEVICE_TRACING */
diff --git a/drivers/net/wireless/intel/iwlwifi/mei/trace.h b/drivers/net/wireless/intel/iwlwifi/mei/trace.h
index 6f673f2817ad..45ecb22ec84a 100644
--- a/drivers/net/wireless/intel/iwlwifi/mei/trace.h
+++ b/drivers/net/wireless/intel/iwlwifi/mei/trace.h
@@ -3,6 +3,13 @@
* Copyright(c) 2021 Intel Corporation
*/
+#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING)
+
+#define trace_iwlmei_sap_cmd(...)
+#define trace_iwlmei_me_msg(...)
+
+#else
+
#if !defined(__IWLWIFI_DEVICE_TRACE_IWLWIFI_SAP_CMD) || defined(TRACE_HEADER_MULTI_READ)
#define __IWLWIFI_DEVICE_TRACE_IWLWIFI_SAP_CMD
@@ -53,6 +60,11 @@ TRACE_EVENT(iwlmei_me_msg,
__entry->type, __entry->seq_num)
);
+/*
+ * If you add something here, add a stub in case
+ * !defined(CONFIG_IWLWIFI_DEVICE_TRACING)
+ */
+
#endif /* __IWLWIFI_DEVICE_TRACE_IWLWIFI_SAP_CMD */
#undef TRACE_INCLUDE_PATH
@@ -60,3 +72,5 @@ TRACE_EVENT(iwlmei_me_msg,
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace
#include <trace/define_trace.h>
+
+#endif /* CONFIG_IWLWIFI_DEVICE_TRACING */
--
2.25.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] iwlwifi: mei: fix linking when tracing is not enabled
2021-12-01 11:34 [PATCH] iwlwifi: mei: fix linking when tracing is not enabled Emmanuel Grumbach
@ 2021-12-01 12:21 ` Kalle Valo
2021-12-01 12:23 ` Grumbach, Emmanuel
2021-12-01 12:24 ` Coelho, Luciano
2021-12-05 11:55 ` Kalle Valo
1 sibling, 2 replies; 7+ messages in thread
From: Kalle Valo @ 2021-12-01 12:21 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: linux-wireless, luca, Jiri Slaby
Emmanuel Grumbach <emmanuel.grumbach@intel.com> writes:
> I forgot to add stubs in case tracing is disabled.
>
> Reported-by: Jiri Slaby <jirislaby@kernel.org>
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Fixes tag? I can add that.
Luca, as this fixes a build problem I think I should take this directly
to wireless-drivers-next. Ack?
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] iwlwifi: mei: fix linking when tracing is not enabled
2021-12-01 12:21 ` Kalle Valo
@ 2021-12-01 12:23 ` Grumbach, Emmanuel
2021-12-01 12:28 ` Kalle Valo
2021-12-01 12:24 ` Coelho, Luciano
1 sibling, 1 reply; 7+ messages in thread
From: Grumbach, Emmanuel @ 2021-12-01 12:23 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, luca, Jiri Slaby
>
> Emmanuel Grumbach <emmanuel.grumbach@intel.com> writes:
>
> > I forgot to add stubs in case tracing is disabled.
> >
> > Reported-by: Jiri Slaby <jirislaby@kernel.org>
> > Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
>
> Fixes tag? I can add that.
I skipped that because it's not merged in Linus's tree yet, so, no stable consideration.
I didn't know we need a Fixes tag for patches that are just in next as well.
>
> Luca, as this fixes a build problem I think I should take this directly to
> wireless-drivers-next. Ack?
>
> --
> https://patchwork.kernel.org/project/linux-wireless/list/
>
> https://wireless.wiki.kernel.org/en/developers/documentation/submittingp
> atches
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] iwlwifi: mei: fix linking when tracing is not enabled
2021-12-01 12:21 ` Kalle Valo
2021-12-01 12:23 ` Grumbach, Emmanuel
@ 2021-12-01 12:24 ` Coelho, Luciano
1 sibling, 0 replies; 7+ messages in thread
From: Coelho, Luciano @ 2021-12-01 12:24 UTC (permalink / raw)
To: kvalo, Grumbach, Emmanuel; +Cc: linux-wireless, jirislaby
On Wed, 2021-12-01 at 14:21 +0200, Kalle Valo wrote:
> Emmanuel Grumbach <emmanuel.grumbach@intel.com> writes:
>
> > I forgot to add stubs in case tracing is disabled.
> >
> > Reported-by: Jiri Slaby <jirislaby@kernel.org>
> > Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
>
> Fixes tag? I can add that.
>
> Luca, as this fixes a build problem I think I should take this directly
> to wireless-drivers-next. Ack?
Sure!
Acked-by: Luca Coelho <luciano.coelho@intel.com>
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] iwlwifi: mei: fix linking when tracing is not enabled
2021-12-01 12:23 ` Grumbach, Emmanuel
@ 2021-12-01 12:28 ` Kalle Valo
2021-12-01 12:32 ` Grumbach, Emmanuel
0 siblings, 1 reply; 7+ messages in thread
From: Kalle Valo @ 2021-12-01 12:28 UTC (permalink / raw)
To: Grumbach, Emmanuel; +Cc: linux-wireless, luca, Jiri Slaby
"Grumbach, Emmanuel" <emmanuel.grumbach@intel.com> writes:
>>
>> Emmanuel Grumbach <emmanuel.grumbach@intel.com> writes:
>>
>> > I forgot to add stubs in case tracing is disabled.
>> >
>> > Reported-by: Jiri Slaby <jirislaby@kernel.org>
>> > Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
>>
>> Fixes tag? I can add that.
>
> I skipped that because it's not merged in Linus's tree yet, so, no
> stable consideration.
> I didn't know we need a Fixes tag for patches that are just in next as well.
I don't rebase my trees and neither does Dave&Jakub, so the commit ids
won't change. What commit id should I use? I can then add the fixes tag.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH] iwlwifi: mei: fix linking when tracing is not enabled
2021-12-01 12:28 ` Kalle Valo
@ 2021-12-01 12:32 ` Grumbach, Emmanuel
0 siblings, 0 replies; 7+ messages in thread
From: Grumbach, Emmanuel @ 2021-12-01 12:32 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless, luca, Jiri Slaby
>
> >>
> >> Emmanuel Grumbach <emmanuel.grumbach@intel.com> writes:
> >>
> >> > I forgot to add stubs in case tracing is disabled.
> >> >
> >> > Reported-by: Jiri Slaby <jirislaby@kernel.org>
> >> > Signed-off-by: Emmanuel Grumbach
> <emmanuel.grumbach@intel.com>
> >>
> >> Fixes tag? I can add that.
> >
> > I skipped that because it's not merged in Linus's tree yet, so, no
> > stable consideration.
> > I didn't know we need a Fixes tag for patches that are just in next as well.
>
> I don't rebase my trees and neither does Dave&Jakub, so the commit ids
> won't change. What commit id should I use? I can then add the fixes tag.
2da4366f9e2c44afedec4acad65a99a3c7da1a35
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: iwlwifi: mei: fix linking when tracing is not enabled
2021-12-01 11:34 [PATCH] iwlwifi: mei: fix linking when tracing is not enabled Emmanuel Grumbach
2021-12-01 12:21 ` Kalle Valo
@ 2021-12-05 11:55 ` Kalle Valo
1 sibling, 0 replies; 7+ messages in thread
From: Kalle Valo @ 2021-12-05 11:55 UTC (permalink / raw)
To: Emmanuel Grumbach
Cc: kvalo, linux-wireless, luca, Emmanuel Grumbach, Jiri Slaby
Emmanuel Grumbach <emmanuel.grumbach@intel.com> wrote:
> I forgot to add stubs in case tracing is disabled which caused linking errors:
>
> ERROR: modpost: "__SCT__tp_func_iwlmei_sap_data" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__SCT__tp_func_iwlmei_me_msg" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__tracepoint_iwlmei_sap_cmd" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__tracepoint_iwlmei_me_msg" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__SCK__tp_func_iwlmei_me_msg" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__SCK__tp_func_iwlmei_sap_data" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__tracepoint_iwlmei_sap_data" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__SCT__tp_func_iwlmei_sap_cmd" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
> ERROR: modpost: "__SCK__tp_func_iwlmei_sap_cmd" [drivers/net/wireless/intel/iwlwifi/mei/iwlmei.ko] undefined!
>
> Fixes: 2da4366f9e2c ("iwlwifi: mei: add the driver to allow cooperation with CSME")
> Reported-by: Jiri Slaby <jirislaby@kernel.org>
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
> Acked-by: Luca Coelho <luciano.coelho@intel.com>
Patch applied to wireless-drivers-next.git, thanks.
fe6db7eda930 iwlwifi: mei: fix linking when tracing is not enabled
--
https://patchwork.kernel.org/project/linux-wireless/patch/20211201113411.130409-1-emmanuel.grumbach@intel.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-12-05 11:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 11:34 [PATCH] iwlwifi: mei: fix linking when tracing is not enabled Emmanuel Grumbach
2021-12-01 12:21 ` Kalle Valo
2021-12-01 12:23 ` Grumbach, Emmanuel
2021-12-01 12:28 ` Kalle Valo
2021-12-01 12:32 ` Grumbach, Emmanuel
2021-12-01 12:24 ` Coelho, Luciano
2021-12-05 11:55 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.