[PATCH 8/9] backports: add missing linux/mm.h to airspy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Without this patch I get the following error message when compiling
against kernel 3.2, all other kernel versions work:

3.2.60/drivers/media/usb/airspy/airspy.c: In function ‘airspy_queue_setup’:
3.2.60/drivers/media/usb/airspy/airspy.c:506:2: error: implicit declaration of function ‘PAGE_ALIGN’ [-Werror=implicit-function-declaration]
sizes[0] = PAGE_ALIGN(s->buffersize);

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 .../media/0004-missing-include/airspy.patch            | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 patches/collateral-evolutions/media/0004-missing-include/airspy.patch

diff --git a/patches/collateral-evolutions/media/0004-missing-include/airspy.patch b/patches/collateral-evolutions/media/0004-missing-include/airspy.patch
new file mode 100644
index 0000000..ee31d01
--- /dev/null
+++ b/patches/collateral-evolutions/media/0004-missing-include/airspy.patch
@@ -0,0 +1,18 @@
+Without this patch I get the following error message when compiling 
+against kernel 3.2, all other kernel versions work:
+
+3.2.60/drivers/media/usb/airspy/airspy.c: In function ‘airspy_queue_setup’:
+3.2.60/drivers/media/usb/airspy/airspy.c:506:2: error: implicit declaration of function ‘PAGE_ALIGN’ [-Werror=implicit-function-declaration]
+sizes[0] = PAGE_ALIGN(s->buffersize);
+
+
+--- a/drivers/media/usb/airspy/airspy.c
++++ b/drivers/media/usb/airspy/airspy.c
+@@ -16,6 +16,7 @@
+ 
+ #include <linux/module.h>
+ #include <linux/slab.h>
++#include <linux/mm.h>
+ #include <linux/usb.h>
+ #include <media/v4l2-device.h>
+ #include <media/v4l2-ioctl.h>
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux