From: trikolon Date: Wed, 29 Jul 2009 12:48:00 +0000 (+0000) Subject: Add missing patches for compat-wireless. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=e099ab40083308028fa58d0da692e55fbdfcf07f;hp=93a17e543fc240becff107b73a85b64e3a41b359 Add missing patches for compat-wireless. --- diff --git a/src/patches/compat-xen-1.patch b/src/patches/compat-xen-1.patch new file mode 100644 index 000000000..e73fddaad --- /dev/null +++ b/src/patches/compat-xen-1.patch @@ -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 + #include + #include +-#include + #include + + #include +@@ -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 index 000000000..ea5f41632 --- /dev/null +++ b/src/patches/compat-xen-2.patch @@ -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 + #include + #include ++#include + #include + + #include +@@ -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;