Commit 55106975 authored by Don Fry's avatar Don Fry Committed by John W. Linville

iwlagn: remove unnecessary type for tracing operations

The device tracing routines only use the priv pointer as an opaque
value.  Change from a typed iwl_priv pointer to a null pointer and
eliminate the need to include iwl_priv.h.  CMD_ASYNC is defined in
iwl_shared.h which is the only reason it is included.
Signed-off-by: default avatarDon Fry <donald.h.fry@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 56012409
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
/* sparse doesn't like tracepoint macros */ /* sparse doesn't like tracepoint macros */
#ifndef __CHECKER__ #ifndef __CHECKER__
#include "iwl-dev.h" #include "iwl-trans.h"
#define CREATE_TRACE_POINTS #define CREATE_TRACE_POINTS
#include "iwl-devtrace.h" #include "iwl-devtrace.h"
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#include <linux/tracepoint.h> #include <linux/tracepoint.h>
struct iwl_priv;
#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__) #if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
#undef TRACE_EVENT #undef TRACE_EVENT
...@@ -37,14 +36,14 @@ struct iwl_priv; ...@@ -37,14 +36,14 @@ struct iwl_priv;
static inline void trace_ ## name(proto) {} static inline void trace_ ## name(proto) {}
#endif #endif
#define PRIV_ENTRY __field(struct iwl_priv *, priv) #define PRIV_ENTRY __field(void *, priv)
#define PRIV_ASSIGN __entry->priv = priv #define PRIV_ASSIGN __entry->priv = priv
#undef TRACE_SYSTEM #undef TRACE_SYSTEM
#define TRACE_SYSTEM iwlwifi_io #define TRACE_SYSTEM iwlwifi_io
TRACE_EVENT(iwlwifi_dev_ioread32, TRACE_EVENT(iwlwifi_dev_ioread32,
TP_PROTO(struct iwl_priv *priv, u32 offs, u32 val), TP_PROTO(void *priv, u32 offs, u32 val),
TP_ARGS(priv, offs, val), TP_ARGS(priv, offs, val),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
...@@ -60,7 +59,7 @@ TRACE_EVENT(iwlwifi_dev_ioread32, ...@@ -60,7 +59,7 @@ TRACE_EVENT(iwlwifi_dev_ioread32,
); );
TRACE_EVENT(iwlwifi_dev_iowrite8, TRACE_EVENT(iwlwifi_dev_iowrite8,
TP_PROTO(struct iwl_priv *priv, u32 offs, u8 val), TP_PROTO(void *priv, u32 offs, u8 val),
TP_ARGS(priv, offs, val), TP_ARGS(priv, offs, val),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
...@@ -76,7 +75,7 @@ TRACE_EVENT(iwlwifi_dev_iowrite8, ...@@ -76,7 +75,7 @@ TRACE_EVENT(iwlwifi_dev_iowrite8,
); );
TRACE_EVENT(iwlwifi_dev_iowrite32, TRACE_EVENT(iwlwifi_dev_iowrite32,
TP_PROTO(struct iwl_priv *priv, u32 offs, u32 val), TP_PROTO(void *priv, u32 offs, u32 val),
TP_ARGS(priv, offs, val), TP_ARGS(priv, offs, val),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
...@@ -95,7 +94,7 @@ TRACE_EVENT(iwlwifi_dev_iowrite32, ...@@ -95,7 +94,7 @@ TRACE_EVENT(iwlwifi_dev_iowrite32,
#define TRACE_SYSTEM iwlwifi_ucode #define TRACE_SYSTEM iwlwifi_ucode
TRACE_EVENT(iwlwifi_dev_ucode_cont_event, TRACE_EVENT(iwlwifi_dev_ucode_cont_event,
TP_PROTO(struct iwl_priv *priv, u32 time, u32 data, u32 ev), TP_PROTO(void *priv, u32 time, u32 data, u32 ev),
TP_ARGS(priv, time, data, ev), TP_ARGS(priv, time, data, ev),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
...@@ -115,7 +114,7 @@ TRACE_EVENT(iwlwifi_dev_ucode_cont_event, ...@@ -115,7 +114,7 @@ TRACE_EVENT(iwlwifi_dev_ucode_cont_event,
); );
TRACE_EVENT(iwlwifi_dev_ucode_wrap_event, TRACE_EVENT(iwlwifi_dev_ucode_wrap_event,
TP_PROTO(struct iwl_priv *priv, u32 wraps, u32 n_entry, u32 p_entry), TP_PROTO(void *priv, u32 wraps, u32 n_entry, u32 p_entry),
TP_ARGS(priv, wraps, n_entry, p_entry), TP_ARGS(priv, wraps, n_entry, p_entry),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
...@@ -139,7 +138,7 @@ TRACE_EVENT(iwlwifi_dev_ucode_wrap_event, ...@@ -139,7 +138,7 @@ TRACE_EVENT(iwlwifi_dev_ucode_wrap_event,
#define TRACE_SYSTEM iwlwifi #define TRACE_SYSTEM iwlwifi
TRACE_EVENT(iwlwifi_dev_hcmd, TRACE_EVENT(iwlwifi_dev_hcmd,
TP_PROTO(struct iwl_priv *priv, u32 flags, TP_PROTO(void *priv, u32 flags,
const void *hcmd0, size_t len0, const void *hcmd0, size_t len0,
const void *hcmd1, size_t len1, const void *hcmd1, size_t len1,
const void *hcmd2, size_t len2), const void *hcmd2, size_t len2),
...@@ -164,7 +163,7 @@ TRACE_EVENT(iwlwifi_dev_hcmd, ...@@ -164,7 +163,7 @@ TRACE_EVENT(iwlwifi_dev_hcmd,
); );
TRACE_EVENT(iwlwifi_dev_rx, TRACE_EVENT(iwlwifi_dev_rx,
TP_PROTO(struct iwl_priv *priv, void *rxbuf, size_t len), TP_PROTO(void *priv, void *rxbuf, size_t len),
TP_ARGS(priv, rxbuf, len), TP_ARGS(priv, rxbuf, len),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
...@@ -179,7 +178,7 @@ TRACE_EVENT(iwlwifi_dev_rx, ...@@ -179,7 +178,7 @@ TRACE_EVENT(iwlwifi_dev_rx,
); );
TRACE_EVENT(iwlwifi_dev_tx, TRACE_EVENT(iwlwifi_dev_tx,
TP_PROTO(struct iwl_priv *priv, void *tfd, size_t tfdlen, TP_PROTO(void *priv, void *tfd, size_t tfdlen,
void *buf0, size_t buf0_len, void *buf0, size_t buf0_len,
void *buf1, size_t buf1_len), void *buf1, size_t buf1_len),
TP_ARGS(priv, tfd, tfdlen, buf0, buf0_len, buf1, buf1_len), TP_ARGS(priv, tfd, tfdlen, buf0, buf0_len, buf1, buf1_len),
...@@ -211,7 +210,7 @@ TRACE_EVENT(iwlwifi_dev_tx, ...@@ -211,7 +210,7 @@ TRACE_EVENT(iwlwifi_dev_tx,
); );
TRACE_EVENT(iwlwifi_dev_ucode_error, TRACE_EVENT(iwlwifi_dev_ucode_error,
TP_PROTO(struct iwl_priv *priv, u32 desc, u32 tsf_low, TP_PROTO(void *priv, u32 desc, u32 tsf_low,
u32 data1, u32 data2, u32 line, u32 blink1, u32 data1, u32 data2, u32 line, u32 blink1,
u32 blink2, u32 ilink1, u32 ilink2, u32 bcon_time, u32 blink2, u32 ilink1, u32 ilink2, u32 bcon_time,
u32 gp1, u32 gp2, u32 gp3, u32 ucode_ver, u32 hw_ver, u32 gp1, u32 gp2, u32 gp3, u32 ucode_ver, u32 hw_ver,
...@@ -271,7 +270,7 @@ TRACE_EVENT(iwlwifi_dev_ucode_error, ...@@ -271,7 +270,7 @@ TRACE_EVENT(iwlwifi_dev_ucode_error,
); );
TRACE_EVENT(iwlwifi_dev_ucode_event, TRACE_EVENT(iwlwifi_dev_ucode_event,
TP_PROTO(struct iwl_priv *priv, u32 time, u32 data, u32 ev), TP_PROTO(void *priv, u32 time, u32 data, u32 ev),
TP_ARGS(priv, time, data, ev), TP_ARGS(priv, time, data, ev),
TP_STRUCT__entry( TP_STRUCT__entry(
PRIV_ENTRY PRIV_ENTRY
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment