Received: by 10.223.185.116 with SMTP id b49csp192924wrg; Thu, 8 Mar 2018 15:31:45 -0800 (PST) X-Google-Smtp-Source: AG47ELtdsGeyDFTVZDPVV1ofDOrQPM8ueX3wYrQ6caJPrzf1oXSBQP0qh2oQKi+gxDNBwDB3wYNd X-Received: by 10.98.234.22 with SMTP id t22mr27909696pfh.56.1520551905065; Thu, 08 Mar 2018 15:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520551905; cv=none; d=google.com; s=arc-20160816; b=P6hNAuWyEL/MOSmDRAOUvdQ8TX5HrXrWDyT/z7cBPA1CB8jTBtr55T+zqPzvyyLM5f 3UXL2vIUH9EONW0ZEpJByYuEYUNUkeH+s26Llv5xl5iriEvX9wubRLwMAcslTd7NE2m4 sSklXb3GCA0BHG00AGFyZ3Ppj8T+zhqaBwoZ5vLifnzTYGtIWhoWWGQqgriwYBUuR2hw 8185TWWWABP1uwJgiWye8WGd3N2AiUUui0cFEgAl3gsnPZkRuOdbkBcq/uTykvmOzZzv nmqAzmtqA1AaPRnuDdym8msBZYnw23SCdtxvxGr/o7b2+JnS8+xSYYTjbkj2BfjtmGN8 IcQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=k7xcv+O9eth13FICayEKN+YWCKly1mWM7LGhQ59AGss=; b=gfgff1qdXoTWk+/KRxbLeBb+sDFToPLlrsKeSBGHvnhtFEwXrMY2BnaE3efDmI3ER2 RILDHk9sUAiKDVaCVaasZ1tACubjD2UeQJSt47hFDoVSKMwYmJ3nuhTFwSAGB/WIEJ+a rjR9Ljmuykbvz8F3PK9k/gkt/DYr6lElRcYrHyLy5HbfmFORPHgDEwysD25DNFti/g2m D0VbjHqPXJeymCNNu+3iBrlp9nRAI+JnEwTA4Z+1+tRe007hZn4F9oqLhe1NxiiZh2NT lsKmeSgZhJsQriNjkEYtzLxK1yXUmdDF5HmEgF91Fat75XKaMSATWDpqh+oOEhMSRrz5 HnDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YNzeMDFX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si15471040plk.699.2018.03.08.15.31.29; Thu, 08 Mar 2018 15:31:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YNzeMDFX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751048AbeCHXaF (ORCPT + 99 others); Thu, 8 Mar 2018 18:30:05 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41480 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783AbeCHXaD (ORCPT ); Thu, 8 Mar 2018 18:30:03 -0500 Received: by mail-pg0-f68.google.com with SMTP id s15so220520pgv.8 for ; Thu, 08 Mar 2018 15:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=k7xcv+O9eth13FICayEKN+YWCKly1mWM7LGhQ59AGss=; b=YNzeMDFX4F/6Rf7W7VxXUnrqesYBY9OX3Ht8iRB2WfcCeFeC/wfo/0kKxql+0HHUbG HGsWrKOmjB7XdUeWEunKRRjnRiJYCasiRq+zTikU2283J++kMsEzUAinEX1M1NkGKelT VoqS4/KQ21mxkuTh+iYUmagniaVu18ErE8aEg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=k7xcv+O9eth13FICayEKN+YWCKly1mWM7LGhQ59AGss=; b=KsPdJs6WZWPU+9y+sPb+FOD3ZKXP0di2+otAfrdp8uByLDnQLWKWURROXbBvL8VsZm nnU4wYp4Gw3mu9K6kVDBTgUkYqk1xE8cdFP1zHM6Cor0GRo60PEjJVSMxXioKi54b9rS Mf7CzpB9ehTdb51wCEAmTEhuinZhNFwpXyqbp26QfADEBZsu/SS4Tn4BErmKpRGWpG+H 1aJByKfQ3LuekxCwY3bETmgBxT90KIZte/xeJ/sWOJc31CIaPXVz1VO+GjoFZ22JUkmq G4bSpflxoiv15qcBdI84wTzAAgKVqzH0bcDOr4b9bnALfWDT1TKB4kYPvWbKA19pBAx/ VSBQ== X-Gm-Message-State: APf1xPCBsWlHvkJ1HsyKxsGimKJZ4tIa2lgYbMIAJhTtuVLkeAWR8a89 qJD354mZ2f7ol6QSRPEIcTA1HddnBRWmSCRotvld1g== X-Received: by 10.101.72.198 with SMTP id o6mr22241634pgs.279.1520551802640; Thu, 08 Mar 2018 15:30:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.221.5 with HTTP; Thu, 8 Mar 2018 15:30:02 -0800 (PST) In-Reply-To: <9e41eb91-8bac-0bf0-987d-8d95c0bfce94@redhat.com> References: <20180308143741.4415-1-anders.roxell@linaro.org> <9e41eb91-8bac-0bf0-987d-8d95c0bfce94@redhat.com> From: Anders Roxell Date: Fri, 9 Mar 2018 00:30:02 +0100 Message-ID: Subject: Re: [PATCH] selftests/android/ion: Makefile: fix build error To: Laura Abbott Cc: shuah@kernel.org, Pintu Kumar , Daniel Vetter , linux-kselftest@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8 March 2018 at 20:32, Laura Abbott wrote: > On 03/08/2018 06:37 AM, Anders Roxell wrote: >> >> 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 >> ^ >> compilation terminated. >> : 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") > > > Where is this hash from? In linux-next. > It's not in Linus' master branch. > Are the /usr/include header properly sanitized That my understanding but please correct me if I'm wrong. Cheers, Anders >, if so that's nice > because there's been debates before about how best to pick up > the sanitized headers. I see that used several other places > around self-tests too. Anyway, you can add > > Acked-by: Laura Abbott > > Thanks, > Laura > > >> Signed-off-by: Anders Roxell >> --- >> tools/testing/selftests/android/ion/.gitignore | 1 + >> tools/testing/selftests/android/ion/Makefile | 2 +- >> 2 files changed, 2 insertions(+), 1 deletion(-) >> >> diff --git a/tools/testing/selftests/android/ion/.gitignore >> b/tools/testing/selftests/android/ion/.gitignore >> index 67e6f391b2a9..95e8f4561474 100644 >> --- a/tools/testing/selftests/android/ion/.gitignore >> +++ b/tools/testing/selftests/android/ion/.gitignore >> @@ -1,2 +1,3 @@ >> ionapp_export >> ionapp_import >> +ionmap_test >> diff --git a/tools/testing/selftests/android/ion/Makefile >> b/tools/testing/selftests/android/ion/Makefile >> index d23b6d537d8b..e03695287f76 100644 >> --- a/tools/testing/selftests/android/ion/Makefile >> +++ b/tools/testing/selftests/android/ion/Makefile >> @@ -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 >> >