Received: by 10.223.185.116 with SMTP id b49csp6692162wrg; Thu, 8 Mar 2018 11:34:10 -0800 (PST) X-Google-Smtp-Source: AG47ELtfymbwVMvKw72BfpFriOVjyXtAoPDcjZIx34Vm0UwzSfARzjfiQg0M/guXNhFikFDs155J X-Received: by 2002:a17:902:6b02:: with SMTP id o2-v6mr25507159plk.334.1520537650554; Thu, 08 Mar 2018 11:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520537650; cv=none; d=google.com; s=arc-20160816; b=B+P/cKGpvkW/njWoxjd5lSl6YzFF0hSkMO/M/B+EfebdGb4cA5lI2boS7uRlJk1Lvc M3pdQ46OmyyxAtE9/kLxdrw1qtHkwI2bqMzFOisMrQJKVeUxdAbYkEgVZDvXsLYSmp+W REUChCfQF6Ktp5lr/OjStBFp1s5NQm+KMTUhRqquazC2ZC8eUQ0DVBoqNyyWE+0IHJoY plLcHiZotd/J53ZON98qoHGhRHdeaQR5FIMUvkXTYsPqZa36t5u25FLNIfepZdpqbapx Wcs3kL1M97h+ZQDnh9QpJ0AYGMaFUkJrIVNjlqijg+H2hBqHc931nUV2aL/uYIexUd8W g4bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=czGAhBPBnOtwNHjY3COHxJoJ8tmSOWby0KJ90vEMTZA=; b=Jzw/iRs8bI9IwssD8NWXLqCfKmvCoSCcleLpv4W1vLoxQDcMwfW/ljWVpYrhMccoPm Kb/lQABQPaJz2fFgWFefqfJAdITrdtUva3PRjEFYpy4c58k+qlB1ULJTGA4SByoZ4Gul KwraDdCd8AuvieI0uH3PH/lAmyitIk+Yz4DVcE+oFdqTJHX/k5EKZvHaQsZ3IHS8f24x KagRvFXhzfSDF8YwOWNsWmYkJPhGhQh5gLAz9VEWw6SQqVKvx5mDTiVsjGMtsrueRt52 hFmL4Xsl9nvtwfxpzGEcK1BJuqFT9aWvCqTX3SH6iRDwj7+Y45RRSaYt1yUMF4yBlc10 GF7g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35-v6si15115351plg.144.2018.03.08.11.33.47; Thu, 08 Mar 2018 11:34:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755009AbeCHTcI (ORCPT + 99 others); Thu, 8 Mar 2018 14:32:08 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:36955 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752219AbeCHTcH (ORCPT ); Thu, 8 Mar 2018 14:32:07 -0500 Received: by mail-ot0-f193.google.com with SMTP id t2so6510966otj.4 for ; Thu, 08 Mar 2018 11:32:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=czGAhBPBnOtwNHjY3COHxJoJ8tmSOWby0KJ90vEMTZA=; b=db6yCuLtFHBpSj+70S6ZmVvPb9Pxjrc8Ne77hJ5Yb/pSQtmBclDiRs2ymcpjoHx2w9 5n3NAdz3Fcjdz3LZ/d7XXNavrewTLDvOpYk8s7PL2xAJZzxWBJIUD10sIRwrwTDBeq4E Wh8KV/xwKionLvVRMqCtQAE9gQUB6CCW2dzKdAWWn6BIXdLDuR9HhiXvA/gRCZ7TTrM8 sZten59Eh0BKqEafI7lfF9ggVZaDk6bi5/G7/tIphfFl7uYwPdrAirdK7aMRsAYrhplQ SUXtw4Ml8wcC0hsmm+yt7LBxVfy9z89D+Qs4iPyTo02cZrSUL/nm7upFbFJZhfjj6i+t 5m2A== X-Gm-Message-State: AElRT7G1sjjuovRo8oyTQE+xifRV2xo8NaBR14+8aIY7r2RIe6g+h6S9 48w/CMomXmziEfhS1VlrkkuMU3tFwyo= X-Received: by 10.157.96.89 with SMTP id v25mr20896308otj.43.1520537526302; Thu, 08 Mar 2018 11:32:06 -0800 (PST) Received: from ?IPv6:2601:602:9802:a8dc:4eb2:6dae:ab32:e5b0? ([2601:602:9802:a8dc:4eb2:6dae:ab32:e5b0]) by smtp.gmail.com with ESMTPSA id l15sm10466674otl.16.2018.03.08.11.32.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 11:32:04 -0800 (PST) Subject: Re: [PATCH] selftests/android/ion: Makefile: fix build error To: Anders Roxell , shuah@kernel.org Cc: pintu.ping@gmail.com, daniel.vetter@ffwll.ch, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180308143741.4415-1-anders.roxell@linaro.org> From: Laura Abbott Message-ID: <9e41eb91-8bac-0bf0-987d-8d95c0bfce94@redhat.com> Date: Thu, 8 Mar 2018 11:32:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180308143741.4415-1-anders.roxell@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? It's not in Linus' master branch. Are the /usr/include header properly sanitized, 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 >