mac80211: rebase ontop of v4.18.5
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / build / 003-remove_bogus_modparams.patch
1 --- a/compat/main.c
2 +++ b/compat/main.c
3 @@ -20,31 +20,6 @@ MODULE_LICENSE("GPL");
4 #error "You need a CPTCFG_VERSION"
5 #endif
6
7 -static char *backported_kernel_name = CPTCFG_KERNEL_NAME;
8 -
9 -module_param(backported_kernel_name, charp, 0400);
10 -MODULE_PARM_DESC(backported_kernel_name,
11 - "The kernel tree name that was used for this backport (" CPTCFG_KERNEL_NAME ")");
12 -
13 -#ifdef BACKPORTS_GIT_TRACKED
14 -static char *backports_tracker_id = BACKPORTS_GIT_TRACKED;
15 -module_param(backports_tracker_id, charp, 0400);
16 -MODULE_PARM_DESC(backports_tracker_id,
17 - "The version of the tree containing this backport (" BACKPORTS_GIT_TRACKED ")");
18 -#else
19 -static char *backported_kernel_version = CPTCFG_KERNEL_VERSION;
20 -static char *backports_version = CPTCFG_VERSION;
21 -
22 -module_param(backported_kernel_version, charp, 0400);
23 -MODULE_PARM_DESC(backported_kernel_version,
24 - "The kernel version that was used for this backport (" CPTCFG_KERNEL_VERSION ")");
25 -
26 -module_param(backports_version, charp, 0400);
27 -MODULE_PARM_DESC(backports_version,
28 - "The git version of the backports tree used to generate this backport (" CPTCFG_VERSION ")");
29 -
30 -#endif
31 -
32 void backport_dependency_symbol(void)
33 {
34 }