aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-01 21:14:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-08-01 21:14:15 +0000
commit236483242b588eba287d306fd4d7e5d5261f2ba7 (patch)
tree71a44b67438c84f9d65153b5fdbff0e2fb80d966 /package/mac80211
parent0bdbd33dcb5e5fdfd102d6d18328576b6175eb13 (diff)
downloadupstream-236483242b588eba287d306fd4d7e5d5261f2ba7.tar.gz
upstream-236483242b588eba287d306fd4d7e5d5261f2ba7.tar.bz2
upstream-236483242b588eba287d306fd4d7e5d5261f2ba7.zip
mac80211: fix a compiler warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27870 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/patches/050-compat_firmware.patch9
1 files changed, 6 insertions, 3 deletions
diff --git a/package/mac80211/patches/050-compat_firmware.patch b/package/mac80211/patches/050-compat_firmware.patch
index 0fcee76317..f4cc27d405 100644
--- a/package/mac80211/patches/050-compat_firmware.patch
+++ b/package/mac80211/patches/050-compat_firmware.patch
@@ -41,7 +41,7 @@
EXPORT_SYMBOL(request_firmware_nowait);
--- a/compat/main.c
+++ b/compat/main.c
-@@ -32,6 +32,14 @@ module_param(compat_version, charp, 0400
+@@ -32,6 +32,17 @@ module_param(compat_version, charp, 0400
MODULE_PARM_DESC(compat_version,
"Version of the kernel compat backport work");
@@ -49,14 +49,17 @@
+int __init firmware_class_init(void);
+void __exit firmware_class_exit(void);
+#else
-+static inline int firmware_class_init(void) {}
++static inline int firmware_class_init(void)
++{
++ return 0;
++}
+static inline void firmware_class_exit(void) {}
+#endif
+
static int __init compat_init(void)
{
/* pm-qos for kernels <= 2.6.24, this is a no-op on newer kernels */
-@@ -45,15 +53,15 @@ static int __init compat_init(void)
+@@ -45,15 +56,15 @@ static int __init compat_init(void)
COMPAT_BASE_TREE " " COMPAT_BASE_TREE_VERSION
"\n");