Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-wireless/madwifi-ng/files: madwifi-ng-0.9.4-request_module-build.patch
Date: Sat, 31 Jan 2009 16:15:08
Message-Id: E1LTIUs-0004dK-Iw@stork.gentoo.org
1 pva 09/01/31 16:15:06
2
3 Added: madwifi-ng-0.9.4-request_module-build.patch
4 Log:
5 Fixed build problem with gcc-4.3, bug #256669, thank cilly for report and fix.
6 (Portage version: 2.2_rc23/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 net-wireless/madwifi-ng/files/madwifi-ng-0.9.4-request_module-build.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/madwifi-ng/files/madwifi-ng-0.9.4-request_module-build.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/madwifi-ng/files/madwifi-ng-0.9.4-request_module-build.patch?rev=1.1&content-type=text/plain
13
14 Index: madwifi-ng-0.9.4-request_module-build.patch
15 ===================================================================
16 http://bugs.gentoo.org/show_bug.cgi?id=232099
17 http://madwifi-project.org/changeset/3880
18
19 === modified file 'include/compat.h'
20 --- include/compat.h 2009-01-31 16:01:16 +0000
21 +++ include/compat.h 2009-01-31 16:03:33 +0000
22 @@ -175,6 +175,10 @@
23 #define DEV_ATH CTL_UNNUMBERED
24 #endif
25
26 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
27 +#define request_module(_fmt, _modname) request_module(_modname)
28 +#endif
29 +
30 #endif /* __KERNEL__ */
31
32 #endif /* _ATH_COMPAT_H_ */
33
34 === modified file 'net80211/ieee80211_linux.c'
35 --- net80211/ieee80211_linux.c 2009-01-31 16:01:16 +0000
36 +++ net80211/ieee80211_linux.c 2009-01-31 16:03:09 +0000
37 @@ -335,7 +335,7 @@
38 {
39 #ifdef CONFIG_KMOD
40 int rv;
41 - rv = request_module(modname);
42 + rv = request_module("%s", modname);
43 if (rv < 0)
44 printk(KERN_ERR "failed to automatically load module: %s; " \
45 "errno: %d\n", modname, rv);