* [PATCH 1/2] compat: add device_create() implementation for Linux 2.6.26 and older
@ 2010-04-06 22:41 Pavel Roskin
2010-04-06 22:41 ` [PATCH 2/2] compat: add stub headers linux/tracepoint.h and trace/define_trace.h Pavel Roskin
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2010-04-06 22:41 UTC (permalink / raw)
To: Luis R. Rodriguez, linux-wireless
This should make 25-device_create.patch in compat-wireless unnecessary.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
include/linux/compat-2.6.27.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/linux/compat-2.6.27.h b/include/linux/compat-2.6.27.h
index e27115b..d667222 100644
--- a/include/linux/compat-2.6.27.h
+++ b/include/linux/compat-2.6.27.h
@@ -228,6 +228,14 @@ static inline void debugfs_remove_recursive(struct dentry *dentry)
{ }
#endif
+#define device_create(cls, parent, devt, drvdata, fmt, ...) \
+({ \
+ struct device *_dev; \
+ _dev = (device_create)(cls, parent, devt, fmt, __VA_ARGS__); \
+ dev_set_drvdata(_dev, drvdata); \
+ _dev; \
+})
+
#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)) */
#endif /* LINUX_26_27_COMPAT_H */
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] compat: add stub headers linux/tracepoint.h and trace/define_trace.h
2010-04-06 22:41 [PATCH 1/2] compat: add device_create() implementation for Linux 2.6.26 and older Pavel Roskin
@ 2010-04-06 22:41 ` Pavel Roskin
2010-04-06 23:34 ` Luis R. Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Roskin @ 2010-04-06 22:41 UTC (permalink / raw)
To: Luis R. Rodriguez, linux-wireless
This should make 13-trace.patch in compat-wireless unnecessary.
Signed-off-by: Pavel Roskin <proski@gnu.org>
---
include/linux/tracepoint.h | 8 ++++++++
include/trace/define_trace.h | 8 ++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
create mode 100644 include/linux/tracepoint.h
create mode 100644 include/trace/define_trace.h
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
new file mode 100644
index 0000000..7484716
--- /dev/null
+++ b/include/linux/tracepoint.h
@@ -0,0 +1,8 @@
+#ifndef _COMPAT_LINUX_TRACEPOINT_H
+#define _COMPAT_LINUX_TRACEPOINT_H 1
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
+#include_next <linux/tracepoint.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */
+
+#endif /* _COMPAT_LINUX_TRACEPOINT_H */
diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h
new file mode 100644
index 0000000..f5c01de
--- /dev/null
+++ b/include/trace/define_trace.h
@@ -0,0 +1,8 @@
+#ifndef _COMPAT_TRACE_DEFINE_TRACE_H
+#define _COMPAT_TRACE_DEFINE_TRACE_H 1
+
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
+#include_next <trace/define_trace.h>
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
+
+#endif /* _COMPAT_TRACE_DEFINE_TRACE_H */
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] compat: add stub headers linux/tracepoint.h and trace/define_trace.h
2010-04-06 22:41 ` [PATCH 2/2] compat: add stub headers linux/tracepoint.h and trace/define_trace.h Pavel Roskin
@ 2010-04-06 23:34 ` Luis R. Rodriguez
0 siblings, 0 replies; 3+ messages in thread
From: Luis R. Rodriguez @ 2010-04-06 23:34 UTC (permalink / raw)
To: Pavel Roskin; +Cc: linux-wireless
On Tue, Apr 6, 2010 at 3:41 PM, Pavel Roskin <proski@gnu.org> wrote:
> This should make 13-trace.patch in compat-wireless unnecessary.
Thanks! Applied both.
Luis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-06 23:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-06 22:41 [PATCH 1/2] compat: add device_create() implementation for Linux 2.6.26 and older Pavel Roskin
2010-04-06 22:41 ` [PATCH 2/2] compat: add stub headers linux/tracepoint.h and trace/define_trace.h Pavel Roskin
2010-04-06 23:34 ` Luis R. Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).