From patchwork Wed Mar 22 19:05:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 95823 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp388864qgd; Wed, 22 Mar 2017 12:05:30 -0700 (PDT) X-Received: by 10.84.241.203 with SMTP id t11mr57852306plm.48.1490209530031; Wed, 22 Mar 2017 12:05:30 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 145si1983172pfa.360.2017.03.22.12.05.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 12:05:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2FE546E95F; Wed, 22 Mar 2017 19:05:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ot0-f193.google.com (mail-ot0-f193.google.com [74.125.82.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id BA9126E1D3 for ; Wed, 22 Mar 2017 19:05:27 +0000 (UTC) Received: by mail-ot0-f193.google.com with SMTP id i1so26631187ota.3 for ; Wed, 22 Mar 2017 12:05:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=92YvT2h5aFwJ5kfl9H694GTc89zZnlGRV27su9bZ2KA=; b=dvfFP5Hj8J7/Nrlmv4qdoXgRD+pZIe376Fo7XRXpTyEs4JGzswlrKHsvLQ0fP5283G iEXFOsmyeyrhIX9Qiiv4KiwpORMWtb1CCnEofMvgmsbdXPzkxOKKhlukqlP40WxpOm4n LtvGn3iy4rSaZeRhkBMXZSLb7t+eR/kTmLHICrxq0R3X1u6yVSlVmzkp7T1ptb3G2M4q hNoBz0vZUJoQEql/T3DG6tp1VojJDml0Ewuu0K1HI+wJsEeCpae/3GVMcGcyKIPLVu78 GidfTlkMQ8Ny5XXwx0xb3jfPvPt6OUbV641Tz/GICadSUeaKW92PKQumJgKgQLHcfhz/ cRWg== X-Gm-Message-State: AFeK/H2bkZqu/LjyvHM9pZfmSv7ktXgJvTNY2XjJmuaaBxlWVAc+rs418FBjsqDAALMYvQ== X-Received: by 10.157.22.201 with SMTP id s9mr10976413ots.122.1490209527098; Wed, 22 Mar 2017 12:05:27 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id r130sm860491oif.20.2017.03.22.12.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 12:05:26 -0700 (PDT) From: Rob Herring To: Emil Velikov Subject: [PATCH 1/2] Android: fix building of modetest and proptest Date: Wed, 22 Mar 2017 14:05:24 -0500 Message-Id: <20170322190525.16592-1-robh@kernel.org> X-Mailer: git-send-email 2.10.1 Cc: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" These tests depend on tests/util/ headers, but expect the include path to be tests/. Signed-off-by: Rob Herring --- Android.mk | 2 ++ tests/util/Android.mk | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Android.mk b/Android.mk index 5209059e670f..292be2360263 100644 --- a/Android.mk +++ b/Android.mk @@ -24,6 +24,8 @@ LIBDRM_COMMON_MK := $(call my-dir)/Android.common.mk LOCAL_PATH := $(call my-dir) +LIBDRM_TOP := $(LOCAL_PATH) + include $(CLEAR_VARS) # Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES diff --git a/tests/util/Android.mk b/tests/util/Android.mk index 7656c4c29883..12eccb42add3 100644 --- a/tests/util/Android.mk +++ b/tests/util/Android.mk @@ -32,5 +32,7 @@ LOCAL_SHARED_LIBRARIES := libdrm LOCAL_SRC_FILES := $(UTIL_FILES) +LOCAL_EXPORT_C_INCLUDE_DIRS := $(LIBDRM_TOP)/tests + include $(LIBDRM_COMMON_MK) include $(BUILD_STATIC_LIBRARY) From patchwork Wed Mar 22 19:05:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 95824 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp389131qgd; Wed, 22 Mar 2017 12:06:03 -0700 (PDT) X-Received: by 10.98.192.151 with SMTP id g23mr47837456pfk.254.1490209562963; Wed, 22 Mar 2017 12:06:02 -0700 (PDT) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id n184si1999371pfn.242.2017.03.22.12.06.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 12:06:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9CE816E1D3; Wed, 22 Mar 2017 19:05:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ot0-f196.google.com (mail-ot0-f196.google.com [74.125.82.196]) by gabe.freedesktop.org (Postfix) with ESMTPS id DB2776E96E for ; Wed, 22 Mar 2017 19:05:28 +0000 (UTC) Received: by mail-ot0-f196.google.com with SMTP id i50so17078470otd.0 for ; Wed, 22 Mar 2017 12:05:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OFvr+0XA5fSg3nY+V7RtRRnlFMmIUxWNnZuIVdxkkqc=; b=sqxW6epc1ZstchRfne4tq30rn4nWDsRAVJB5J4+Axu/faCfnPoHCDnA4oSg/budTrM hWn7ZNvg3aevw+NeR0R5JaG37f7HhOcaw2Xilb8M5Cxd/ZZ9B7/86PKzN5W7Xt2X8Qum Mo/Rtc8y3c5dC7UroY4iacBDd9UKToMPM3MLymFk3E5aTS7tZjoEgGCe1aOJH7FJhkc1 TK94/ZPjNkkDCmyUqvW7gYCFuC6YlizPCfwoT017F/XaUsgs+AWywoVLbtXIi+7DVMM0 1xtIrxpe/HsKC1N6iwVTDQVS4hst46PK65p9qt2rZ1ayGpWvAbDe7ZmWeB4m3enPjujN BMug== X-Gm-Message-State: AFeK/H2svkiS+eWp42zzrGLKz9qvp2EPfccl1VRGiFXUXz7aS03GF9IoH8PEjj8Ebt+Fnw== X-Received: by 10.157.38.227 with SMTP id i32mr23187230otd.182.1490209528095; Wed, 22 Mar 2017 12:05:28 -0700 (PDT) Received: from rob-hp-laptop.herring.priv (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id r130sm860491oif.20.2017.03.22.12.05.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 12:05:27 -0700 (PDT) From: Rob Herring To: Emil Velikov Subject: [PATCH 2/2] Android: disable pointer-arith and enum-conversion Date: Wed, 22 Mar 2017 14:05:25 -0500 Message-Id: <20170322190525.16592-2-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170322190525.16592-1-robh@kernel.org> References: <20170322190525.16592-1-robh@kernel.org> Cc: dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Disable some more warnings from clang. These don't appear to be warnings worth fixing. Signed-off-by: Rob Herring --- Android.common.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Android.common.mk b/Android.common.mk index f57b8d378565..35c0f02c213c 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -5,7 +5,9 @@ LOCAL_CFLAGS += \ LOCAL_CFLAGS += \ -Wno-unused-parameter \ - -Wno-missing-field-initializers + -Wno-missing-field-initializers \ + -Wno-pointer-arith \ + -Wno-enum-conversion # Quiet down the build system and remove any .h files from the sources LOCAL_SRC_FILES := $(patsubst %.h, , $(LOCAL_SRC_FILES))