From be4a0f9ad7e17670d7a30c9e94d5dd918425f90a Mon Sep 17 00:00:00 2001 From: "Luis R. Rodriguez" Date: Fri, 11 Apr 2014 01:45:20 +0000 Subject: backports: nuke support for kernels < 3.0 mcgrof@drvbp1 ~/backports (git::master)$ time ./gentree.py --clean /home/mcgrof/linux-next /home/mcgrof/build/next-20140409 Copy original source files ... Apply patches ... Modify Kconfig tree ... Rewrite Makefiles and Kconfig files ... Done! real 1m30.186s user 9m25.180s sys 0m24.428s mcgrof@drvbp1 ~/build/next-20140409 $ time ckmake --allyesconfig 1 3.0.101 [ OK ] 2 3.1.10 [ OK ] 3 3.2.54 [ OK ] 4 3.3.8 [ OK ] 5 3.4.79 [ OK ] 6 3.5.7 [ OK ] 7 3.6.11 [ OK ] 8 3.7.10 [ OK ] 9 3.8.13 [ OK ] 10 3.9.11 [ OK ] 11 3.10.29 [ OK ] 12 3.11.10 [ OK ] 13 3.12.10 [ OK ] 14 3.13.2 [ OK ] 15 3.14-rc1 [ OK ] real 26m54.859s user 744m15.764s sys 83m47.440s Signed-off-by: Luis R. Rodriguez --- .../network/0027-genl-const/nl80211.patch | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 patches/collateral-evolutions/network/0027-genl-const/nl80211.patch (limited to 'patches/collateral-evolutions/network/0027-genl-const/nl80211.patch') diff --git a/patches/collateral-evolutions/network/0027-genl-const/nl80211.patch b/patches/collateral-evolutions/network/0027-genl-const/nl80211.patch new file mode 100644 index 00000000..3fbd8df3 --- /dev/null +++ b/patches/collateral-evolutions/network/0027-genl-const/nl80211.patch @@ -0,0 +1,50 @@ +--- a/net/wireless/nl80211.c ++++ b/net/wireless/nl80211.c +@@ -30,9 +30,9 @@ static int nl80211_crypto_settings(struc + struct cfg80211_crypto_settings *settings, + int cipher_limit); + +-static int nl80211_pre_doit(const struct genl_ops *ops, struct sk_buff *skb, ++static int nl80211_pre_doit(__genl_const struct genl_ops *ops, struct sk_buff *skb, + struct genl_info *info); +-static void nl80211_post_doit(const struct genl_ops *ops, struct sk_buff *skb, ++static void nl80211_post_doit(__genl_const struct genl_ops *ops, struct sk_buff *skb, + struct genl_info *info); + + /* the netlink family */ +@@ -57,7 +57,7 @@ enum nl80211_multicast_groups { + NL80211_MCGRP_TESTMODE /* keep last - ifdef! */ + }; + +-static const struct genl_multicast_group nl80211_mcgrps[] = { ++static __genl_const struct genl_multicast_group nl80211_mcgrps[] = { + [NL80211_MCGRP_CONFIG] = { .name = "config", }, + [NL80211_MCGRP_SCAN] = { .name = "scan", }, + [NL80211_MCGRP_REGULATORY] = { .name = "regulatory", }, +@@ -9270,7 +9270,7 @@ static int nl80211_set_qos_map(struct sk + #define NL80211_FLAG_NEED_WDEV_UP (NL80211_FLAG_NEED_WDEV |\ + NL80211_FLAG_CHECK_NETDEV_UP) + +-static int nl80211_pre_doit(const struct genl_ops *ops, struct sk_buff *skb, ++static int nl80211_pre_doit(__genl_const struct genl_ops *ops, struct sk_buff *skb, + struct genl_info *info) + { + struct cfg80211_registered_device *rdev; +@@ -9339,7 +9339,7 @@ static int nl80211_pre_doit(const struct + return 0; + } + +-static void nl80211_post_doit(const struct genl_ops *ops, struct sk_buff *skb, ++static void nl80211_post_doit(__genl_const struct genl_ops *ops, struct sk_buff *skb, + struct genl_info *info) + { + if (info->user_ptr[1]) { +@@ -9356,7 +9356,7 @@ static void nl80211_post_doit(const stru + rtnl_unlock(); + } + +-static const struct genl_ops nl80211_ops[] = { ++static __genl_const struct genl_ops nl80211_ops[] = { + { + .cmd = NL80211_CMD_GET_WIPHY, + .doit = nl80211_get_wiphy, -- cgit v1.2.3