/[pkg-src]/trunk/kernel26-alx/patches-2.6.33-r3/0302-2.6.33-fix-module-export-inport-functions-amd64-compat.patch |
Contents of /trunk/kernel26-alx/patches-2.6.33-r3/0302-2.6.33-fix-module-export-inport-functions-amd64-compat.patch
Parent Directory | Revision Log
Revision 1260 -
(show annotations)
(download)
Wed Jan 26 11:54:32 2011 UTC (13 years, 8 months ago) by niro
File size: 1231 byte(s)
Wed Jan 26 11:54:32 2011 UTC (13 years, 8 months ago) by niro
File size: 1231 byte(s)
2.6.33-alx-r3: always enable kms support at runtime for xorg-server-1.9.x
1 | From 456d96a8165788cfd1e593fb7540f4a58fe2f46b Mon Sep 17 00:00:00 2001 |
2 | From: Tim Gardner <tim.gardner@canonical.com> |
3 | Date: Wed, 7 Oct 2009 08:27:43 -0600 |
4 | Subject: [PATCH 1/1] UBUNTU: SAUCE: Fix MODULE_IMPORT/MODULE_EXPORT |
5 | |
6 | BugLink: http://bugs.launchpad.net/bugs/430694 |
7 | |
8 | The first incantation didn't work for amd64. |
9 | |
10 | Signed-off-by: Tim Gardner <tim.gardner@canonical.com> |
11 | --- |
12 | include/linux/module.h | 5 +++-- |
13 | 1 files changed, 3 insertions(+), 2 deletions(-) |
14 | |
15 | diff --git a/include/linux/module.h b/include/linux/module.h |
16 | index 49f53f2..c7ea2da 100644 |
17 | --- a/include/linux/module.h |
18 | +++ b/include/linux/module.h |
19 | @@ -725,7 +725,8 @@ static inline void module_bug_cleanup(struct module *mod) {} |
20 | * and modprobe do the heavy lifting of loading the modules in the |
21 | * correct dependency order. |
22 | */ |
23 | -#define MODULE_EXPORT(mod_name) int mod_name; EXPORT_SYMBOL(mod_name); |
24 | -#define MODULE_IMPORT(mod_name) extern int mod_name; |
25 | +#define MODULE_EXPORT(mod_name) int sym_link_##mod_name; EXPORT_SYMBOL(sym_link_##mod_name); |
26 | +#define MODULE_IMPORT(mod_name) extern int sym_link_##mod_name; int func_sym_link_##mod_name(void) {sym_link_##mod_name=1;}; EXPORT_SYMBOL(func_sym_link_##mod_name); |
27 | + |
28 | |
29 | #endif /* _LINUX_MODULE_H */ |
30 | -- |
31 | 1.7.0.4 |
32 |