Skip to content

Commit cc5569f

Browse files
jmberg-intellinvjw
authored andcommitted
ath5k: use more idiomatic tracing include style
Pretty much everywhere that uses a trace definition header that's not in include/trace/events/ uses the make system for the include path rather than putting it into the sources, so do that in ath5k as well. This came up during backporting work (where this is required), but since all other drivers do it this way upstream it seemed applicable. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 8e8d4ff commit cc5569f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/net/wireless/ath/ath5k/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ath5k-y += phy.o
1010
ath5k-y += reset.o
1111
ath5k-y += attach.o
1212
ath5k-y += base.o
13+
CFLAGS_base.o += -I$(src)
1314
ath5k-y += led.o
1415
ath5k-y += rfkill.o
1516
ath5k-y += ani.o

‎drivers/net/wireless/ath/ath5k/trace.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ TRACE_EVENT(ath5k_tx_complete,
9797
#if defined(CONFIG_ATH5K_TRACER) && !defined(__CHECKER__)
9898

9999
#undef TRACE_INCLUDE_PATH
100-
#define TRACE_INCLUDE_PATH ../../drivers/net/wireless/ath/ath5k
100+
#define TRACE_INCLUDE_PATH .
101101
#undef TRACE_INCLUDE_FILE
102102
#define TRACE_INCLUDE_FILE trace
103103

0 commit comments

Comments
 (0)