Age | Commit message (Collapse) | Author |
|
Cordic was added in commit 10f8113ecb "lib: cordic: add library module
providing cordic angle calculation" in kernel 3.1, we do not need the
backport for more recent kernel versions.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This option should only be activated when HAVE_GENERIC_DMA_COHERENT is
not set on kernel < 3.8. Kernel 3.9 includes this function
unconditionally when HSA_DMA is set, on older kernel versions this
depends on HAVE_GENERIC_DMA_COHERENT
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds the devm_kasprintf() function added in mainline Linux kernel
commit 75f2a4ead "devres: Add devm_kasprintf and devm_kvasprintf API"
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This adds a phydev_get_addr() function which abstracts the access to
the phy address on a mdio bus away. This is needed since commit
e5a03bfd87 "phy: Add an mdio_device structure" in the mainline Linux
kernel.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added to the mainline Linux kernel in commit
e7f4dc353 "mdio: Move allocation of interrupts into core".
This will not work when someone requests irqs for the phys and does not
use polling mode
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added to the mainline Linux kernel in commit
2220943a2 "phy: Centralise print about attached phy".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added to the mainline Linux kernel in commit 7f854420
"phy: Add API for {un}registering an mdio device to a bus."
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
phydev_name() was added to the mainline Linux kernel in commit
84eff6d19 "phy: add phydev_name() wrapper".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
[add parameter to define]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Backport:
commit 8f57e4d930d48217268315898212518d4d3e0773
Author: Michal Nazarewicz <mina86@mina86.com>
Date: Fri Jan 15 16:57:58 2016 -0800
include/linux/kernel.h: change abs() macro so it uses consistent return type
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This backports:
commit a188222b6ed29404ac2d4232d35d1fe0e77af370
Author: Tom Herbert <tom@herbertland.com>
Date: Mon Dec 14 11:19:43 2015 -0800
net: Rename NETIF_F_ALL_CSUM to NETIF_F_CSUM_MASK
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[use NETIF_F_ALL_CSUM instead of (NETIF_F_V4_CSUM | NETIF_F_V6_CSUM)]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added to the mainline kernel in commit eb18cba7
"math64: New separate div64_u64_rem helper" and is now used the virtual
video test driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This was added to the mainline kernel in commit 3bc8f29b14 "new helper:
memdup_user_nul()" and is now used by multiple drivers.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
NETIF_F_SCTP_CSUM was renamed to NETIF_F_SCTP_CRC in commit 53692b1de
"sctp: Rename NETIF_F_SCTP_CSUM to NETIF_F_SCTP_CRC" make new code
still work with old kernel.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
no_seek_end_llseek() was added with kernel 4.5 in commit fb1d259e4 "new
helpers: no_seek_end_llseek{,_size}()". This is used by wlcore.
generic_file_llseek_size() is only available in kernel >= 3.2.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This small helper inline was added in 3.17, we want to use it now
so need to backport it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
[add LINUX_BACKPORT]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Add BIT_ULL() to bitops.h, this is only available since 3.13.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Since commit 34182eea36 "moduleparam: use __UNIQUE_ID()" the
__MODULE_INFO macro uses __UNIQUE_ID and not the line number to
generate the constants.
This is needed to prevent a build error in brcmfmac which now uses the
BRCMF_FW_NVRAM_DEF macro which calls MODULE_FIRMWARE two times. The
__LINE__ macro will return the same line for both calls and the
compiler would generate the same global variable name two times with
the same name in older kernel versions, which will make the build fail.
Using __UNIQUE_ID() fixes this problem.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
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>
|
|
The change done in backports commit b9100fac "header: include old media
header files from new positions" is also needed for kernel 4.4.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
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>
|
|
led_set_brightness_sync() is not available in kernel 4.4-rc3, add it
also for this kernel version. In addition fix the LINUX_BACKPORT line.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The netif_tx_napi_add() backport is also needed for kernel 4.4. This
was missing in commit 50ad56a5154 "header: add netif_tx_napi_add()".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This was added to skbuff.c in 3.19. Backport it for older
kernels.
iwlwifi will need this soon.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[move skb_ensure_writable out of CONFIG_DEBUG_FS, use EXPORT_SYMBOL_GPL(), include linux/skbuff.h]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Note that TSO core helpers have been implemented in 3.19,
but support for IPv6 was added in 4.4 only.
iwlwifi will soon need this.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
[use skb_frag_page(frag), move the includes to the top and add missing ones.]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Older kernel versions do not support to only set NAPI for TX queues, so
call the normal NAPI function and do it also for the used RX part.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This method is declared in the header sine a long time, but the
function is not exported since 3.17. Add it to backports, but rename it
so it will not collide with the original version if it gets exported.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This function was added in commit 74a7f0844 "devicetree: add helper
inline for retrieving a node's full name".
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The media header files were reorganized and the platform header files
are now moved to include/linux/platform_data/media/. place some dummy
files there and include the original files from there.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
The smp_mb__after_atomic definition is in barrier.h in the mainline,
but we currently include the backport in atomic.h. This may cause
problems with certain include chain combinations.
Move it to the correct place.
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
This code is already in asm/barrier.h and that should always be
included when asm-generic/barrier.h is.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
asm/barrier.h was created in kernel version 3.4, before that version
the code was in asm/atomic.h. Include it so we can add code to
asm/barrier.h and use it also in kernel < 3.4.
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>
|