Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

Commit

Permalink
iwlwifi: don't include iwl-dev.h from iwl-devtrace.h
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Reinette Chatre <[email protected]>
Cc: Zhu Yi <[email protected]>
Cc: Intel Linux Wireless <[email protected]>
Cc: Ingo Molnar <[email protected]>
  • Loading branch information
htejun committed Mar 30, 2010
1 parent 57f4c22 commit ed391f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/net/wireless/iwlwifi/iwl-devtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

/* sparse doesn't like tracepoint macros */
#ifndef __CHECKER__
#include "iwl-dev.h"

#define CREATE_TRACE_POINTS
#include "iwl-devtrace.h"

Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/iwlwifi/iwl-devtrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#define __IWLWIFI_DEVICE_TRACE

#include <linux/tracepoint.h>
#include "iwl-dev.h"

#if !defined(CONFIG_IWLWIFI_DEVICE_TRACING) || defined(__CHECKER__)
#undef TRACE_EVENT
Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/iwlwifi/iwl-io.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

#include <linux/io.h>

#include "iwl-dev.h"
#include "iwl-debug.h"
#include "iwl-devtrace.h"

Expand Down

0 comments on commit ed391f4

Please sign in to comment.