1. 05 9月, 2018 1 次提交
  2. 28 8月, 2018 1 次提交
  3. 12 7月, 2018 1 次提交
    • L
      selftests/android: initialize heap_type to avoid compiling warning · cc7c6730
      Li Zhijian 提交于
      Initialize heap_type to ION_HEAP_TYPE_SYSTEM to avoid "used uninitialized"
      compiler warning. heap_type gets used after initialization, this change is
      to just keep the compiler happy.
      
      root@vm-lkp-nex04-8G-7 ~/linux-v4.18-rc2/tools/testing/selftests/android# make
      make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
      make[1]: Entering directory '/root/linux-v4.18-rc2/tools/testing/selftests/android/ion'
      gcc  -I. -I../../../../../drivers/staging/android/uapi/ -I../../../../../usr/include/ -Wall -O2 -g    ionapp_export.c ipcsocket.c ionutils.c   -o ionapp_export
      ionapp_export.c: In function 'main':
      ionapp_export.c:91:2: warning: 'heap_type' may be used uninitialized in
      this function [-Wmaybe-uninitialized]
        printf("heap_type: %ld, heap_size: %ld\n", heap_type, heap_size);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      CC: Shuah Khan <shuah@kernel.org>
      CC: Pintu Agarwal <pintu.ping@gmail.com>
      Signed-off-by: NLi Zhijian <lizhijian@cn.fujitsu.com>
      Signed-off-by: NShuah Khan (Samsung OSG) <shuah@kernel.org>
      cc7c6730
  4. 31 5月, 2018 2 次提交
  5. 22 3月, 2018 1 次提交
    • A
      selftests/android/ion: Makefile: fix build error · 55c1b5f4
      Anders Roxell 提交于
      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: ac93f704 ("selftests: ion: Add simple test with the vgem driver")
      Signed-off-by: NAnders Roxell <anders.roxell@linaro.org>
      Acked-by: NLaura Abbott <labbott@redhat.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      55c1b5f4
  6. 06 3月, 2018 2 次提交
  7. 14 2月, 2018 1 次提交
    • D
      selftests/android: Fix line continuation in Makefile · 64136fb7
      Daniel Díaz 提交于
      The Makefile lacks a couple of line continuation backslashes
      in an `if' clause, which can make the subsequent rsync
      command go awry over the whole filesystem (`rsync -a / /`).
      
        /bin/sh: -c: line 5: syntax error: unexpected end of file
        make[1]: [all] Error 1 (ignored)
        TEST=$DIR"_test.sh"; \
                        if [ -e $DIR/$TEST ]; then
        /bin/sh: -c: line 2: syntax error: unexpected end of file
        make[1]: [all] Error 1 (ignored)
        rsync -a $DIR/$TEST $BUILD_TARGET/;
        [...a myriad of:]
        [  rsync: readlink_stat("...") failed: Permission denied (13)]
        [  skipping non-regular file "..."]
        [  rsync: opendir "..." failed: Permission denied (13)]
        [and many other errors...]
        fi
        make[1]: fi: Command not found
        make[1]: [all] Error 127 (ignored)
        done
        make[1]: done: Command not found
        make[1]: [all] Error 127 (ignored)
      Signed-off-by: NDaniel Díaz <daniel.diaz@linaro.org>
      Acked-by: NPintu Agarwal <pintu.ping@gmail.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      64136fb7
  8. 15 11月, 2017 1 次提交
    • P
      android/ion: userspace test utility for ion buffer sharing · 47a18c42
      Pintu Agarwal 提交于
      This is a test utility to verify ION buffer sharing in user space
      between 2 independent processes.
      It uses unix domain socket (with SCM_RIGHTS) as IPC to transfer an FD to
      another process to share the same buffer.
      This utility demonstrates how ION buffer sharing can be implemented between
      two user space processes, using various heap types.
      
      This utility is made to be run as part of kselftest framework in kernel.
      The utility is verified on Ubuntu-32 bit system with Linux Kernel 4.14,
      using ION system heap.
      
      For more information about the utility please check the README file.
      Signed-off-by: NPintu Agarwal <pintu.ping@gmail.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      47a18c42