From e8d572ffeb32e5507d7eca983d531ac623b4c9ef Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 27 Jul 2014 22:45:04 +0200 Subject: [PATCH] backports: add missing linux/mm.h to airspy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../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 000000000000..ee31d013a5c6 --- /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 + #include ++#include + #include + #include + #include -- 2.30.2