backports: replace linux/bitops.h header

Instead of copying bitops.h from upstream just add what's missing in
older kernel.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add defconfig for wcn36xx

Signed-off-by: Jason Mobarak <jam@cozybit.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: move part of multicast handling into an spatch

The netdev_for_each_mc_addr() handling can be done with a
semantic patch and a simple macro encapsulating the addr
dereferencing for the two cases.

In fact, this already fixed a bug in dvb_net.c, although
I think that depends on a newer kernel anyway.

Thanks Julia for the help with iterator name!

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: replace netdev ops patch with spatch

There's no need to carry a small netdev ops patch for
each driver any more now, we can just write a small
semantic patch. Only the ndo_ioctl() part is easier
to keep as a separate patch.

As some stupid drivers seem to set their ops to NULL
just before freeing the netdev anyway, the attach
function must gracefully handle that (but not doesn't
really need to do anything.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: support new generic netlink APIs

I recently changed the generic netlink registration and multicast
group APIs to be safer. Backport these changes by implementing all
the new APIs in terms of what was in the kernel before.

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

This is not used anywhere.
The Debian Wheezy kernel also includes this function and it conflicted
with backports version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: activate REGULATOR_ARIZONA only on >= 3.12

ARIZONA needs struct regulator_linear_range which was added in kernel 3.12.

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

== ckmake-report.log ==

1   2.6.24              [  FAIL  ]
2   2.6.25              [  OK  ]
3   2.6.26              [  OK  ]
4   2.6.27              [  OK  ]
5   2.6.28              [  OK  ]
6   2.6.29              [  OK  ]
7   2.6.30              [  OK  ]
8   2.6.31              [  OK  ]
9   2.6.32              [  OK  ]
10  2.6.33              [  OK  ]
11  2.6.34              [  OK  ]
12  2.6.35              [  OK  ]
13  2.6.36              [  OK  ]
14  2.6.37              [  OK  ]
15  2.6.38              [  OK  ]
16  2.6.39              [  OK  ]
17  3.0.101             [  OK  ]
18  3.1.10              [  OK  ]
19  3.10.17             [  OK  ]
20  3.11.6              [  OK  ]
21  3.12-rc7            [  OK  ]
22  3.2.52              [  OK  ]
23  3.3.8               [  OK  ]
24  3.4.67              [  OK  ]
25  3.5.7               [  OK  ]
26  3.6.11              [  OK  ]
27  3.7.10              [  OK  ]
28  3.8.13              [  OK  ]
29  3.9.11              [  OK  ]

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