summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-13ckmake: use white instead of bluev4.14-rc4-1pendingJohannes Berg
Blue on black is really hard to read, use white on black. 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: reduce mbedtls bignum stack usageJohannes Berg
mbedtls_mpi_exp_mod() uses almost 4k of memory, which really shouldn't be on the stack in the kernel. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: add fixed version of __verify_pcpu_ptrJohannes Berg
Some parts of the code (ath_cmn_is_fft_buf_full) use a per-CPU pointer to an array, so we need to backport the fixed version or this fails to compile in 3.10/3.11. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: no longer support kernels < 3.10Johannes Berg
Since CRYPTO_CMAC was introduced in 3.10, and mac80211 depends on it, we basically get nothing out of it anyway. I'm not removing the support code (yet) since it actually compiles, and perhaps somebody has a need for (certain) kernel versions lower than 3.10. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports-update-manager: use KPATH variableJohannes Berg
There's already a variable for the URL, use it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: RSI_SDIO depends on 3.13Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: make QTNFMAC_PEARL_PCIE depend on 3.13Johannes Berg
It needs pcie_get_mps() which was only exported in that kernel. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: add netdev_upper_dev_link() extack argumentJohannes Berg
But make it optional (using magic.h) to let this still work on kernels that didn't change the argument. 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-13backports: add bin2hex()Johannes Berg
This is needed in the key backports in the next patch. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: add hex_byte_packJohannes Berg
This was just renamed at some point, needed by bin2hex() in the next patch. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13copy-list: move mpls includesJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: add mktime64()Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-13backports: move headers to be clearerJohannes Berg
Those uapi header files are always needed, so don't mark them as being for wwan drivers. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-12backports: add -Wno-pointer-sign on <= 4.3Johannes Berg
This gives annoyingly many warnings on such kernels. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-12gentree: add --git-debug as alias to --gitdebugJohannes Berg
I always find myself typing --git-debug, so let's just add that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-11backports: add crypto_memneq()Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-11backports: add OPTIMIZER_HIDE_VARJohannes Berg
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-10-11backports: backport from_timer() and timer_setup()Johannes Berg
These are needed for Kees's new timer API, and luckily he already provided them for conversion purposes :-) Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-11backports: fix some dev_coredumpm() problemJohannes Berg
Sometimes the argument is const, sometimes not, just cast away that difference. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-10-05header: fix compile error on PowerPC (PPC_85xx)Hauke Mehrtens
Including linux/interrupt.h in linux/hrtimer.h causes this error message on PowerPC builds on x86, ARM and MIPS it works: CC [M] /backports-4.14-rc2-1/compat/main.o In file included from /backports-4.14-rc2-1/backport-include/linux/printk.h:5:0, from ./include/linux/kernel.h:13, from /backports-4.14-rc2-1/backport-include/linux/kernel.h:3, from ./include/linux/list.h:8, from /backports-4.14-rc2-1/backport-include/linux/list.h:3, from ./include/linux/module.h:9, from /backports-4.14-rc2-1/backport-include/linux/module.h:3, from /backports-4.14-rc2-1/compat/main.c:1: ./include/linux/ratelimit.h: In function 'ratelimit_state_exit': ./include/linux/ratelimit.h:62:11: error: dereferencing pointer to incomplete type 'struct task_struct' current->comm, rs->missed); ^ ./include/linux/printk.h:279:37: note: in definition of macro 'pr_warning' printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__) ^ ./include/linux/ratelimit.h:61:3: note: in expansion of macro 'pr_warn' pr_warn("%s: %d output lines suppressed due to ratelimiting\n", ^ The backport of the hrtimer_start() functions needs the linux/interrupt.h because some parts are defined there. Fix this by moving the hrtimer_start() backport to the linux/interrupt.h backport header file. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-21header: add ether_addr_to_u64() and u64_to_ether_addr()v4.14-rc2-1Hauke Mehrtens
These function were added in commit 5952758101 ("dsa: mv88e6xxx: Optimise atu_get") and are now used by mwifiex. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-21header: add UUID_STRING_LENHauke Mehrtens
This was added in commit 2b1b0d6670 ("lib/uuid.c: introduce a few more generic helpers") and is used by ath10k. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-21header: add uuid backportsHauke Mehrtens
This backports the following upstream commits: f9727a17db9: ("uuid: rename uuid types") df33767d9fe: ("uuid: hoist helpers uuid_equal() and uuid_copy() from xfs") ath10k now makes use of them. Some parts should go into the uapi/linux/uuid.h file, but then #include_next hack is not working correctly any more, so place it all into the normal file. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> 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-15backports: remove pm_system_wakeup(), add MWIFIEX dependencyJohannes Berg
Since only MWIFIEX needs pm_system_wakeup(), and that can't be backported properly, remove it again and add a dependency for MWIFIEX on kernel 3.18. 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-11backports: add devm_add_action()Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11dependencies: make MWIFIEX_PCIE depend on kernel > 3.16Hauke Mehrtens
This driver needs the reset_notify member from the struct pci_error_handlers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11dependencies: make NFC_TRF7970A depend on kernel > 3.17Hauke Mehrtens
devm_gpiod_get_index_optional() with flags attribute was added with kernel 3.17, do not build drivers using 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-11header: add pm_system_wakeup()Hauke Mehrtens
This function was added in kernel 3.18 in commit 068765ba7987e ("PM / sleep: Mechanism for aborting system suspends unconditionally") In our implementation we only call pm_system_wakeup(() and do not handle the abortion of the current suspend process. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11header: add __get_dynamic_array_lenHauke Mehrtens
This was added in kernel 3.16 in commit beba4bb096201 ("tracing: Add __get_dynamic_array_len() macro for trace events") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11header: add IOMEM_ERR_PTR()Hauke Mehrtens
This was added in kernel 3.17 in commit efd342fb0031a1 ("of: Provide a function to request and map memory") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-11backport: add ethtool_convert_legacy_u32_to_link_mode()Hauke Mehrtens
This function was added in kernel 4.7 in commit 6d62b4d5fac62 ("net: ethtool: export conversion function between u32 and link mode") and is used by mii_ethtool_get_link_ksettings() in the backport-4.10.c file. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> 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-08backports: add trace_seq_buffer_ptr() where neededJohannes Berg
Some new code needs this, add it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08backport: add some ethtool conversion functionsJohannes Berg
These weren't always exported, so we need them on some kernels. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08Revert to using pycocciJohannes Berg
This reverts commit 3756f63528b044d6487bac046ad2972bc21583a5 and commit 709e720caa66816f32c6adc6050549fa40b9cf52 since using built-in concurrency caused problems with --cocci-grep, and not using that makes things slower. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08gentree: remove --use-coccigrepJohannes Berg
This is causing trouble, remove it for now. 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-08backports-update-manager: split --force into --yes and --no-keepJohannes Berg
--yes allows skipping the question --no-keep allows removing all installed data and reinstalling --force does both (as before) Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08backport-update-manager: automatically get list of ubuntu kernelsJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08add (automatic) refcount backportJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08headers: atomic: add atomic_try_cmpxchg()Johannes Berg
This is needed for the refcount code. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-09-08use spatch's built-in concurrencyJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>