summaryrefslogtreecommitdiff
path: root/patches
AgeCommit message (Collapse)Author
2018-12-06backports: Remove unused code from backport-public_key.hHauke Mehrtens
These functions declared in backport-public_key.h are not implemented in backports, and they were causing warnings because kernel_pkey_params was not declared before. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Add missing include for mt76Hauke Mehrtens
Without the inclusion of linux/module.h, MODULE_FIRMWARE was not declared when compiling against some kernel versions, add it. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Refresh patches on kernel 4.20-rc4Hauke Mehrtens
This patch was merged upstream and removed from backports: * patches/0090-use-skb_pad.patch This patch was manually modified: * patches/0025-usb-sg/usbnet.patch Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Remove BPAUTO_CRYPTO_SKCIPHERHauke Mehrtens
This was added in commit 32751c901728 ("backport: add crypto skcipher interface"), but all the drivers which need it were deactivated in commit cdcec8e6128 ("backports: disable things needing LIB80211 unless SKCIPHER can exist") because it does not compile any more. Remove this code now completely from the tree. lib80211 does not use skcipher any more, but directly uses the crpyto API. since kernel 4.20. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-09-25backports: fix iwlwifi pci device removal patchLuca Coelho
Accidentally, the patch to remove the device removal code from earlier kernels was sent from an intermediate version of the code, so the patch doesn't apply properly. Fix it by updating it to the version that was actually upstreamed. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24Revert "backports: Remove ssb and bcma"Johannes Berg
This reverts commit 1b4e6ad4d927c7998fa578f2d29e0c4ec01a9217. Said commit broke b43 on older kernels (<3.16). Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24patches: make coredump support conditional on 4.17Johannes Berg
On 4.16, the coredump method returns int rather than void. It would be possible to fix that up, but so far I'm too lazy. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24patches: fix "disable" typo in patch filenameJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24patches: Do not remove linux/kmemleak.h includeHauke Mehrtens
This driver has to include linux/kmemleak.h to get kmemleak_not_leak in kernel 4.19. I haven't seen any problem when compiling against multiple other kernels, but didn't test all the 3.X versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backports: Make netdev destructor spatch apply correctly againHauke Mehrtens
The netdev destructor spatch did not apply to the wil6210 driver any more, because there the calls were done in a different order compared to the spatch. Add an additional rule which applies when the order is changed. Fixes: 30a378636e47 ("backports: speed up netdev destructor spatch by two orders of magnitude") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24patches: remove .coredump from struct driver for kernel < 4.16Hauke Mehrtens
Kernel 4.16 added a new .coredump member to the driver structure which can be implemented by drivers. Remove this member on older kernel versions as they do not support this feature. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24patches: make mt76 use skb_pad() instead of __skb_pad()Hauke Mehrtens
__skb_pad() was only added with kernel 4.13. The free_on_error parameter of __skb_pad() is set to constant true, which is also the setting used by skb_pad() so it should be save to use skb_pad() instead. This patch should be added to the mainline Linux kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backports: Remove NFC supportHauke Mehrtens
I am not aware of any user of the NFC coded in backports, at least I haven't seen any patches regarding this. Remove this code to reduce the efforts needed in the backports project. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backports: Remove ssb and bcmaHauke Mehrtens
Use the versions shipped with the kernel instead. bcma and ssb didn't change much in the last few years, most of the changes were related to code only used on embedded devices. Removing this reduces the number of parts we have to backport. b43, b43legacy and brcmsmac work well with the in kernel version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backport: convert int led activate op to void when neededLuca Coelho
In kernel v4.19-rc1, the activate op in struct led_trigger, changed from void to int. To solve this, add a semantic patch to insert a wrapper function that returns void and calls the function that returns int. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> [use <+... ...+> as suggested by Hauke] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backports: improve skb->xmit_more handlingJohannes Berg
Replace the existing skb->xmit_more semantic patch rule with a more generic one that uses a helper inline function. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-24backport: add patch to ignore iwlwifi removal on < 3.14 kernelsLuca Coelho
The iwlwifi driver has a workaround for some PCI bugs that require it to be removed and reinserted. Unfortunately, this doesn'w work on kernels < 3.14, so ignore the actual work function in that case and print out a message instead. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> [rename patch to have a number prefix] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-19patches: make patches apply with kernel 4.19Hauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-19patches: Adapt to new select queue APIHauke Mehrtens
The select queue API was changed in upstream commit 4f49dec9075a ("net: allow ndo_select_queue to pass netdev"). This patch adds a new version of the API for kernel < 4.19 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-19header: Add kvzalloc()Hauke Mehrtens
This adds the kvzalloc() function and allows it to remove the lib-rhashtable.patch patch. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [fix commit message kzalloc -> kvzalloc] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-19backports: Remove unused partsHauke Mehrtens
This removes parts which were only used by subsystems which are not included in backports any more, for example media, bluetooth and Ethernet. The patches which are removed in this commit are not applied to the kernel tree anyway with the default configuration because non of the files get copied. The freezer, media, regulator and sound parts were only used by the already removed media drivers. The flow dissector file is not copied any more. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-19backports: speed up netdev destructor spatch by two orders of magnitudeJohannes Berg
As reported by Hauke, and analyzed by Julia, the netdev destructor spatch is really slow because <... ...> means 0 or more hits, and thus the spatch has to be applied on all files. However, we don't really need it to be this way, so use <+... ...+> which allows it to reject almost all files immediately, cutting down the processing time by more than two orders of magnitude as it only has to touch a handful of files, rather than all. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-09-10patches: remove lib-bucket_locks.patchFelix Fietkau
Obsoleted by kvmalloc/kvmalloc_array backport Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-05-09spatch: adjust to and require 1.0.6Johannes Berg
The spatch tool made an incompatible change in the attribute syntax, adjust to that and require the new version. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-05-02patches: update patches for v4.17-rc1Arend Van Spriel
Few patches do not apply to source code in v4.17-rc1 so updating those. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-03-21backports: Add staging rtlwifi, rtl8188eu and rtl8723bs driverHauke Mehrtens
This adds the staging Realtek drivers which are making use of cfg80211 and mac80211. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-03-21patches: Use old parameter type for DEFINE_TIMERHauke Mehrtens
Use the unsigned long parameters on kernel versions < 4.15 for the DEFINE_TIMER callback. This was changed in Linux mainline commit 24ed960abf1d ("treewide: Switch DEFINE_TIMER callbacks to struct timer_list *") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-03-21patches: refresh on kernel v4.16-rc3Hauke Mehrtens
No manual changes needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-02-23backport: remove pkcs7_verify.c patch hunkLuca Coelho
The change that used to be patched into the pkcs7_verify.c file is now part of newer kernels, so we don't need to patch it anymore. Remove this hunk from verify.patch accordingly. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2018-02-23backport: include lib/bucket_locks.cLuca Coelho
The alloc/free_bucket_spinlocks() functions were moved to a new lib file, namely bucket_locks.c. Add an auto-backport for the bucket_locks.c file and move the patching of the code that moved from rhashtable to bucket_locks.c. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-11-17patches: pre-declare stats64_fn_wrap() to avoid sparse warningsLuca Coelho
The stats64_fn_wrap() function was changed to be not-static so it can be used by usbnet. This causes problems in files that don't export it. Work around that byt just pre-declaring it before the actual definition. Fixes: 5a00d8489c7 ("patches: adapt the stat64 usage for usbnet") Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-17backports: fully add netlink extack for generic netlinkJohannes Berg
The previous backport just made the code compatible, but removed the extack functionality entirely. By ignoring the setsockopt() and just assuming that userspace does in fact support extack (which is true for all of wifi and in fact all users of libnl), we can support full extack functionality even on kernels that don't support it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13gentree: mangle $(srctree)/$(src) directlyJohannes Berg
We used to patch this, before with the genregdb and now with the shipped-certs.c generation - just fix it in code instead so we don't have to deal with different patches. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: remove CRYPTO_CCM backportJohannes Berg
This never actually worked properly as far as I can tell, and now it looks like it won't even compile due to the real crypto_memneq() backport. Just remove it - distro kernels have it enabled and all others should just enable it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: add signature verification codeJohannes Berg
Uh, this was awful. Because the crypto/ things are completely impossible to backport, I've actually implemented this by using mbedtls and embedding the relevant functions it has... The mbedtls code is taken from mbedtls version 2.6.0 and only minimally modified (mostly to remove <string.h> and similar). Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-11backports: remove genregdb Makefile changeJohannes Berg
This piece of code no longer exists. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-21patches: refresh patches on v4.14-rc1Hauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11patches: include export.h in lib/refcount.cJohannes Berg
This isn't automatically included in all kernels, include it explicitly. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11patches: brcmfmac: Fix netdev_set_priv_destructorHauke Mehrtens
On kernel > 4.11.9 the new member priv_destructor should be set in netdev_set_priv_destructor() and not the old destructor member any more, it was removed. This fixes the build on >= 4.11.9. Fixes: 7c827d5ac9c1 ("patches: brcmfmac: fix netdev destructor") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11patches: export bp_usbnet_get_stats64() only if function is addedHauke Mehrtens
Export the bp_usbnet_get_stats64() function only on kernel < 4.11, because this function is only available on such kernel versions. Fixes: 5a00d8489c7 ("patches: adapt the stat64 usage for usbnet") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08compat: avoid usage of kvzalloc() in rhashtable.cHauke Mehrtens
This reverts commit 12e8fd6fd3802 ("lib/rhashtable.c: use kvzalloc() in bucket_table_alloc() when possible") from upstream kernel. Kernel versions older that 4.12 do not have kvzalloc() try to avoid the usage of this. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08patches: brcmfmac: fix netdev destructorHauke Mehrtens
brcmfmac uses a complicated netdev destructor handling. The brcmf_net_attach() function just adds a normal destructor and later the brcmf_add_if() function sets the needs_free_netdev callback. The normal spatch was not applied correctly to this file, add a patch before to try to fx this problem manually. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
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>