summaryrefslogtreecommitdiff
path: root/patches/collateral-evolutions/media/0004-missing-include/airspy.patch
blob: ee31d013a5c6b31e437eb36c0dc3f88159580aaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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>