Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FFDAC54EAA for ; Mon, 30 Jan 2023 17:06:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236332AbjA3RGT (ORCPT ); Mon, 30 Jan 2023 12:06:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237474AbjA3RGM (ORCPT ); Mon, 30 Jan 2023 12:06:12 -0500 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2CE242DD9 for ; Mon, 30 Jan 2023 09:06:01 -0800 (PST) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-4c131bede4bso168397287b3.5 for ; Mon, 30 Jan 2023 09:06:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=jf6Gno5Ff0dyq7DhHlgvJXHlK7RmShhFzf2bK4ajpRc=; b=j4LEOYLrNL76NTObijY7YXLC4t96dJ8kb3jnT9Z4KLjjXjmnaczCBsSZ7eJWsIzV5n t/WVFhIJn7oZVX80U5QL82BYsHE6a/5rHhcBCBehPR+DPLTsjZ7ihzGQVell0V4Mjbw6 MmxDe1H4gGWmKUaKMhGWf81K9t3sv8JtNV2rzglFX6ggWGZxerdPOaV3Nt56Ttz3mFfP hMgc0jYkr4sIPn8QQBkJLOLbZ1Iuo5pSJQOIukuthcUoibNOQovrbNizkJFky0ffo5hh Sy39ON+/vITAIZpvPaiUjGhpSLLcO2MMTgIx5NpgCIPQd1k4rjv7o0mOrkT8ATzkhKMv DwNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=jf6Gno5Ff0dyq7DhHlgvJXHlK7RmShhFzf2bK4ajpRc=; b=eWHYzgxOH52uFrmGjF4TEztJ/V04Dz0zoTLLa1+TGG1WAF0NKfF8SA/uHT3bFwcaZS /OxSmsY04YnPIfwpFKFG0zrNflpsRcifpqnUtPqbyzneuwCT54N8+A8dHO6Y3WGNzaRn OfiEAi3/v83DRadKng6OncWXg/cl9FH3D66EHtAh53RoDr705WTgkr5yOQ66Toqo3cHi O7ZG/IfNMvAOLBHfCdTMmikLOhAL3cBSMQrkWXNqubNIyQo/OfiS84NsCjpaI6DdJsy4 7t6usHHQQmxX9yMs1vWAqnAnoK91JWwK3rfyLwZ3cUjTsBzoB9atPFONX4Vv3DbayOLs hDMA== X-Gm-Message-State: AO0yUKXl4LnaOelKJvjOhOC+ZBygvYnjgeaO0ASWCcJsNdwPIu/AIiiw 2w/rVNcC5p+vpIPLZzmCc0R3gy0zhar6S0B1 X-Google-Smtp-Source: AK7set/5cvu/Y4VbF9ce6JFU9HpdtREDJXkI9Z7P5HN59ix/E6X27128930KbFn8HyT2QvOZIxBzjA== X-Received: by 2002:a05:7500:25a0:b0:f3:b3b7:2da0 with SMTP id bq32-20020a05750025a000b000f3b3b72da0mr807909gab.23.1675098360850; Mon, 30 Jan 2023 09:06:00 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-167-59-176.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.167.59.176]) by smtp.gmail.com with ESMTPSA id v4-20020a379304000000b006cec8001bf4sm8347900qkd.26.2023.01.30.09.06.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 09:06:00 -0800 (PST) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1pMXbT-001KTE-LA; Mon, 30 Jan 2023 13:05:59 -0400 Date: Mon, 30 Jan 2023 13:05:59 -0400 From: Jason Gunthorpe To: Shuah Khan Cc: Mathieu Desnoyers , Shuah Khan , linux-kselftest@vger.kernel.org, Ingo Molnar , linux-kernel@vger.kernel.org, iommu@lists.linux.dev Subject: Re: [PATCH 31/34] selftests: iommu: Use installed kernel headers search path Message-ID: References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> <20230127135755.79929-32-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 30, 2023 at 10:01:23AM -0700, Shuah Khan wrote: > On 1/27/23 06:57, Mathieu Desnoyers wrote: > > Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather > > than using kernel headers in include/uapi from the source kernel tree > > kernel headers. > > > > Remove bogus ../../../../include/ from the search path, because > > kernel source headers are not needed by those user-space selftests, and > > it causes issues because -I paths are searched before -isystem paths, > > and conflicts for files appearing both in kernel sources and in uapi > > headers with incompatible semantics (e.g. types.h). > > > > Signed-off-by: Mathieu Desnoyers > > Cc: Shuah Khan > > Cc: linux-kselftest@vger.kernel.org > > Cc: Ingo Molnar > > --- > > tools/testing/selftests/iommu/Makefile | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/tools/testing/selftests/iommu/Makefile b/tools/testing/selftests/iommu/Makefile > > index 7cb74d26f141..32c5fdfd0eef 100644 > > --- a/tools/testing/selftests/iommu/Makefile > > +++ b/tools/testing/selftests/iommu/Makefile > > @@ -1,7 +1,6 @@ > > # SPDX-License-Identifier: GPL-2.0-only > > CFLAGS += -Wall -O2 -Wno-unused-function > > -CFLAGS += -I../../../../include/uapi/ > > -CFLAGS += -I../../../../include/ > > +CFLAGS += $(KHDR_INCLUDES) > > CFLAGS += -D_GNU_SOURCE > > Adding iommu test maintainers: > > I plan to take this through kselftest unless there are conflicts. > In case there are conflicts and you want to take this through yours > > Acked-by: Shuah Khan Go ahead please Jason