summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-08change protection of module_param_hw_arrayJohannes Berg
Some (distro) kernels backported this, so simply protect the backport definition with #ifndef. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08header: acpi: fix version commentJohannes Berg
I intended to not even apply the patch, but did anyway... Fix the comment now. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06copy-list: add quantenna qtnfmac driverHauke Mehrtens
This driver was compile tested on kernel 3.18 and 4.9. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: add dma_wmb()Hauke Mehrtens
This is used by the qtnfmac driver. This was added in commit 1077fa36f23e259 ("arch: Add lightweight memory barriers dma_rmb() and dma_wmb()") 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-06dependencies: add deps for struct acpi_gpio_mappingHauke Mehrtens
These NFC drivers are using struct acpi_gpio_mapping which was added in kernel 3.19. Do not try to build them on older kernel versions where this structures is not available. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: add offsetofend()Hauke Mehrtens
offsetofend() was moved from vfio.h to stddef.h in commit 3876488444e7123 ("include/stddef.h: Move offsetofend() from vfio.h to a generic kernel header") for kernel 4.1. Add it again to stddef.h so it is available in more include paths. 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-06backport: add __print_array()Hauke Mehrtens
This is used in the tracing system and needed by wireless now, it was introduced in commit 6ea22486ba46bc ("tracing: Add array printing helper"). This code is copied from kernel 4.0. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: rename wait_queue_entry_t to wait_queue_tHauke Mehrtens
In kernel 4.13 wait_queue_t was renamed to wait_queue_entry_t, reverse this for older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: add get_random_u32()Hauke Mehrtens
This was renamed in upstream kernel and changed from unsigned int to u32. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: backport devm_acpi_dev_add_driver_gpios()Hauke Mehrtens
This is used by some NFC drivers to get information from the ACPI. This was added in kernel 4.13, but backporting it to older kernel versions than 3.19 is hard because such old kernel versions do not even have struct acpi_gpio_mapping. This only adds the empty version of this function as this normally needed some extra support in the generic ACPI code and I do not care about this functionality. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: add module_param_hw_array()Hauke Mehrtens
This macro is used for some module parameters. This hwtype was newly introduced for module parameters in kernel 4.12, just ignore 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: 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-06header: backport mii_ethtool_{get,set}_link_ksettings()Hauke Mehrtens
This function was added in kernel 4.10 and is needed by the usbnet drivers. These functions were added in upstream commit: bc8ee596afe8f3 ("net: mii: add generic function to support ksetting support") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: skbuff: fix signature of skb_put(), skb_push() and __skb_push()Hauke Mehrtens
In older kernel versions these functions returned a unsigned char*, now they return a void *. This change was done in upstream commit d58ff35122847a8 ("networking: make skb_push & __skb_push return void pointers") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-06header: skbuff: add skb_put_zero(), skb_put_data() and skb_put_u8()Hauke Mehrtens
These functions were added in kernel 4.13 and are used by many driver now. This was added in the following upsteram comits: e45a79da863c19 ("skbuff/mac80211: introduce and use skb_put_zero()") 59ae1d127ac0ae ("networking: introduce and use skb_put_data()") 634fef61076d64 ("networking: add and use skb_put_u8()") 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-06copy-list: remove wil6210_uapi.hAceLan Kao
>From below commit, the file has been removed a520b49 wil6210: remove ioctl interface 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-09-06backport: fix netdev destructor backport for v4.11.9Luca Coelho
The patch that changed the netdev destructor code was backported to v4.11.9, so handle that in the backport. Signed-off-by: Luca Coelho <luciano.coelho@intel.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-30copy-list: remove nfc platform data headersArend Van Spriel
These files got removed from upstream kernel so they result in backport failure. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@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-06-16backports: add lockdep_rtnl_is_held() for < 3.13 without CONFIG_PROVE_LOCKINGLuca Coelho
In kernels earlier than 3.13, lockdep_rtnl_is_held() is only declared in rtnetlink.h when CONFIG_PROVE_LOCKING is not set. Backport this function if that's the case. Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-06-16backports: provide backport of devcoredump when disabled in kernels >= 3.18Luca Coelho
When devcoredump is not enabled in a kernel that supports it, we would only use stubs for the devcoredump in the backports. Allow the backport to compile when that's the case. Signed-off-by: Luca Coelho <luciano.coelho@intel.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-04-26backports: extend magic to 6 possible argumentsJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-31backports: provide backport for setup_deferrable_timer()Arend Van Spriel
Since commit f8f118ceaa56 ("mac80211: Use setup_timer instead of init_timer") mac80211 needs setup_deferrable_timer() which is not available in older kernels. Provide a backport in linux/timer.h. Really need two flavors of backport to support up to 3.0 kernel. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-31backports: add dummy include/linux/sched/signal.hArend Van Spriel
Simply including linux/sched.h for older kernels not carrying this file. This new include file was introduced by commit 3f07c0144132 ("sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h>"). Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-31backports: copy average.h from original kernelJohannes Berg
Instead of maintaining our own version of average.h, just copy the upstream version while generating the backport. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-03-31backports: add backport for idr_removeArend Van Spriel
Since commit d3e709e63e97 ("idr: Return the deleted entry from idr_remove") the function signature changed so provide a backport which does a idr_find() and subsequent idr_remove(). Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> 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-27git-tracker: add Change-Id to all types of commits if configuredJohannes Berg
My previous commit to optionally add a Change-Id missed two out of three types of commits internally created by the tracker, add the Change-Id to them as well. Fixes: 7d89b544a1d9 ("git-tracker: add an option to add a Change-Id to commits") 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-23backports: add definitions S32_MAX and S32_MINArend Van Spriel
Since commit 20e32810bcf4 ("cfg80211: Accept multiple RSSI thresholds for CQM") the backports need to have S32_MAX and S32_MIN which were introduced in kernel.h since v3.14. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> 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-14backports: add "MBIM Extended Functional Descriptor" structure definitionArend Van Spriel
commit 477c6d345604 ("backports: add USB_CDC_MBIM_EXTENDED_TYPE if needed") added define but the structure definition that goes with it is also needed. As they were introduced in the same kernel version we can add the structure with the same #ifndef USB_CDC_MBIM_EXTENDED_TYPE. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> 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: add USB_CDC_MBIM_EXTENDED_TYPE if neededJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: fix version checks for debugfs_real_fops()Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: remove some stray whitespaceJohannes Berg
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: remove erroneously added compiler optionsJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: add dev_coredumpsg() where neededJohannes Berg
Add dev_coredumpsg() on kernels where dev_coredumpm() is present but _sg() isn't, and restrict building appropriately. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: add cdc_parse_cdc_header()Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-07backports: make NFC_WILINK depend on 4.8Johannes Berg
Yes, that's a very recent kernel - if anyone cares they can fix it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>