summaryrefslogtreecommitdiff
path: root/backport
AgeCommit message (Collapse)Author
2014-01-19backports: fix led_trigger warning with old kernel versionsHauke Mehrtens
This fixes the following warning: /drivers/net/wireless/at76c50x-usb.c: In function ‘at76_mod_init’: /drivers/net/wireless/at76c50x-usb.c:2472:2: warning: passing argument 2 of ‘led_trigger_register_simple’ from incompatible pointer type [enabled by default] led_trigger_register_simple("at76_usb-tx", &ledtrig_tx); ^ In file included from /backport-include/linux/leds.h:3:0, from /drivers/net/wireless/at76c50x-usb.c:45: include/linux/leds.h:97:13: note: expected ‘struct led_trigger **’ but argument is of type ‘struct backport_led_trigger **’ extern void led_trigger_register_simple(const char *name, ^ /drivers/net/wireless/at76c50x-usb.c: In function ‘at76_mod_exit’: /drivers/net/wireless/at76c50x-usb.c:2484:2: warning: passing argument 1 of ‘led_trigger_unregister_simple’ from incompatible pointer type [enabled by default] led_trigger_unregister_simple(ledtrig_tx); ^ In file included from /backport-include/linux/leds.h:3:0, from /drivers/net/wireless/at76c50x-usb.c:45: include/linux/leds.h:99:13: note: expected ‘struct led_trigger *’ but argument is of type ‘struct backport_led_trigger *’ extern void led_trigger_unregister_simple(struct led_trigger *trigger); ^ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-19backports: add prefix infront of ether_addr_equal_{unaligned, 64bits}()Hauke Mehrtens
RedHat 6.5 already contains ether_addr_equal_64bits() which will conflict with our declaration. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-19backports: add IS_BUILTIN()Hauke Mehrtens
This is needed by bcma. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-19backports: fix header of phy_mii_ioctl()Hauke Mehrtens
On kernel versions < 2.6.36 phy_mii_ioctl() gets struct mii_ioctl_data as second parameter and on more recent kernel versions it takes struct ifreq. This patch converts one version to the other. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-19backports: add linux/irqdomain.hHauke Mehrtens
ssb uses this header file, but does not use any of the functions in there in the default config, because that is only used when SSB_DRIVER_GPIO and SSB_EMBEDDED are activated. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-19backports: add ATTRIBUTE_GROUPS unconditionallyHauke Mehrtens
net/bluetooth/hci_sysfs.c uses ATTRIBUTE_GROUPS on all kernel versions. Now it has to be for older kernel versions as well and __ATTRIBUTE_GROUPS is also needed for these old versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-19backports: add USB_DEVICE_INTERFACE_CLASSHauke Mehrtens
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-18backports: add ether_addr_equal_unaligned()Hauke Mehrtens
ether_addr_equal_unaligned() is used by some drivers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-18backports: add ether_addr_equal_64bits()Hauke Mehrtens
This is used by some drivers now Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-18backports: add missing includebackports-20131224Hauke Mehrtens
A user reported that the linux/mm.h header was missing on his mips device with kernel 2.6.26. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-18backports: add prefix infront of led_blink_set()Hauke Mehrtens
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>
2014-01-18backports: fix i2c_add_mux_adapter() parametersHauke Mehrtens
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>
2014-01-18backports: add printk_ratelimited()Hauke Mehrtens
This adds the backport for some printk_ratelimited() functions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-18backports: remove CRC8 backportHauke Mehrtens
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>
2014-01-18backports: fix number of arguments of phy_connect()Hauke Mehrtens
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>
2014-01-18backports: add ARPHRD_6LOWPANHauke Mehrtens
This adds ARPHRD_6LOWPAN to if_arp.h Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2014-01-18backports: add netdev_notify_peers()Hauke Mehrtens
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>
2014-01-18backports: add devm_kmalloc()Hauke Mehrtens
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>
2014-01-18backports: backport hex2bin()Johannes Berg
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>
2013-12-08backports: do not call dev_hw_addr_random()Hauke Mehrtens
SLES 11 SP3 does not have dev_hw_addr_random() so this patch includes the stuff which would be done in dev_hw_addr_random() in eth_hw_addr_random(). Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: fix skb_add_rx_fragi() for SLES 11 SP3Hauke Mehrtens
SLES 11 SP3 backported skb_add_rx_frag() with 6 arguments and we have to use that function with the truesize parameter. This removes the define for SLES 11 SP3 like it is done for RHEL. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: add missing LINUX_BACKPORT() on various placesHauke Mehrtens
This fixes lots of compile problems on RHEL 6.5. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: so not add netdev_features_t on RHEL 6.5Hauke Mehrtens
RHEL 6.5 already contains netdev_features_t which will collide with backports definition. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: remove unused workqueue backportsHauke Mehrtens
These backports are not used by any driver code and some of them are conflicting with code from RHEL 6.5 headers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: add LINUX_BACKPORT infront of functionsHauke Mehrtens
This is needed to add support for SLES 11 SP3 support. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: add missing include for linux/of.hHauke Mehrtens
This fixes a compile error with some config options. Closes bug: https://bugzilla.kernel.org/show_bug.cgi?id=66601 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Reported-by: Richard Röjfors <richard.rojfors@gmail.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: remove DMI_EXACT_MATCHHauke Mehrtens
DMI_EXACT_MATCH was only used by the Intel gpu driver which was removed. Kernel 3.10.21 also has DMI_EXACT_MATCH which collides with backports definition. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: backport getrawmonotonic() with do_posix_clock_monotonic_gettime()Luis R. Rodriguez
We cannot properly backport getrawmonotonic() as it requires some in-kernel changes which cannot be backported so the best thing we can do is provide at least the monotonic time. This will only be done as a compromise for kernels that didn't have getrawmonotonic() which are kernels < 2.6.28, which hopefully we can just deprecate completely soon. The example users which pushes us to backport this is change via linux-next 09d8e315d for ath9k, titled: "ath9k_hw: fix TSF save/restore around chip reset" The original commit that added getrawmonotonic() was 2d42244ae. mcgrof@cerro ~/linux-next (git::master)$ git describe --contains 2d42244ae v2.6.28-rc1~82^2~1 commit 2d42244ae71d6c7b0884b5664cf2eda30fb2ae68 Author: John Stultz <johnstul@us.ibm.com> Date: Wed Aug 20 16:37:30 2008 -0700 clocksource: introduce CLOCK_MONOTONIC_RAW In talking with Josip Loncaric, and his work on clock synchronization (see btime.sf.net), he mentioned that for really close synchronization, it is useful to have access to "hardware time", that is a notion of time that is not in any way adjusted by the clock slewing done to keep close time sync. Part of the issue is if we are using the kernel's ntp adjusted representation of time in order to measure how we should correct time, we can run into what Paul McKenney aptly described as "Painting a road using the lines we're painting as the guide". I had been thinking of a similar problem, and was trying to come up with a way to give users access to a purely hardware based time representation that avoided users having to know the underlying frequency and mask values needed to deal with the wide variety of possible underlying hardware counters. My solution is to introduce CLOCK_MONOTONIC_RAW. This exposes a nanosecond based time value, that increments starting at bootup and has no frequency adjustments made to it what so ever. The time is accessed from userspace via the posix_clock_gettime() syscall, passing CLOCK_MONOTONIC_RAW as the clock_id. Signed-off-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Ingo Molnar <mingo@elte.hu> Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Stultz <johnstul@us.ibm.com> Cc: Roman Zippel <zippel@linux-m68k.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-08backports: backport ktime_to_ms()Luis R. Rodriguez
This backports ktime_to_ms() mcgrof@cerro ~/linux-next (git::master)$ git describe --contains f56916b9 v2.6.35-rc1~490^2~16 commit f56916b97fe2031761ca611f0a342efd913afb33 Author: Chuck Lever <chuck.lever@oracle.com> Date: Fri May 7 13:34:37 2010 -0400 ktime: introduce ktime_to_ms() To report ktime statistics to user space in milliseconds, a new helper is required. When considering how to do this conversion, I didn't immediately see why the extra step of converting ktime to a timeval was needed. To make that more clear, introduce a couple of large comments. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-06backports: add support for prandom_bytesEmmanuel Grumbach
This was added in 3.8 and not used until now. Since it it being used by the wireless stack, backport it. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> [mcgrof: fixed renamed prandom_bytes_state to prandom_bytes on symbol] Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-02backports: add backport_ in front of sign_extend32()Hauke Mehrtens
sign_extend32() is also backported by the RHEL kernel, this fixes a compile problem. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-02backports: remove duplicate allyesconfig from helpHauke Mehrtens
allyesconfig was mentioned in the help dialog twice. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-02backports: add backport_ prefix in front of BQL functionsHauke Mehrtens
Sometimes these functions are backported in the kernel, add the backports_ prefix to prevent the names from colliding. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-12-02backports: check for define in module_driver and not kernel versionHauke Mehrtens
In some places backports checked for the kernel version on weather to add a own define for module_driver or not. This patch makes it check if there is already one or not. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-11-24backports: remove own version of include/linux/unaligned/*.hbackports-20131122-2Hauke Mehrtens
These files are now copied from the kernel like normal files we take from the kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove own version of include/linux/wireless.hHauke Mehrtens
This file is now copied from the kernel like a normal file we take from the kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove backport/backport-include/linux/vgaarb.hHauke Mehrtens
This file was never included. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove usb_unlink_anchored_urbs()Hauke Mehrtens
kref_get_unless_zero() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove kref_get_unless_zero()Hauke Mehrtens
kref_get_unless_zero() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove hex_byte_pack()Hauke Mehrtens
hex_byte_pack() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove vlan_hw_offload_capable()Hauke Mehrtens
vlan_hw_offload_capable() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove fb_enable_skip_vt_switch()Hauke Mehrtens
fb_enable_skip_vt_switch() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove ethtool_rxfh_indir_default()Hauke Mehrtens
ethtool_rxfh_indir_default() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove efiHauke Mehrtens
Non of these defines or functions where used by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove irq_set_affinity_hint()Hauke Mehrtens
irq_set_affinity_hint() was never called by any code. This makes it possible to remove struct cpumask. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove atomic_inc_not_zero_hint()Hauke Mehrtens
atomic_inc_not_zero_hint() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove acpi_video_register_with_quirks()Hauke Mehrtens
acpi_video_register_with_quirks() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove eeprom_93cx6.h headerHauke Mehrtens
The driver is not included in backports and we should use the in kernel headers. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: remove mdio driver codeHauke Mehrtens
There is some code for the mdio driver in backports, but it does not get build on any kernel, just remove it till someone wants to make it work. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2013-11-24backports: add current_user_ns()Hauke Mehrtens
current_user_ns() is used by seq_user_ns() if CONFIG_USER_NS is set and kernel version <= 2.6.38. This was added to the kernel in version 2.6.29. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>