Skip to content

Commit 9ef3699

Browse files
Igor Artemievjmberg-intel
authored andcommitted
wifi: cfg80211: fix the order of arguments for trace events of the tx_rx_evt class
The declarations of the tx_rx_evt class and the rdev_set_antenna event use the wrong order of arguments in the TP_ARGS macro. Fix the order of arguments in the TP_ARGS macro. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Igor Artemiev <Igor.A.Artemiev@mcst.ru> Link: https://msgid.link/20240405152431.270267-1-Igor.A.Artemiev@mcst.ru Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent d12b977 commit 9ef3699

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

net/wireless/trace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ TRACE_EVENT(rdev_return_void_tx_rx,
17581758

17591759
DECLARE_EVENT_CLASS(tx_rx_evt,
17601760
TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1761-
TP_ARGS(wiphy, rx, tx),
1761+
TP_ARGS(wiphy, tx, rx),
17621762
TP_STRUCT__entry(
17631763
WIPHY_ENTRY
17641764
__field(u32, tx)
@@ -1775,7 +1775,7 @@ DECLARE_EVENT_CLASS(tx_rx_evt,
17751775

17761776
DEFINE_EVENT(tx_rx_evt, rdev_set_antenna,
17771777
TP_PROTO(struct wiphy *wiphy, u32 tx, u32 rx),
1778-
TP_ARGS(wiphy, rx, tx)
1778+
TP_ARGS(wiphy, tx, rx)
17791779
);
17801780

17811781
DECLARE_EVENT_CLASS(wiphy_netdev_id_evt,

0 commit comments

Comments
 (0)