Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Johannes Berg and committed by
John W. Linville
cc5569f6 8e8d4ff0

+2 -1
+1
drivers/net/wireless/ath/ath5k/Makefile
··· 10 10 ath5k-y += reset.o 11 11 ath5k-y += attach.o 12 12 ath5k-y += base.o 13 + CFLAGS_base.o += -I$(src) 13 14 ath5k-y += led.o 14 15 ath5k-y += rfkill.o 15 16 ath5k-y += ani.o
+1 -1
drivers/net/wireless/ath/ath5k/trace.h
··· 97 97 #if defined(CONFIG_ATH5K_TRACER) && !defined(__CHECKER__) 98 98 99 99 #undef TRACE_INCLUDE_PATH 100 - #define TRACE_INCLUDE_PATH ../../drivers/net/wireless/ath/ath5k 100 + #define TRACE_INCLUDE_PATH . 101 101 #undef TRACE_INCLUDE_FILE 102 102 #define TRACE_INCLUDE_FILE trace 103 103