backport: refresh patches for v4.19.5
authorJohn Crispin <john@phrozen.org>
Wed, 1 Aug 2018 15:06:15 +0000 (17:06 +0200)
committerJohn Crispin <john@phrozen.org>
Thu, 6 Sep 2018 04:42:00 +0000 (06:42 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
25 files changed:
gentree.py
patches/0002-disable-dump-adjust-on-old-kernels.patch
patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch
patches/0003-cfg80211-wext-padding/net_wireless_core.patch
patches/0004-disable-wext-kconfig.patch
patches/0010-add-wext-handlers-to-netdev/net_wireless_core.patch
patches/0013-fix-makefile-includes/ath10k.patch
patches/0014-netlink_seq/net_wireless_nl80211.patch
patches/0021-umode_t-api-change/ath9k.patch
patches/0024-led-blink-api/mac80211.patch
patches/0025-usb-sg/usbnet.patch
patches/0028-select_queue/mac80211.patch
patches/0028-select_queue/mwifiex.patch
patches/0053-possible_net_t.patch
patches/0055-name_assign_type/brcmfmac.patch
patches/0069-iwlwifi-pd-string-fix.patch
patches/0070-mac80211-fils.patch
patches/0071-skb-head_frag/wireless.patch
patches/0075-ndo-stats-64/usbnet.patch
patches/0077-genl-ro-after-init/hwsim.patch
patches/0077-genl-ro-after-init/nl80211.patch
patches/0079-netdev-destructor/brcmfmac.patch
patches/0084-disbale-some-staging-dirs.patch
patches/0086-rtl8723bs-no-extern-inline.patch
patches/lib-bucket_locks.patch

index a8fb7082c13723b4c758b4e04062e32f52736c62..816674b3193f4fb0f9a668c1d045668bcd11aa4a 100755 (executable)
@@ -594,6 +594,7 @@ def apply_patches(args, desc, source_dir, patch_src, target_dir, logwrite=lambda
         print_name = cocci_file[prefix_len:]
         if args.verbose:
             logwrite("Applying SmPL patch %s" % print_name)
+            logwrite(" %s" % cmd)
         sprocess = subprocess.Popen(cmd,
                                     stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
                                     close_fds=True, universal_newlines=True,
index 332a7b610b74ad6d24b799e6027476feadbd1f95..2bc5d9b3f3f0e5ff354f4a0c50686aff6cb2d4fb 100644 (file)
@@ -28,7 +28,7 @@ Date:   Fri Mar 1 14:03:49 2013 +0100
 
 --- a/net/wireless/nl80211.c
 +++ b/net/wireless/nl80211.c
-@@ -2010,6 +2010,7 @@ static int nl80211_dump_wiphy(struct sk_
+@@ -2118,6 +2118,7 @@ static int nl80211_dump_wiphy(struct sk_
                                                 cb->nlh->nlmsg_seq,
                                                 NLM_F_MULTI, state);
                        if (ret < 0) {
@@ -36,7 +36,7 @@ Date:   Fri Mar 1 14:03:49 2013 +0100
                                /*
                                 * If sending the wiphy data didn't fit (ENOBUFS
                                 * or EMSGSIZE returned), this SKB is still
-@@ -2031,6 +2032,7 @@ static int nl80211_dump_wiphy(struct sk_
+@@ -2139,6 +2140,7 @@ static int nl80211_dump_wiphy(struct sk_
                                        rtnl_unlock();
                                        return 1;
                                }
index 9727bb737d8f9b2b267e38b4e236836b0d9c435f..a60117dd841a4addd8136bab5d62990404e9a588 100644 (file)
@@ -1,6 +1,6 @@
 --- a/include/net/cfg80211.h
 +++ b/include/net/cfg80211.h
-@@ -3723,6 +3723,9 @@ struct wiphy_iftype_ext_capab {
+@@ -3869,6 +3869,9 @@ struct wiphy_iftype_ext_capab {
  struct wiphy {
        /* assign these fields before you register the wiphy */
  
index aabf7e437e4859c4f15dcc1fa202775abf44c41b..011e37417c88587137ab415c2f9cffb2f615d91a 100644 (file)
@@ -1,6 +1,6 @@
 --- a/net/wireless/core.c
 +++ b/net/wireless/core.c
-@@ -385,6 +385,17 @@ struct wiphy *wiphy_new_nm(const struct
+@@ -388,6 +388,17 @@ struct wiphy *wiphy_new_nm(const struct
        struct cfg80211_registered_device *rdev;
        int alloc_size;
  
index 1ed420abace691e04375827695397be5085a3160..bcb607882935bbc45e823d10012243c29726bf3a 100644 (file)
@@ -26,7 +26,7 @@ so remove the Kconfig options for them.
        tristate "cfg80211 - wireless configuration API"
        depends on RFKILL || !RFKILL
 @@ -187,7 +169,7 @@ config CFG80211_CRDA_SUPPORT
-
  config CFG80211_WEXT
        bool "cfg80211 wireless extensions compatibility" if !CFG80211_WEXT_EXPORT
 -      select WEXT_CORE
index 5a7364a16e062b2e2e8e3637826169294884b6b5..d344ef7514c9fd4deaab6d33d2e94f2ed9b4d3f5 100644 (file)
@@ -1,6 +1,6 @@
 --- a/net/wireless/core.c
 +++ b/net/wireless/core.c
-@@ -478,10 +478,6 @@ use_default_name:
+@@ -481,10 +481,6 @@ use_default_name:
        INIT_WORK(&rdev->mlme_unreg_wk, cfg80211_mlme_unreg_wk);
        INIT_DELAYED_WORK(&rdev->dfs_update_channels_wk,
                          cfg80211_dfs_channels_update_work);
@@ -11,7 +11,7 @@
        device_initialize(&rdev->wiphy.dev);
        rdev->wiphy.dev.class = &ieee80211_class;
        rdev->wiphy.dev.platform_data = rdev;
-@@ -1188,6 +1184,15 @@ static int cfg80211_netdev_notifier_call
+@@ -1196,6 +1192,15 @@ static int cfg80211_netdev_notifier_call
                }
                wdev->netdev = dev;
  #ifdef CONFIG_CFG80211_WEXT
index 5bae024bd14d6c7aeb89529a0d6d698044b63977..11eb4c54e807830563bf310936a296b14c5dfba1 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/ath/ath10k/htt.h
 +++ b/drivers/net/wireless/ath/ath10k/htt.h
-@@ -19,6 +19,7 @@
+@@ -20,6 +20,7 @@
  #define _HTT_H_
  
  #include <linux/bug.h>
index e56b92f159fad460f8cddacc17e9deace751489e..1dfad7a0685c32cbe5f5cc2985e6cbf31e004168 100644 (file)
@@ -1,8 +1,8 @@
 --- a/net/wireless/nl80211.c
 +++ b/net/wireless/nl80211.c
-@@ -7916,7 +7916,9 @@ static int nl80211_dump_scan(struct sk_b
-       spin_lock_bh(&rdev->bss_lock);
-       cfg80211_bss_expire(rdev);
+@@ -8100,7 +8100,9 @@ static int nl80211_dump_scan(struct sk_b
+       if (start == 0)
+               cfg80211_bss_expire(rdev);
  
 +#if LINUX_VERSION_IS_GEQ(3,1,0)
        cb->seq = rdev->bss_generation;
index d9fc169dcbee5beaa1f08cfccc662bf500b8e2a4..9707a5a88b8d5880fe66d0f56c227e6680e94eed 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/ath/ath9k/common-spectral.c
 +++ b/drivers/net/wireless/ath/ath9k/common-spectral.c
-@@ -1048,7 +1048,11 @@ static const struct file_operations fops
+@@ -1050,7 +1050,11 @@ static const struct file_operations fops
  
  static struct dentry *create_buf_file_handler(const char *filename,
                                              struct dentry *parent,
index 61e0e89390ba8240d44f5d43bd2eda1826e60851..04f67749d766783eb45b04a8d5db2218c78d8a78 100644 (file)
@@ -1,6 +1,6 @@
 --- a/net/mac80211/ieee80211_i.h
 +++ b/net/mac80211/ieee80211_i.h
-@@ -1281,6 +1281,7 @@ struct ieee80211_local {
+@@ -1283,6 +1283,7 @@ struct ieee80211_local {
        struct mutex chanctx_mtx;
  
  #ifdef CONFIG_MAC80211_LEDS
index 0b715780732c556a43e8479ce73adecba342693b..50c2d2746209d7c79b67e89178f0f9a44f78c0b1 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/usb/usbnet.c
 +++ b/drivers/net/usb/usbnet.c
-@@ -1311,6 +1311,7 @@ EXPORT_SYMBOL_GPL(usbnet_tx_timeout);
+@@ -1313,6 +1313,7 @@ EXPORT_SYMBOL_GPL(usbnet_tx_timeout);
  
  /*-------------------------------------------------------------------------*/
  
@@ -8,7 +8,7 @@
  static int build_dma_sg(const struct sk_buff *skb, struct urb *urb)
  {
        unsigned num_sgs, total_len = 0;
-@@ -1343,6 +1344,12 @@ static int build_dma_sg(const struct sk_
+@@ -1345,6 +1346,12 @@ static int build_dma_sg(const struct sk_
  
        return 1;
  }
@@ -21,7 +21,7 @@
  
  netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
                                     struct net_device *net)
-@@ -1399,12 +1406,19 @@ netdev_tx_t usbnet_start_xmit (struct sk
+@@ -1401,12 +1408,19 @@ netdev_tx_t usbnet_start_xmit (struct sk
                if (!(info->flags & FLAG_SEND_ZLP)) {
                        if (!(info->flags & FLAG_MULTI_PACKET)) {
                                length++;
@@ -41,7 +41,7 @@
                        }
                } else
                        urb->transfer_flags |= URB_ZERO_PACKET;
-@@ -1471,7 +1485,9 @@ not_drop:
+@@ -1473,7 +1487,9 @@ not_drop:
                if (skb)
                        dev_kfree_skb_any (skb);
                if (urb) {
@@ -51,7 +51,7 @@
                        usb_free_urb(urb);
                }
        } else
-@@ -1524,7 +1540,9 @@ static void usbnet_bh (struct timer_list
+@@ -1526,7 +1542,9 @@ static void usbnet_bh (struct timer_list
                        rx_process (dev, skb);
                        continue;
                case tx_done:
@@ -61,7 +61,7 @@
                case rx_cleanup:
                        usb_free_urb (entry->urb);
                        dev_kfree_skb (skb);
-@@ -1891,7 +1909,9 @@ int usbnet_resume (struct usb_interface
+@@ -1893,7 +1911,9 @@ int usbnet_resume (struct usb_interface
                        retval = usb_submit_urb(res, GFP_ATOMIC);
                        if (retval < 0) {
                                dev_kfree_skb_any(skb);
index 2bfca8ee9a3062020b6663bbfb07b4fca4adbc29..b5819143ab25a064b13106c4d834001a567cff35 100644 (file)
@@ -1,6 +1,6 @@
 --- a/net/mac80211/iface.c
 +++ b/net/mac80211/iface.c
-@@ -1126,10 +1126,20 @@ static void ieee80211_uninit(struct net_
+@@ -1128,10 +1128,20 @@ static void ieee80211_uninit(struct net_
        ieee80211_teardown_sdata(IEEE80211_DEV_TO_SUB_IF(dev));
  }
  
@@ -21,7 +21,7 @@
  {
        return ieee80211_select_queue(IEEE80211_DEV_TO_SUB_IF(dev), skb);
  }
-@@ -1172,10 +1182,20 @@ static const struct net_device_ops ieee8
+@@ -1174,10 +1184,20 @@ static const struct net_device_ops ieee8
        .ndo_get_stats64        = ieee80211_get_stats64,
  };
  
index 5d2e257c8cff6d8aea9fcdfb19e4fa58be2b2f37..a08729b277900fa27baeb20a21fa04f89aa09093 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/marvell/mwifiex/main.c
 +++ b/drivers/net/wireless/marvell/mwifiex/main.c
-@@ -1261,9 +1261,19 @@ static struct net_device_stats *mwifiex_
+@@ -1277,9 +1277,19 @@ static struct net_device_stats *mwifiex_
        return &priv->stats;
  }
  
index 3eb62bc0ed6200818c72edf2f658dece1c23fae6..7414dbaf7a512243bb36043403f963398c478d6f 100644 (file)
@@ -2,7 +2,7 @@ diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
 index 04e5785..a251da1 100644
 --- a/include/net/cfg80211.h
 +++ b/include/net/cfg80211.h
-@@ -3861,12 +3861,12 @@ struct wiphy {
+@@ -4011,12 +4011,12 @@ struct wiphy {
  
  static inline struct net *wiphy_net(struct wiphy *wiphy)
  {
index 6049dab9301133f6648c7035b6e46024695c5974..b9c9b390ef6896e6f6895864c3b41ddae77a9c2e 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c
-@@ -2198,7 +2198,9 @@ struct wireless_dev *brcmf_p2p_add_vif(s
+@@ -2203,7 +2203,9 @@ struct wireless_dev *brcmf_p2p_add_vif(s
        }
  
        strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1);
index 272b8704f31e50620fd81fc06ae50408d01718bb..bffad3cb4f3719f8e84962fe7a43e55af63b8ae9 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
 +++ b/drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c
-@@ -2421,12 +2421,23 @@ int iwl_dbgfs_register(struct iwl_priv *
+@@ -2419,12 +2419,23 @@ int iwl_dbgfs_register(struct iwl_priv *
         */
        if (priv->mac80211_registered) {
                char buf[100];
@@ -26,7 +26,7 @@
                        goto err;
 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
 +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
-@@ -1498,8 +1498,13 @@ void iwl_mvm_vif_dbgfs_register(struct i
+@@ -1497,8 +1497,13 @@ void iwl_mvm_vif_dbgfs_register(struct i
        mvmvif->dbgfs_dir = debugfs_create_dir("iwlmvm", dbgfs_dir);
  
        if (!mvmvif->dbgfs_dir) {
@@ -40,7 +40,7 @@
                return;
        }
  
-@@ -1553,15 +1558,28 @@ void iwl_mvm_vif_dbgfs_register(struct i
+@@ -1544,15 +1549,28 @@ void iwl_mvm_vif_dbgfs_register(struct i
         * find
         * netdev:wlan0 -> ../../../ieee80211/phy0/netdev:wlan0/iwlmvm/
         */
@@ -71,7 +71,7 @@
        IWL_ERR(mvm, "Can't create debugfs entity\n");
 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
 +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c
-@@ -2032,7 +2032,13 @@ int iwl_mvm_dbgfs_register(struct iwl_mv
+@@ -2052,7 +2052,13 @@ int iwl_mvm_dbgfs_register(struct iwl_mv
         * Create a symlink with mac80211. It will be removed when mac80211
         * exists (before the opmode exists which removes the target.)
         */
index d7274e5739be714ff5555a9240785562c7ee428a..f683777f290bf3c9698c07fe419e220049841f49 100644 (file)
@@ -5,7 +5,7 @@
  /*
   * FILS AEAD for (Re)Association Request/Response frames
   * Copyright 2016, Qualcomm Atheros, Inc.
-@@ -332,3 +333,4 @@ int fils_decrypt_assoc_resp(struct ieee80211_sub_if_data *sdata,
+@@ -332,3 +333,4 @@ int fils_decrypt_assoc_resp(struct ieee8
        *frame_len -= AES_BLOCK_SIZE;
        return 0;
  }
@@ -42,7 +42,7 @@
  #endif /* FILS_AEAD_H */
 --- a/net/mac80211/main.c
 +++ b/net/mac80211/main.c
-@@ -553,7 +553,9 @@ struct ieee80211_hw *ieee80211_alloc_hw_nm(size_t priv_data_len,
+@@ -553,7 +553,9 @@ struct ieee80211_hw *ieee80211_alloc_hw_
                           NL80211_FEATURE_MAC_ON_CREATE |
                           NL80211_FEATURE_USERSPACE_MPM |
                           NL80211_FEATURE_FULL_AP_CLIENT_STATE;
index 91a345fd0b5677587a1246a47c5abf76d93de864..6df440ba4396928173ef255893d0c843f0e9fde7 100644 (file)
@@ -1,6 +1,6 @@
 --- a/net/wireless/util.c
 +++ b/net/wireless/util.c
-@@ -632,7 +632,11 @@ void ieee80211_amsdu_to_8023s(struct sk_
+@@ -633,7 +633,11 @@ void ieee80211_amsdu_to_8023s(struct sk_
        u8 *payload;
        int offset = 0, remaining;
        struct ethhdr eth;
index 8370b660a26f40c72a4b25e2185aec3236d02e93..ac66d212b23b45cef4c20afb438d6225c57d0673 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/usb/usbnet.c
 +++ b/drivers/net/usb/usbnet.c
-@@ -1015,6 +1015,9 @@ void usbnet_get_stats64(struct net_devic
+@@ -1016,6 +1016,9 @@ void usbnet_get_stats64(struct net_devic
        }
  }
  EXPORT_SYMBOL_GPL(usbnet_get_stats64);
index f7f607e9ffc77d2cb0dd2b4d9f8cf42c14be96be..1bcbd0db995650ab08b96f8f26c738483479a069 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/mac80211_hwsim.c
 +++ b/drivers/net/wireless/mac80211_hwsim.c
-@@ -3376,7 +3376,7 @@ static const struct genl_ops hwsim_ops[]
+@@ -3424,7 +3424,7 @@ static const struct genl_ops hwsim_ops[]
        },
  };
  
index fb04fd41ad9b15a693c48d1374f71a5fa460709e..55645048e7207b45a49f1b747342848c2766ad33 100644 (file)
@@ -1,7 +1,7 @@
 --- a/net/wireless/nl80211.c
 +++ b/net/wireless/nl80211.c
-@@ -13365,7 +13365,7 @@ static const struct genl_ops nl80211_ops
+@@ -13799,7 +13799,7 @@ static const struct genl_ops nl80211_ops
+       },
  };
  
 -static struct genl_family nl80211_fam __ro_after_init = {
index 298c44170f3dedfca2468932f0a0f84dc91ffcba..d39da772f229f4188e666fb7e26f9335c39246bb 100644 (file)
@@ -1,6 +1,6 @@
 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c
-@@ -500,6 +500,23 @@ static const struct net_device_ops brcmf
+@@ -557,6 +557,23 @@ static const struct net_device_ops brcmf
        .ndo_set_rx_mode = brcmf_netdev_set_multicast_list
  };
  
@@ -24,7 +24,7 @@
  int brcmf_net_attach(struct brcmf_if *ifp, bool rtnl_locked)
  {
        struct brcmf_pub *drvr = ifp->drvr;
-@@ -672,7 +689,11 @@ struct brcmf_if *brcmf_add_if(struct brc
+@@ -729,7 +746,11 @@ struct brcmf_if *brcmf_add_if(struct brc
                if (!ndev)
                        return ERR_PTR(-ENOMEM);
  
index 8947130deb16049112370c5f1492a653a858ebac..dc9d9e2436814417384e5178847de856cd457130 100644 (file)
@@ -8,6 +8,6 @@
 -obj-y                         += typec/
 +#obj-y                                += media/
 +#obj-y                                += typec/
- obj-$(CONFIG_IPX)             += ipx/
- obj-$(CONFIG_NCP_FS)          += ncpfs/
- obj-$(CONFIG_IRDA)            += irda/net/
+ obj-$(CONFIG_PRISM2_USB)      += wlan-ng/
+ obj-$(CONFIG_COMEDI)          += comedi/
+ obj-$(CONFIG_FB_OLPC_DCON)    += olpc_dcon/
index cc8bba0a604ad0c435d6fc3e4fa15d76beb969da..ca8321ecfbf520bdc31e35994ba552d42a48d16e 100644 (file)
@@ -2,7 +2,7 @@ diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl
 index 73ce637..fa9c80f 100644
 --- a/drivers/staging/rtl8723bs/include/ieee80211.h
 +++ b/drivers/staging/rtl8723bs/include/ieee80211.h
-@@ -1008,18 +1008,18 @@ enum ieee80211_state {
+@@ -850,18 +850,18 @@ enum ieee80211_state {
  #define IP_FMT "%pI4"
  #define IP_ARG(x) (x)
  
index 15eeda11fe7e450d2e0fee71da28a9e09f3db540..aaad2bbe45c107846ef1f55909d7d01e605addbd 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/compat/lib-bucket_locks.c b/compat/lib-bucket_locks.c
-index 266a97c5708b..405b52ca5708 100644
 --- a/compat/lib-bucket_locks.c
 +++ b/compat/lib-bucket_locks.c
-@@ -30,10 +30,24 @@ int alloc_bucket_spinlocks(spinlock_t **
+@@ -30,7 +30,21 @@ int alloc_bucket_spinlocks(spinlock_t **
        }
  
        if (sizeof(spinlock_t) != 0) {
@@ -19,10 +17,7 @@ index 266a97c5708b..405b52ca5708 100644
 +                      tlocks = kmalloc_array(size, sizeof(spinlock_t),
 +                                                 gfp);
 +#else
-               if (gfpflags_allow_blocking(gfp))
-                       tlocks = kvmalloc(size * sizeof(spinlock_t), gfp);
-               else
-                       tlocks = kmalloc_array(size, sizeof(spinlock_t), gfp);
+               tlocks = kvmalloc_array(size, sizeof(spinlock_t), gfp);
 +#endif
                if (!tlocks)
                        return -ENOMEM;