summaryrefslogtreecommitdiff
path: root/patches
AgeCommit message (Collapse)Author
2020-03-21patches: Refresh on top of kernel 5.4.27linux-5.4.yHauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2020-03-21backports: patch lib/refcount.c to make sparse happyJohannes Berg
Upstream commit e1e5fc5c84336b1b4e1354895fffafa7b2524bd7 We're testing sparse, so don't want warnings here. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2020-03-21backports: Do not access rx_count and rx_list attributesHauke Mehrtens
Upstream commit a4ff4832887a4c2aa3b7599ae784290b3d2ff041 The rx_count and rx_list attributes were only added in kernel 5.4 in commit 323ebb61e32b ("net: use listified RX for handling GRO_NORMAL skbs") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Link: https://lore.kernel.org/r/20200126231336.2573-1-hauke@hauke-m.de Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2019-11-21backports: Adapt to changes to skb_get_hash_perturb()Hauke Mehrtens
The skb_get_hash_perturb() function now takes a siphash_key_t instead of an u32. This was changed in commit 55667441c84f ("net/flow_dissector: switch to siphash"). Use the correct type in the fq header file depending on the kernel version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-10-09backports: patches: Refresh against kernel 5.4-rc2Hauke Mehrtens
Manual modifications where needed to make the following patch apply: patches/0013-fix-makefile-includes/rtw88.patch Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-08-14patches: Do not use GRO_CONSUMED on kernel < 4.11Hauke Mehrtens
GRO_CONSUMED was added in kernel commit 25393d3fc055 ("net: Prepare gro for packet consuming gro callbacks") in kernel 4.11. Just remove it for older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-08-14patches: Add include in cfg80211.hHauke Mehrtens
cfg80211.h uses struct nla_policy in two places, but does not include net/netlink.h directly. Because of this missing include the rename to struct nla_backport_policy is not applied and this results in type mismatch errors when compiling backports. With this additional include the type is renamed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-08-14backport: Add genl_callback_extack() functionHauke Mehrtens
The struct netlink_callback got a new extack attribute in commit 4a19edb60d02 ("netlink: Pass extack to dump handlers") in kernel 4.20. Use a function instead of directly accessing it to return NULL on older kernel versions, the code should handle NULL. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-08-14header: Remove skb_xmit_more()Hauke Mehrtens
The xmit_more member was removed from struture sk_buff and the skb_xmit_more() function is not used in backports any more, just remove this code as it does not compile any more on kernel 5.2 and more recent. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-08-14patches: Refresh patches against kernel 5.3-rc4Hauke Mehrtens
No manual changes needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06patches: rtw88: Add missing include on kernel 3.18Hauke Mehrtens
On kernel 3.18 linux/module.h is not indirectly included in this driver. On some other kernel version linux/interrupt.h is not indirectly included, but needed. This fixes some compile problems in the rtw88 driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06patch: Remove usage of DMI_PRODUCT_SKUHauke Mehrtens
DMI_PRODUCT_SKU was added in kernel 4.18, do not use it on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-06-30patches: Make patches apply on top of kernel 5.2-rc6Hauke Mehrtens
The cordic.c file was moved and the driver from drivers/staging/rtlwifi/ was removed in mainline kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-06-26patches: update select queue patchesArend van Spriel
The select queue parameters changed so the patches need to be updated as well. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> [Fix compile on kernel > 4.19] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Refresh patches on top of 5.1-rc2Hauke Mehrtens
No manual changes needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Add missing include for brcmfmacHauke Mehrtens
When building against kernel 4.8, 3.14 and older, brcmfmac failed because struct sk_buff was not declared in brcmfmac/bus.h. This is used in the brcmf_bus_ops.txdata() callback. I do not know why this was working before. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: remove mt76.patchAceLan Kao
The patch patches/0013-fix-makefile-includes/mt76.patch was added in upstream Linux commit 85b7e2acd31b ("mt76: Add missing include of linux/module.h") which was added in v5.1-rc1 Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
2019-03-28backports: update iwlwifi pci device removal patch for v5.0Luca Coelho
The code surrounding the #ifdef we add has changed. Update the patch accordingly. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-02-11backports: refresh patches on top of 5.0-rc6v5.0-rc6-1Hauke Mehrtens
The patch patches/0086-rtl8723bs-no-extern-inline.patch was added in upstream Linux commit 97715058b70d ("staging: rtl8723bs: Fix build error with Clang when inlining is disabled") which was added in v5.0-rc4. 1 3.10.108 [ LINK ] 2 3.11.10 [ LINK ] 3 3.12.74 [ OK ] 4 3.13.11 [ LINK ] 5 3.14.79 [ LINK ] 6 3.15.10 [ LINK ] 7 3.16.62 [ OK ] 8 3.17.8 [ LINK ] 9 3.18.134 [ OK ] 10 3.19.8 [ LINK ] 11 4.0.9 [ LINK ] 12 4.1.52 [ OK ] 13 4.2.8 [ LINK ] 14 4.3.6 [ LINK ] 15 4.4.174 [ OK ] 16 4.5.7 [ OK ] 17 4.6.7 [ OK ] 18 4.7.10 [ OK ] 19 4.8.17 [ OK ] 20 4.9.155 [ OK ] 21 4.10.17 [ OK ] 22 4.11.12 [ OK ] 23 4.12.14 [ OK ] 24 4.13.16 [ OK ] 25 4.14.98 [ OK ] 26 4.15.18 [ OK ] 27 4.16.18 [ OK ] 28 4.17.19 [ OK ] 29 4.18.20 [ OK ] 30 4.19.20 [ OK ] 31 4.20.7 [ OK ] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
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>