summaryrefslogtreecommitdiff
path: root/patches
AgeCommit message (Collapse)Author
2017-09-06patches: adapt signature of proto_ops->acceptHauke Mehrtens
In commit cdfbabfb2f0ce ("net: Work around lockdep limitation in sockets that use sockets") a extra parameter was added to proto_ops->accept(), do not assume it on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06patches: backport the probe_new for i2c driversHauke Mehrtens
I2C got a new probe function which does not take the struct i2c_device_id any more, backport this to older kernel versions with a spatch. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06patch: Allow usage of pci_error_handlers->reset_notifyHauke Mehrtens
The member reset_notify in the struct pci_error_handlers was divided into reset_prepare and reset_done in upstream commit 775755ed3c65fb ("PCI: Split ->reset_notify() method into ->reset_prepare() and ->reset_done()"). Make new code also work with old kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06patches: adapt the stat64 usage for usbnetHauke Mehrtens
The usbnet driver shares the stat64 implementation over multiple drivers and file, the spatch is not able to handle this, add a manual patch to work around this problem. The spatch is still modifying all usbnet drivers, but the function gets exported by the usbnet main driver now. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06copy-list: remove st-nci.h and patchAceLan Kao
>From below commit, st-nci.h has been removed 61a0410 NFC: st-nci: Get rid of platform data And we don't need st-nci-spi.patch, either. The patch is included in upstream kernel source. Signed-off-by: AceLan Kao <acelan.kao@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06backports: remove 802.15.4 entirelyAceLan Kao
802.15.4 has been removed by this commit, 15a3df8 backports: remove 802.15.4 entirely but there are some files left behind. Remove them all. Signed-off-by: AceLan Kao <acelan.kao@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-07-28backport: fix netdev destructor backportLuca Coelho
The commit that changed the netdev destructor was also applied in v4.12-rc6, so we need to update the backport. Another issue was that when the default free_netdev() destructor was supposed to be used, we would get compilation errors, such as this one in hwsim: In file included from ./include/net/dst.h:12:0, from /home/luca/iwlwifi/stack-dev/drivers/net/wireless/mac80211_hwsim.c:22: /home/luca/iwlwifi/stack-dev/drivers/net/wireless/mac80211_hwsim.c: In function hwsim_mon_setup': /home/luca/iwlwifi/stack-dev/backport-include/linux/netdevice.h:325:23: error: '__free_netdev' undeclared (first use in this function) (_dev)->destructor = __ ## _destructor ^ /home/luca/iwlwifi/stack-dev/drivers/net/wireless/mac80211_hwsim.c:2977:2: note: in expansion of macro 'netdev_set_priv_destructor' netdev_set_priv_destructor(dev, free_netdev); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/luca/iwlwifi/stack-dev/backport-include/linux/netdevice.h:325:23: note: each undeclared identifier is reported only once for each function it appears in (_dev)->destructor = __ ## _destructor ^ /home/luca/iwlwifi/stack-dev/drivers/net/wireless/mac80211_hwsim.c:2977:2: note: in expansion of macro 'netdev_set_priv_destructor' netdev_set_priv_destructor(dev, free_netdev); ^~~~~~~~~~~~~~~~~~~~~~~~~~ scripts/Makefile.build:300: recipe for target '/home/luca/iwlwifi/stack-dev/drivers/net/wireless/mac80211_hwsim.o' failed To fix this, add a new macro, netdev_set_def_destructor(), that handles this special case. Change-Id: Ifcf1f19690487aee67e776b5700ff496c779e86c Fixes: 721ae78f9355 ("backport: handle change in netdevice destructor usage") Reviewed-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2017-06-30backport: handle change in netdevice destructor usageArend Van Spriel
This patch deals with changes made in struct net_device by commit cf124db566e6 ("net: Fix inconsistent teardown and release of private netdev state."). Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-05-30patches: add patch for compat/lib-rhashtable.cArend Van Spriel
The file compat/lib-rhashtable.c is a copy from the backported kernel source lib/rhashtable.c. This patch reverts a recent change to that file, ie. commit 43ca5bc4f72e ("lib/rhashtable.c: simplify a strange allocation pattern"). It introduced the function gfpflags_allow_blocking() introduced in 4.4 kernel and kvmalloc() introduced in 4.12-rc1. Looking at those functions backporting them is complicated so instead add this patch that reverts the change for kernel prior to 4.12. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-04-26backports: add the necessary backports for netlink extackJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-31patches: update crypto-ccm.patch for v4.11-rc1Arend Van Spriel
Since v4.11-rc1 the patch file for crypto/ccm.c, which is incorporated in the compat module, no longer applies. Update the patch file to fix the issue. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-24backports: adjust ndo_get_stats64 change to 4.11Johannes Berg
This will only land in kernel 4.11, I mixed up the versions before. Fix that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-14backports: adjust mwifiex uapi patch for new contextJohannes Berg
This showed up in wt-2017-02-12. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-09backports: always use new version compare macrosJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-09backports: don't use __ro_after_init with genl families on <=4.9Johannes Berg
4.9 introduced __ro_after_init, but generic netlink family registration was only changed to allow it in 4.10, otherwise deregistration will crash due to writing to the RO memory. Unfortunately, spatch doesn't handle this, so manually patch the families to replace __ro_after_init with __genl_ro_after_init which is defined to nothing on kernel version <= 4.9. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: remove thermal patchJohannes Berg
We now have a proper backport for this but I forgot to remove the patch - do that now. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: add ifdefs to PCI error handler reset_notifyJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: add spatch to backport ndo_stats64 prototype changeJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: generate ifdefs for arbitrary MTU assignmentJohannes Berg
After the last patch that changed things so that the MTU change function will only be declared when the values are constants, this patch changes it so the ifdefs are always added regardless. This means that those drivers that use some expression will now compile, with loss of MTU setting functionality. It's necessary to put the new ifdef generation into a separate spatch since the original one throws errors on some drivers like airo.c. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: improve MTU spatchJohannes Berg
Improve the MTU spatch to 1) not handle arbitrary expressions, only constants - the one case where I found expressions can't actually just move it to a function, it won't compile 2) if min_mtu isn't set, assume 0 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: get rid of patch directory structureJohannes Berg
This directory structure was never really managed well, simply get rid of it. With the patch system that only applies patches when the modified file exists, and with a lot of spatches applying everywhere anyway, it's no longer really useful either. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: remove media include patchJohannes Berg
This no longer applies, and it'd probably be a better idea to find why it's needed (and include idr.h in a backport header) or even to send it upstream instead. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: remove some media patchesJohannes Berg
These things should instead be done with an spatch combined with a simple inline that depends on the kernel version. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: remove outdated patch READMEJohannes Berg
Since we're adding mostly spatches, this isn't right - remove it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: add a simple spatch for skb->wifi_acked[_valid]Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: adjust bcma of_irq patchJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: support class_groupsJohannes Berg
Add a new semantic patch just like for dev_groups to support class_groups. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: restrict group_attr spatch properlyJohannes Berg
In cases where there are multiple instances of the ATTRIBUTE_GROUPS() macro, or an instance thereof with a .dev_groups that doesn't actually use it (like in devcoredump.c), the spatch wasn't correctly restricted to make sure the two belong together, and thus made some completely wrong modifications, linking an ATTRIBUTE_GROUPS() to a .dev_attrs it didn't belong to at all. Fix this by making sure that the ATTRIBUTE_GROUPS() instance and use for .dev_groups match. This needs python indirection to create the symbol name that ATTRIBUTE_GROUPS() creates in the C code. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-06backports: devcoredump: make patch applyJohannes Berg
Just make the patch apply again - the next commits will auto-generate the necessary backport code. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-06backports: disable fils for kernels that don't support skcipherLuca Coelho
It's very hard to backport the skcipher implementation from newer kernels, so disable FILS support for kernels that don't support skcipher natively (< 4.3). Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-06patches: network: add spatch for mtu range checkingArend van Spriel
The mtu range checking was moved into network subsystem resulting in the addition of min_mtu and max_mtu fields in struct net_device. For drivers with a .ndo_change_mtu() which took care of range checking this resulted in removal of the callback. This spatch restores the callback using the values set in {min,max}_mtu fields for kernels before v4.10. Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-06backports: iwlwifi: access dentry name path directly for < 3.12Luca Coelho
In 3.12, new string format types have been added (%pd and %pD), which allows printing a dentry name or file instead of accessing them directly. This is really difficult (if at all feasible) to backport, so we need to keep the old code in the iwlwifi driver for kernels that don't have this new feature. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-06backports: add backport for old devcoredumpm (i.e. < 4.7)Luca Coelho
The API has changed in kernel version 4.7. So now we need to backport to this intermediate version if the kernel is > 3.18, but < 4.7. To do so, add wrappers around the old functions and save the functions passed by the caller so that they can be passed by the wrappers. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-06backports: patches: update devcoredump patchArend van Spriel
Due to changes in include/linux/devcoredump.h the patch needs to be updated. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-07-13patches: refresh on next-20160324Hauke Mehrtens
1 3.0.101 [ OK ] 2 3.1.10 [ OK ] 3 3.2.81 [ OK ] 4 3.3.8 [ OK ] 5 3.4.112 [ 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.102 [ OK ] 12 3.11.10 [ OK ] 13 3.12.61 [ OK ] 14 3.13.11 [ OK ] 15 3.14.73 [ OK ] 16 3.15.10 [ OK ] 17 3.16.36 [ OK ] 18 3.17.8 [ OK ] 19 3.18.36 [ OK ] 20 3.19.8 [ OK ] 21 4.0.9 [ OK ] 22 4.1.27 [ OK ] 23 4.2.8 [ OK ] 24 4.3.6 [ OK ] 25 4.4.14 [ OK ] 26 4.5.7 [ OK ] Manual changes done to: patches/collateral-evolutions/network/0033-ndo_vlan_rx_vid/igb_ndo_vlan_rx_vid.patch Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13patch: add include for net/ipv6.h to igb_main.cHauke Mehrtens
Without this patch igb was unable to find ipv6_find_hdr() in kernel < 3.14. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13patches: remove usage of the head_frag member of skbHauke Mehrtens
In kernel < 3.5 the skb header can not be fragmented, because this feature is not implemented, so assume that head_frag is false. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13patches: make iwlwifi use the old thermal APIsHauke Mehrtens
The thermal API changed in the last kernel versions, make iwlwifi use the correct interface for each kernel version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13patches: do not call of_irq_* functions on kernel < 3.13 in bcmaHauke Mehrtens
These functions where added in kernel renamed in kernel 3.13 and the signature changed. I am not aware of any user of these functions in such old kernel versions, just remove the part. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13header: remove vid parameter from ndo_dflt_fdb_add()Hauke Mehrtens
The signature was changed in Linux kernel commit f6f6424ba "net: make vid as a parameter for ndo_fdb_add/ndo_fdb_del". In addition the signature of the callback ndo_fdb_add was also changed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-04-30patches: refresh on next-20160216backports-20160216Hauke Mehrtens
1 3.0.101 [ OK ] 2 3.1.10 [ OK ] 3 3.2.79 [ OK ] 4 3.3.8 [ OK ] 5 3.4.112 [ 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.101 [ OK ] 12 3.11.10 [ OK ] 13 3.12.59 [ OK ] 14 3.13.11 [ OK ] 15 3.14.67 [ OK ] 16 3.15.10 [ OK ] 17 3.16.7 [ OK ] 18 3.17.8 [ OK ] 19 3.18.32 [ OK ] 20 4.1.23 [ OK ] 21 4.3.6 [ OK ] 22 4.4.8 [ OK ] 23 4.5.2 [ OK ] 24 4.6-rc5 [ FAIL ] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-04-30patches: use old signature for struct proto hash functionHauke Mehrtens
commit 086c653f5862591a9cfe2386f5650d03adacc33a Author: Craig Gallek <kraig@google.com> Date: Wed Feb 10 11:50:35 2016 -0500 sock: struct proto hash function may error Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-04-30backport: add crypto skcipher interfaceHauke Mehrtens
This adds the crypto skcipher interface which was added in Linux commit 7a7ffe65c8c5f "crypto: skcipher - Add top-level skcipher interface" to backports. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-04-30backport: make media depend on kernel 3.8Hauke Mehrtens
The media backports are not used by so many users in my opinion and to reduce the efforts needed to make the new changes to media introduced by new kernel versions work on older kernel versions just make it depend on kernel 3.8 and do not support all the older kernel versions for media any more. This makes it possible to remove some patches and other changes. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-02-15patches: refresh on next-20160122backports-20160122Hauke Mehrtens
1 3.0.101 [ OK ] 2 3.1.10 [ OK ] 3 3.2.76 [ OK ] 4 3.3.8 [ OK ] 5 3.4.110 [ 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.96 [ OK ] 12 3.11.10 [ OK ] 13 3.12.53 [ OK ] 14 3.13.11 [ OK ] 15 3.14.60 [ OK ] 16 3.15.10 [ OK ] 17 3.16.7 [ OK ] 18 3.17.8 [ OK ] 19 3.18.26 [ OK ] 20 3.19.8 [ OK ] 21 4.0.9 [ OK ] 22 4.1.17 [ OK ] 23 4.2.8 [ OK ] 24 4.3.5 [ OK ] 25 4.4.1 [ OK ] 26 4.5-rc3 [ OK ] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-02-15header: add phydev_get_addr()Hauke Mehrtens
This adds a phydev_get_addr() function which abstracts the access to the phy address on a mdio bus away. This is needed since commit e5a03bfd87 "phy: Add an mdio_device structure" in the mainline Linux kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-02-12patches: refresh on next-20160104Hauke Mehrtens
1 3.0.101 [ OK ] 2 3.1.10 [ OK ] 3 3.2.76 [ OK ] 4 3.3.8 [ OK ] 5 3.4.110 [ 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.96 [ OK ] 12 3.11.10 [ OK ] 13 3.12.53 [ OK ] 14 3.13.11 [ OK ] 15 3.14.60 [ OK ] 16 3.15.10 [ OK ] 17 3.16.7 [ OK ] 18 3.17.8 [ OK ] 19 3.18.26 [ OK ] 20 3.19.8 [ OK ] 21 4.0.9 [ OK ] 22 4.1.17 [ OK ] 23 4.2.8 [ OK ] 24 4.3.5 [ OK ] 25 4.4.1 [ OK ] 26 4.5-rc3 [ FAIL ] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-02-12patches: add missing includeHauke Mehrtens
media-device.h needs the size of the "struct ida" now, but the include is missing when compile against older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-12-21patches: refresh patches on next-20151218backports-20151218Hauke Mehrtens
1 3.0.101 [ OK ] 2 3.1.10 [ OK ] 3 3.2.74 [ OK ] 4 3.3.8 [ OK ] 5 3.4.110 [ 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.93 [ OK ] 12 3.11.10 [ OK ] 13 3.12.51 [ OK ] 14 3.13.11 [ OK ] 15 3.14.57 [ OK ] 16 3.15.10 [ OK ] 17 3.16.7 [ OK ] 18 3.17.8 [ OK ] 19 3.18.24 [ OK ] 20 3.19.8 [ OK ] 21 4.0.9 [ OK ] 22 4.1.13 [ OK ] 23 4.2.6 [ OK ] 24 4.3.0 [ OK ] 25 4.4-rc3 [ FAIL ] Build on kernel 4.4-rc3 failed because of a bug introduces in kernel 4.4 in this commit: aabc92bbe3cfe4c "net: add __netdev_alloc_pcpu_stats() to indicate gfp flags" Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-12-21patches: convert gpio: change member .dev to .parentHauke Mehrtens
add semantic patch which uses the dev member of struct gpio_chip on kenrel version < 4.5 This change was done in upstream kernel commit 58383c78 "gpio: change member .dev to .parent". Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>