From: Hauke Mehrtens Date: Sun, 27 Jul 2014 20:45:04 +0000 (+0200) Subject: backports: add missing linux/mm.h to airspy X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e8d572ffeb32e5507d7eca983d531ac623b4c9ef;p=openwrt%2Fstaging%2Fblogic.git backports: add missing linux/mm.h to airspy 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 --- 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