]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
selftests/android/ion: Makefile: fix build error
authorAnders Roxell <anders.roxell@linaro.org>
Thu, 8 Mar 2018 14:37:41 +0000 (15:37 +0100)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 21 Mar 2018 16:40:04 +0000 (10:40 -0600)
Fails to build iomap_test.c due to missing include

gcc  -I. -I../../../../../drivers/staging/android/uapi/ -Wall -O2 -g
ionmap_test.c ipcsocket.c ionutils.c   -o ionmap_test
ionmap_test.c:12:27: fatal error: linux/dma-buf.h: No such file or
directory
 #include <linux/dma-buf.h>
                           ^
compilation terminated.
<builtin>: recipe for target 'ionmap_test' failed
make[2]: *** [ionmap_test] Error 1

In the current code, we add a new -I ../../../../../usr/include/ to the
INCLUDEDIR variable. Also add ionmap_test to the .gitignore file.

Fixes: ac93f7046a53 ("selftests: ion: Add simple test with the vgem driver")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/android/ion/.gitignore
tools/testing/selftests/android/ion/Makefile

index 67e6f391b2a95c6a110b209989fa7fbfa2ed2d67..95e8f456147412f74299f11658a893925a949fe5 100644 (file)
@@ -1,2 +1,3 @@
 ionapp_export
 ionapp_import
+ionmap_test
index d23b6d537d8ba37ec82c01daaf543cea20b0fb82..e03695287f763e809bfb78637f6ff166082efc1c 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDEDIR := -I. -I../../../../../drivers/staging/android/uapi/
+INCLUDEDIR := -I. -I../../../../../drivers/staging/android/uapi/ -I../../../../../usr/include/
 CFLAGS := $(CFLAGS) $(INCLUDEDIR) -Wall -O2 -g
 
 TEST_GEN_FILES := ionapp_export ionapp_import ionmap_test