From: Johannes Berg Date: Sat, 13 Apr 2013 13:28:38 +0000 (+0200) Subject: backports: avoid module parameter warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=61834ee079ad6a570d4d8f643522df2be0b48593;p=openwrt%2Fstaging%2Fblogic.git backports: avoid module parameter warnings On old kernels, boolean module parameters had to be int. When we backport, they're bool, and thus cause warnings. Suppress the warnings by redefining the parameter check, it's not entirely clear that it'll do the right thing though? Signed-off-by: Johannes Berg --- diff --git a/backport/backport-include/linux/module.h b/backport/backport-include/linux/module.h index 6bddc76bfbcb..82c96bd6b85e 100644 --- a/backport/backport-include/linux/module.h +++ b/backport/backport-include/linux/module.h @@ -59,4 +59,9 @@ extern void backport_dependency_symbol(void); } \ void cleanup_module(void) __attribute__((alias("__exit_compat"))); +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) +#undef param_check_bool +#define param_check_bool(name, p) __param_check(name, p, bool) +#endif + #endif /* __BACKPORT_LINUX_MODULE_H */