diff options
author | Tejun Heo <tj@kernel.org> | 2010-03-23 15:55:39 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-03-30 22:02:21 +0900 |
commit | ed391f4ebf8f701d3566423ce8f17e614cde9806 (patch) | |
tree | 14f005217ad4de3cbe4d4d54d7e90cc27545b5ee /drivers/net/wireless/iwlwifi/iwl-devtrace.c | |
parent | 57f4c226d1e095a2db20c691c3cf089188fe1c5d (diff) | |
download | op-kernel-dev-ed391f4ebf8f701d3566423ce8f17e614cde9806.zip op-kernel-dev-ed391f4ebf8f701d3566423ce8f17e614cde9806.tar.gz |
iwlwifi: don't include iwl-dev.h from iwl-devtrace.h
iwl-devtrace.h is used to declare and define trace points and
including iwl-dev.h from the file, which in turn includes other
generic headers, can lead to problems like generating duplicate copies
of generic trace points depending on the order of includes. Don't
include iwl-dev.h from iwl-devtrace.h but include it from its users -
iwl-io.h and iwl-devtrace.c.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Cc: Zhu Yi <yi.zhu@intel.com>
Cc: Intel Linux Wireless <ilw@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-devtrace.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-devtrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-devtrace.c b/drivers/net/wireless/iwlwifi/iwl-devtrace.c index 36580d8..2ffc2ed 100644 --- a/drivers/net/wireless/iwlwifi/iwl-devtrace.c +++ b/drivers/net/wireless/iwlwifi/iwl-devtrace.c @@ -28,6 +28,8 @@ /* sparse doesn't like tracepoint macros */ #ifndef __CHECKER__ +#include "iwl-dev.h" + #define CREATE_TRACE_POINTS #include "iwl-devtrace.h" |