backports: backport hex2bin()

This changed from not having a return value to having one,
so backport the version that has it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
gentree: combine spatches (unless using --gitdebug)

Since spatch is rather slow, but can handle multiple spatches
concatenated in a single file, just do that and run it only
once rather than for each spatch. That shaves off some of the
runtime (startup etc. and finding affected files.)

On my system, I go from

real    9m42.616s
user    8m48.352s
sys     0m22.884s

to

real    9m1.948s
user    8m40.108s
sys     0m12.088s

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add devm_kmalloc()

devm_kmalloc() was added in kernel 3.13. To backport it we replace the
calls with devm_kzalloc() instead.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add netdev_notify_peers()

netif_notify_peers() was renamed to netdev_notify_peers() in kernel
3.7. Replace the calls to netdev_notify_peers() with
netif_notify_peers().

Some older kernel versions do not even have netif_notify_peers(), there
we just remove the call, currently it is only used in the 6lowpan code
and I assume it will still work, but not so good.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add ARPHRD_6LOWPAN

This adds ARPHRD_6LOWPAN to if_arp.h

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add include/trace/events/v4l2.h file

v4l2 now supports tracing and needs a new header file that was missing.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: fix number of arguments of phy_connect()

The flags argument was removed from phy_connect in this commit:

commit f9a8f83b04e0c362a2fc660dbad980d24af209fc
Author: Florian Fainelli <florian@openwrt.org>
Date:   Mon Jan 14 00:52:52 2013 +0000

    net: phy: remove flags argument from phy_{attach, connect, connect_direct}

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: make b44 depend on kernel > 2.6.28

The mdio bus functions where introduced in that version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: remove usage of members of struct property for kernel < 2.6.39

struct property is missing in the general header files in older kernel
versions. There are different versions of this header depending on the
architecture code in use. This removed the access to any members of
struct property for older kernel version when CONFIG_OF is not set.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add include/net/af_ieee802154.h file

This file was added in kernel 2.6.32 and is now needed by bluetooth.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: remove usage of addr_assign_type in 6lowpan.c

The bluetooth 6lowpan code now accesses the addr_assign_type member of
struct netdev, which is not available in older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: backport multicast list handling in iwlwifi mvm

Backport multicast list handling for kernel < 2.6.35 in iwlwifi mvm
driver.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: remove CRC8 backport

This is not used by any driver any more. brcmsmac was the only driver
selecting this, but did not used it since some months, now it does not
even select it any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add printk_ratelimited()

This adds the backport for some printk_ratelimited() functions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: build some regulator drivers only with recent kernels

When these drivers are build with older kernel versions we get build
errors.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: copy include/uapi/linux/vsp1.h

This header file is now needed by a media driver.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: fix i2c_add_mux_adapter() parameters

The class parameter was added in kernel 3.7 to i2c_add_mux_adapter()
and could just be ignored by older kernel versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: update kernel versions

Update to current versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: refresh on next-20131224

manual changes done to:
patches/collateral-evolutions/network/25-multicast-list_head/include_net_mac80211.patch
patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_driver-ops.patch
patches/collateral-evolutions/network/25-multicast-list_head/net_mac80211_iface.patch
patches/collateral-evolutions/network/64-b44-32bit-stats/drivers_net_ethernet_broadcom_b44.patch
patches/collateral-evolutions/network/70-umode_t-api-change/drivers_net_wireless_ath_ath9k_debug.patch

1   2.6.25              [  OK  ]
2   2.6.26              [  OK  ]
3   2.6.27              [  OK  ]
4   2.6.28              [  OK  ]
5   2.6.29              [  OK  ]
6   2.6.30              [  OK  ]
7   2.6.31              [  OK  ]
8   2.6.32              [  OK  ]
9   2.6.33              [  OK  ]
10  2.6.34              [  OK  ]
11  2.6.35              [  OK  ]
12  2.6.36              [  OK  ]
13  2.6.37              [  OK  ]
14  2.6.38              [  OK  ]
15  2.6.39              [  OK  ]
16  3.0.101             [  OK  ]
17  3.1.10              [  OK  ]
18  3.2.54              [  OK  ]
19  3.3.8               [  OK  ]
20  3.4.77              [  OK  ]
21  3.5.7               [  OK  ]
22  3.6.11              [  OK  ]
23  3.7.10              [  OK  ]
24  3.8.13              [  OK  ]
25  3.9.11              [  OK  ]
26  3.10.27             [  OK  ]
27  3.11.10             [  OK  ]
28  3.12.8              [  OK  ]
29  3.13-rc8            [  OK  ]

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add prefix infront of led_blink_set()

led_blink_set is also exported by the RedHat 6.5 kernel and collides
with backports when loading the compat.ko module. This fixes the
problem by prefixing the symbol.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>