diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 13:41:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 13:41:37 -0400 |
commit | 250f6715a4112d6686670c5a62ceb9305da94616 (patch) | |
tree | ee1c9b41ed1fed8174efb312421902f19c877e8c /include/trace | |
parent | 11bcb32848ddb5ab28f09f142b625e2ba4d55c4c (diff) | |
parent | 313162d0b83836e2f57e51b9b8650fb4b9c396ea (diff) |
Merge tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Pull <linux/device.h> avoidance patches from Paul Gortmaker:
"Nearly every subsystem has some kind of header with a proto like:
void foo(struct device *dev);
and yet there is no reason for most of these guys to care about the
sub fields within the device struct. This allows us to significantly
reduce the scope of headers including headers. For this instance, a
reduction of about 40% is achieved by replacing the include with the
simple fact that the device is some kind of a struct.
Unlike the much larger module.h cleanup, this one is simply two
commits. One to fix the implicit <linux/device.h> users, and then one
to delete the device.h includes from the linux/include/ dir wherever
possible."
* tag 'device-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
device.h: audit and cleanup users in main include dir
device.h: cleanup users outside of linux/include (C files)
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/regmap.h | 2 | ||||
-rw-r--r-- | include/trace/events/rpm.h | 3 | ||||
-rw-r--r-- | include/trace/events/writeback.h | 1 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/events/regmap.h b/include/trace/events/regmap.h index d69738280ffa..41a7dbd570e2 100644 --- a/include/trace/events/regmap.h +++ b/include/trace/events/regmap.h | |||
@@ -4,10 +4,10 @@ | |||
4 | #if !defined(_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ) | 4 | #if !defined(_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ) |
5 | #define _TRACE_REGMAP_H | 5 | #define _TRACE_REGMAP_H |
6 | 6 | ||
7 | #include <linux/device.h> | ||
8 | #include <linux/ktime.h> | 7 | #include <linux/ktime.h> |
9 | #include <linux/tracepoint.h> | 8 | #include <linux/tracepoint.h> |
10 | 9 | ||
10 | struct device; | ||
11 | struct regmap; | 11 | struct regmap; |
12 | 12 | ||
13 | /* | 13 | /* |
diff --git a/include/trace/events/rpm.h b/include/trace/events/rpm.h index d62c558bf64b..33f85b68c22c 100644 --- a/include/trace/events/rpm.h +++ b/include/trace/events/rpm.h | |||
@@ -7,7 +7,8 @@ | |||
7 | 7 | ||
8 | #include <linux/ktime.h> | 8 | #include <linux/ktime.h> |
9 | #include <linux/tracepoint.h> | 9 | #include <linux/tracepoint.h> |
10 | #include <linux/device.h> | 10 | |
11 | struct device; | ||
11 | 12 | ||
12 | /* | 13 | /* |
13 | * The rpm_internal events are used for tracing some important | 14 | * The rpm_internal events are used for tracing some important |
diff --git a/include/trace/events/writeback.h b/include/trace/events/writeback.h index 5973410e8f8c..7b81887b023f 100644 --- a/include/trace/events/writeback.h +++ b/include/trace/events/writeback.h | |||
@@ -5,7 +5,6 @@ | |||
5 | #define _TRACE_WRITEBACK_H | 5 | #define _TRACE_WRITEBACK_H |
6 | 6 | ||
7 | #include <linux/backing-dev.h> | 7 | #include <linux/backing-dev.h> |
8 | #include <linux/device.h> | ||
9 | #include <linux/writeback.h> | 8 | #include <linux/writeback.h> |
10 | 9 | ||
11 | #define show_inode_state(state) \ | 10 | #define show_inode_state(state) \ |