header: add for_each_compatible_node()

for_each_compatible_node() is defined in a CONFIG_OF condition on older
kernel versions. Now some drivers are use it when CONFIG_OF is not set,
add it always when it is not already there.

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

This was added in kernel 3.19.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
header: add empty of_find_compatible_node()

of_find_compatible_node() is not defined when CONFIG_OF is not set on
kernel < 3.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
header: include some other dma headers in dma-buf.h

when we do not include the original version of dma-buf.h, some other
header files should be included because some media drivers are
expecting this now.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
header: backport drain_workqueue() by calling flush_workqueue()

This backport is only needed for kernel < 3.1.
Backporting drain_workqueue() is too hard so we just flush the
workqueue which should work in most cases. This could still cause
problems in some situation.

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

This new functions is used by ath9k.

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

This is needed by igb driver.

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

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport: do not call coredump when it was not build

When coredump was included in the kernel backports is build against
then it could be that the prototype are used, which caused a undefined
references linking problem. This patch fixes the problem by only using
this when the driver is actually compiled in.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches: disable tx status support in mwifiex

This feature is not support with older kernels, just deactivate it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches: fix some v4l2 dma stuff

* The vb2_vmalloc_get_dmabuf() function does not work on kernel < 3.5.
* v4l2_m2m_ioctl_expbuf() is disabled on kernel < 3.5, do not call it.
* deactivate dmabuf support in videobuf2-dma-sg.c

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches: do not use DMA_ATTR_SKIP_CPU_SYNC

DMA_ATTR_SKIP_CPU_SYNC was added to the enum with kernel 3.6. This
patch removes all calls to dma_set_attr() with this value on
kernel < 3.6.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches: adapt api change of rchan_callbacks->create_buf_file in ath9k

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches: cherry-pick debugfs_create_devm_seqfile() revert

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

1   3.0.101             [  OK  ]
2   3.1.10              [  OK  ]
3   3.2.65              [  OK  ]
4   3.3.8               [  OK  ]
5   3.4.105             [  OK  ]
6   3.5.7               [  OK  ]
7   3.6.11              [  OK  ]
8   3.7.10              [  OK  ]
9   3.8.13              [  OK  ]
10  3.9.11              [  OK  ]
11  3.10.63             [  OK  ]
12  3.11.10             [  OK  ]
13  3.12.35             [  OK  ]
14  3.13.11             [  OK  ]
15  3.14.27             [  OK  ]
16  3.15.10             [  OK  ]
17  3.16.6              [  OK  ]
18  3.17.7              [  OK  ]
19  3.18.1              [  OK  ]

manual changed were needed for the following patches:
backport-adjustments/crypto-ccm.patch
backport-adjustments/devcoredump.patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
devel: update the test kernels

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