]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Add missing patches for compat-wireless.
authortrikolon <trikolon@ipfire.org>
Wed, 29 Jul 2009 12:48:00 +0000 (12:48 +0000)
committertrikolon <trikolon@ipfire.org>
Wed, 29 Jul 2009 12:48:00 +0000 (12:48 +0000)
src/patches/compat-xen-1.patch [new file with mode: 0644]
src/patches/compat-xen-2.patch [new file with mode: 0644]

diff --git a/src/patches/compat-xen-1.patch b/src/patches/compat-xen-1.patch
new file mode 100644 (file)
index 0000000..e73fdda
--- /dev/null
@@ -0,0 +1,67 @@
+--- a/linux/include/linux/module.h     2009-07-27 09:17:57.000000000 +0000
++++ b/linux/include/linux/module.h     2009-07-27 09:39:26.000000000 +0000
+@@ -16,7 +16,6 @@
+ #include <linux/kobject.h>
+ #include <linux/moduleparam.h>
+ #include <linux/marker.h>
+-#include <linux/tracepoint.h>
+ #include <asm/local.h>
+ #include <asm/module.h>
+@@ -333,11 +332,6 @@
+       unsigned int num_markers;
+ #endif
+-#ifdef CONFIG_TRACEPOINTS
+-      struct tracepoint *tracepoints;
+-      unsigned int num_tracepoints;
+-#endif
+-
+ #ifdef CONFIG_MODULE_UNLOAD
+       /* What modules depend on me? */
+       struct list_head modules_which_use_me;
+@@ -349,8 +343,9 @@
+       void (*exit)(void);
+       /* Reference counts */
+-      struct module_ref *ref;
++      struct module_ref ref[NR_CPUS];
+ #endif
++
+ };
+ #ifndef MODULE_ARCH_INIT
+ #define MODULE_ARCH_INIT {}
+@@ -368,7 +363,6 @@
+ struct module *module_text_address(unsigned long addr);
+ struct module *__module_text_address(unsigned long addr);
+ int is_module_address(unsigned long addr);
+-const char *supported_printable(int taint);
+ /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
+    symnum out of range. */
+@@ -459,9 +453,6 @@
+ extern void module_update_markers(void);
+-extern void module_update_tracepoints(void);
+-extern int module_get_iter_tracepoints(struct tracepoint_iter *iter);
+-
+ #else /* !CONFIG_MODULES... */
+ #define EXPORT_SYMBOL(sym)
+ #define EXPORT_SYMBOL_GPL(sym)
+@@ -566,15 +557,6 @@
+ {
+ }
+-static inline void module_update_tracepoints(void)
+-{
+-}
+-
+-static inline int module_get_iter_tracepoints(struct tracepoint_iter *iter)
+-{
+-      return 0;
+-}
+-
+ #endif /* CONFIG_MODULES */
+ struct device_driver;
diff --git a/src/patches/compat-xen-2.patch b/src/patches/compat-xen-2.patch
new file mode 100644 (file)
index 0000000..ea5f416
--- /dev/null
@@ -0,0 +1,67 @@
+--- a/linux/include/linux/module.h     2009-07-27 09:39:26.000000000 +0000
++++ b/linux/include/linux/module.h     2009-07-27 09:17:57.000000000 +0000
+@@ -16,6 +16,7 @@
+ #include <linux/kobject.h>
+ #include <linux/moduleparam.h>
+ #include <linux/marker.h>
++#include <linux/tracepoint.h>
+ #include <asm/local.h>
+ #include <asm/module.h>
+@@ -332,6 +333,11 @@
+       unsigned int num_markers;
+ #endif
++#ifdef CONFIG_TRACEPOINTS
++      struct tracepoint *tracepoints;
++      unsigned int num_tracepoints;
++#endif
++
+ #ifdef CONFIG_MODULE_UNLOAD
+       /* What modules depend on me? */
+       struct list_head modules_which_use_me;
+@@ -343,9 +349,8 @@
+       void (*exit)(void);
+       /* Reference counts */
+-      struct module_ref ref[NR_CPUS];
++      struct module_ref *ref;
+ #endif
+-
+ };
+ #ifndef MODULE_ARCH_INIT
+ #define MODULE_ARCH_INIT {}
+@@ -363,6 +368,7 @@
+ struct module *module_text_address(unsigned long addr);
+ struct module *__module_text_address(unsigned long addr);
+ int is_module_address(unsigned long addr);
++const char *supported_printable(int taint);
+ /* Returns 0 and fills in value, defined and namebuf, or -ERANGE if
+    symnum out of range. */
+@@ -453,6 +459,9 @@
+ extern void module_update_markers(void);
++extern void module_update_tracepoints(void);
++extern int module_get_iter_tracepoints(struct tracepoint_iter *iter);
++
+ #else /* !CONFIG_MODULES... */
+ #define EXPORT_SYMBOL(sym)
+ #define EXPORT_SYMBOL_GPL(sym)
+@@ -557,6 +566,15 @@
+ {
+ }
++static inline void module_update_tracepoints(void)
++{
++}
++
++static inline int module_get_iter_tracepoints(struct tracepoint_iter *iter)
++{
++      return 0;
++}
++
+ #endif /* CONFIG_MODULES */
+ struct device_driver;