Re: [PATCH i-g-t] benchmarks/gem_busy: Fix compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Applied. Thanks!
On Tue, Sep 06, 2016 at 03:55:41PM +0100, Derek Morton wrote:
> The benchmark was failing with:
> gem_busy.c:158:8: error: implicit declaration of function 'intel_gen'
> is invalid in C99 [-Werror,-Wimplicit-function-declaration]
> gen = intel_gen(intel_get_drm_devid(fd));
> 
> The root cause was due to the local lib directory not being specified
> in benchmarks/Android.mk, resulting in intel_chipset.h from drm being
> used instead.
> 
> This patch adds the lib path to the LOCAL_C_INCLUDES
> 
> Signed-off-by: Derek Morton <derek.j.morton@xxxxxxxxx>
> ---
>  benchmarks/Android.mk | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/benchmarks/Android.mk b/benchmarks/Android.mk
> index 147f5db..c0fa09f 100644
> --- a/benchmarks/Android.mk
> +++ b/benchmarks/Android.mk
> @@ -1,6 +1,7 @@
>  LOCAL_PATH := $(call my-dir)
>  
>  include $(LOCAL_PATH)/Makefile.sources
> +IGT_LOCAL_C_INCLUDES = $(LOCAL_PATH)/../lib
>  
>  #================#
>  
> @@ -9,6 +10,7 @@ define add_benchmark
>  
>      LOCAL_SRC_FILES := $1.c
>  
> +    LOCAL_C_INCLUDES = ${IGT_LOCAL_C_INCLUDES}
>      LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
>      LOCAL_CFLAGS += -DANDROID -UNDEBUG -include "check-ndebug.h"
>      LOCAL_CFLAGS += -std=gnu99
> -- 
> 1.9.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux