Age | Commit message (Collapse) | Author |
|
Upstream commit: 7a6e8b70a956a722f90d551e920c1096a9455b54
The change of the parameters of genl_notify() is in kernel 4.4. This
backport should not be applied for kernel 4.4 and newer kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Upstream commit: 74ec2bcbe4e072baf6d7fc9d78be6df52cdf05cd
This adds the sk_set_bit() and sk_clear_bit() functions in addition to
the renaming of SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA. This is
needed since upstream commit 9cd3e072b0be "net: rename
SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA"
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds the new driver CPTCFG_RTL8XXXU and removes the config option
for CPTCFG_B43_PCMCIA. pcmcia support in b43 is now done in ssb.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
When CONFIG_OF is not set kernel < 3.5 does not provide an empty
implementation of this function, more recent kernels do so.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The return type changed from void to int to return some error code.
Some code is now checking the return value which fails on older kernel
versions when the function returns void.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
inet_frags_uninit_net() was added in commit 1d6119baf06 "net: fix
percpu memory leaks" and is used by the 6lowpan part of ieee802154 in
backports.
percpu_counter_destroy() was added in kernel 3.9, so do not add this
function on older kernel versions. This is currently only used by the
6lowpan part of ieee802154 which is only activated for kernel >= 3.18.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
saa7164-encoder.c uses clamp() with constant values which fails on
kernel version < 3.18 because the code wants to creates values of the
same type and wants to assign variable values to them. The new code
works with this kind of usage, use the new code also on older kernel
versions to fix this problem.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Upstream commit 3b47d30396 "net: gro: add a per device gro flush timer"
added napi_complete_done(). On older kernel versions we will just use
the old napi_complete() function, this should work without any
problems, we only do not get the new improvements which need a more
recent net subsystem.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
commit 2e98a32a274274fca0e6e ("backport: add
of_property_read_u64_array()") added a call
to of_find_property_value_of_size(), which is a
static function, causing compilation error.
Implement it locally as well.
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[remove of_find_property_value_of_size() from backport-3.10.c]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added in commit b31384fa5 "Driver core: Unified
device properties interface for platform firmware".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Instead of using the kernel version to check if we have to add a
backport for ACPI_COMPANION check for it directly. RedHat 7 backported
this change to their kernel and writes a warning without this change.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
These functions were added in commit c648a0138 "netlink: add nla_get
for le32 and le64"
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This was added to the mainline kernel in commit ac4f832eb2 "mm,
page_alloc: distinguish between being unable to sleep, unwilling to
sleep and avoiding waking kswapd". Instead of __GFP_KSWAPD_RECLAIM the
old mm code did not got any flag.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
We also have to add the prototype of ktime_t ktime_get(), because
including linux/hrtimer.h caused some strange build errors.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Commit d49dc5e76 "mei: bus: use mei_cldev_ prefix for the API
functions" changed the prefix for these functions. On older kernel
versions they are still exported under their old name, name our code
use the old names on older kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Since commit 84b00607aeb8 ("mac80211: use ktime_get_seconds")
mac80211 uses ktime_get_seconds(). This patch provide a backport
using ktime_get_ts() for it.
[commit message and time64_t taken from Arend's patch]
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Handle the recent genl_notify() prototype change.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The prototype for this function is changing upstream, so backport
a copy of the new one that has a bool * argument instead of u32 *.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[debugfs_{read,write}_file_bool() is in kernel 4.3, do not add it there]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Since commit 69b5f4da2636 ("bcma: add support for population subnodes
also when build as module") the bcma driver uses the function
of_platform_default_populate(). This patch provides the stub function.
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The upstream commit that added it was backported in 4.1.9
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This removes the old driver IEEE802154_FAKEHARD and adds two new
drivers.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
spi_sync_transfer() and spi_message_init_with_transfers() are used by
the st-nci nfc driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This is used by the brcmfmac driver since mainline commit 4e70f214.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds support for gcc 5.
In kernel version >= 3.18 this is shipped with the kernel, in kernel
version >= 4.2 all the gcc version specific files are merged into one
file.
This patch got backported to many kernel versions, but ignore it
because it is always the same file.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
mei_cl_register_event_cb() got a new parameter in bb2ef9c39d, currently
it is used in the same way as before so just ignoring it should be save.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds page_is_pfmemalloc() which is used by the igb driver.
The direct access to page->pfmemalloc was replaced by this function
call in 54d985ce23 upstream commit.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds an empty implementation of acpi_dev_remove_driver_gpios() for
kernel version < 3.19, on these versions we do not support these acpi
features.
This is used by hci_bcm.c
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
My patches to remove the out-of-line EWMA implemenation (under
Kconfig symbol AVERAGE) went into net-next, so now we only need
to backport DECLARE_EWMA as the only necessary macro.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
of_platform_populate() is not added when CONFIG_OF_DEVICE is not set on
kernel < 3.4.
The same is true for of_default_bus_match_table on kernel < 3.11. we do
not need to provide a real implementation of of_default_bus_match_table
because it will be accessed.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
In older kernel versions the first parameter is "struct inet_frag_queue
*q", now it is "struct netns_frags *nf", This patch adds the new
versions of this function to all kernel versions older than 4.3.
This change was done in upstream Linux kernel in this commit:
commit 0e60d245a0be7fdbb723607f1d6621007916b252
Author: Florian Westphal <fw@strlen.de>
Date: Thu Jul 23 12:05:38 2015 +0200
inet: frag: change *_frag_mem_limit functions to take netns_frags as argument
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
seq_hex_dump() is needed by the wil6210 driver and was added in this
commit:
commit 96e6df4cfc6ecf91097eb8eec55983a5f102a477
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Fri Jul 24 09:11:53 2015 +1000
seq_file: provide an analogue of print_hex_dump()
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
In the kernel hex_dump_to_buffer() got an int return value, returning
the amount of bytes written into the buffer. This new return value is
needed by seq_hex_dump() which we also backport.
This change was done in the following commit in mainline Linux kernel:
commit 114fc1afb2de7dec40da137dc2a55cd38fc220f2
Author: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Thu Feb 12 15:02:29 2015 -0800
hexdump: make it return number of bytes placed in buffer
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
An ifdef for the kernel version was missing around the header of
debugfs_create_devm_seqfile() and the LINUX_BACKPORT() was also not
added.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The media framework now uses the frame vector code which is only
available from kernel 4.2 onwards. This backports the code.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The get_user_pages_locked() function is needed by the frame vector code
which will be added in the next patch. While adding that, this patch
also replaces the get_user_pages_unlocked() function with the original
version from the next kernel.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The led_trigger_remove() function is exported on older kernel versions,
but there is no pubic prototype for this function. Now the first driver
makes use of this function and this patch adds the prototype.
There is no LINUX_BACKPORT() guard here because we want it to point to
the original function which is exported normally.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
It should be save to just copy it.
This was added in this upstream commit:
commit 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7
Author: Vincent Cuissard <cuissard@marvell.com>
Date: Thu Jun 11 11:25:47 2015 +0200
NFC: nci: add generic uart support
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This is not used by any code in backports and was also removed from the
mainline kernel.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
In the mainline kernel the kernel module parameter locking is not
protected by a global lock any more, but each module has its own lock
now. This resulted in some changes in the api. This patch converts
calls to the new api to the old one.
This backports the changes done in this commit:
commit b51d23e4e9fea6f264d39535c2a62d1f51e7ccc3
Author: Dan Streetman <ddstreet@ieee.org>
Date: Wed Jun 17 06:18:52 2015 +0930
module: add per-module param_lock
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The same include guard is also used in backport/backport-include
/asm-generic/barrier.h which prevents both files from being included at
the same time.
Reported-by: Martin Tippmann <martin.tippmann@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The net/route.h header is missing when compiling against the android msm
kernel. Explicitly add it here to make the kernel compile.
Signed-off-by: Florian Grandel <fgrandel@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
When building the kernel there are lots of warnings like this:
drivers/net/wireless/ath/ath10k/ce.c:404:21: warning: unused variable ‘ar_pci’ [-Wunused-variable]
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
They are caused by an empty lockdep_assert_held() which does nothing
with this variable in kernel version < 3.9. This patch replaces this
macro with the version from a recent kernel and silence this warning.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This is needed by the mt7601u driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The mt7601u driver makes use of some of these functions and they are
not available on kernel version < 3.19.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
tty_set_termios() was not exported any more in kernel 4.0-rc1 (commit
632f32e21) and exported again in kernel 4.1-rc2 (commit b00f5c2dc).
This patch adds the backport for kernel 4.0.X, we can not detect kernel
4.1-rc1, which would also need this fix, so bluetooth will have a
compile error on kernel 4.1-rc1, kernel 4.1-rc2 and more recent
versions will work.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Before we only copied the hdmi.h header file and not the driver. Now
some other drivers need the hdmi driver code, also copy it now too.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
mac80211 makes use of the new AEAD crypto api since commit 957e0fe629.
This patch provides a backport layer which converts the new API to the
old one used in older kernel versions. This backport is based on this
mainline commit: 996d98d85.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Cc: Johannes Berg <johannes.berg@intel.com>
|