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 888F1C6379F for ; Sat, 11 Feb 2023 00:15:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbjBKAPr (ORCPT ); Fri, 10 Feb 2023 19:15:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229506AbjBKAPp (ORCPT ); Fri, 10 Feb 2023 19:15:45 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2635E831CB for ; Fri, 10 Feb 2023 16:15:44 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id bi9so948785iob.1 for ; Fri, 10 Feb 2023 16:15:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qbkcBCzqB6Bhnw08ObqB4UKeNk62tom/v69d4G2QaHo=; b=ADJ+NDsgKyHyN8uoAdicRC4TZYYcp9IncDhQqJ/pK3xuapGF2kXR16aWyA3vBiCQp0 /sDAp9j9LtU1F707Vz870jS59vZ+QIvkPxitLoXLcGtzQhM5XeXyQjnpQRM1PF81gN39 qL/KvKn0G3q6tNs1860AZIEcQM0srawlAwoiA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qbkcBCzqB6Bhnw08ObqB4UKeNk62tom/v69d4G2QaHo=; b=fMZ3paXF9Gb3wNnHX8yKvdHoq1f3iAcnpixEvX4gfG30h6eGPcXpcAm3zqQVzs+cBA itVz6YKG5mLz7iXxSxVywpx7+rsv5d0IOIcdbw53rBTKQ2aFfadJpr7eb+nAx0dHIuNX +Hun62kNbv5YbaBdeNwtxUdAxIQ/Puba1EM3vVQDRYPA80/kXFfGeZ3LNmuK+gPWGZM7 viFhogbPlOhC1pFzvmZlN2Rd3L+ESOJ1+kuvLkbWUhHubn+sxE7RbLutbYOHAPsKsdr9 B33+yj3i+Onyl9skL3D78xKp5Z5fFuwVXYwZuoZzIyouGhvyn5srX0UXbiRQXoHFQ8p5 1imA== X-Gm-Message-State: AO0yUKXX+bACSNJ8TF7SsoummNdpa44GxCA6S2KeAN8/+xwYHcVaCMJy GcuTaJ1DEzysLS0K0WF4W+rhQw== X-Google-Smtp-Source: AK7set/LYZ0DlptJM/8MELucz4/oGHkq3EnrHPTYhMfuT7mKai/9dPxEnYLdjBR81HUtP0VXeg3Zow== X-Received: by 2002:a5d:9046:0:b0:71d:63e5:7b5f with SMTP id v6-20020a5d9046000000b0071d63e57b5fmr11461339ioq.2.1676074543415; Fri, 10 Feb 2023 16:15:43 -0800 (PST) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id n10-20020a5ed90a000000b0073a312aaae5sm1725931iop.36.2023.02.10.16.15.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Feb 2023 16:15:42 -0800 (PST) Message-ID: Date: Fri, 10 Feb 2023 17:15:41 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 00/34] selftests: Fix incorrect kernel headers search path Content-Language: en-US To: Mathieu Desnoyers , Shuah Khan , linux-kselftest@vger.kernel.org, Steven Rostedt , Christoph Hellwig Cc: linux-kernel@vger.kernel.org, bpf , Networking , Ingo Molnar , linuxppc-dev@lists.ozlabs.org References: <20230127135755.79929-1-mathieu.desnoyers@efficios.com> <560824bd-da2d-044c-4f71-578fc34a47cd@linuxfoundation.org> <799b87d9-af19-0e6a-01b7-419b4893a0df@linuxfoundation.org> <975995d6-366a-88e3-2321-f0728f7e22a7@linuxfoundation.org> From: Shuah Khan In-Reply-To: <975995d6-366a-88e3-2321-f0728f7e22a7@linuxfoundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/23 18:06, Shuah Khan wrote: > On 2/1/23 19:07, Shuah Khan wrote: >> Hi Mathieu, >> >> On 1/30/23 15:29, Shuah Khan wrote: >>> On 1/27/23 06:57, Mathieu Desnoyers wrote: >>>> Hi, >>>> >>>> This series fixes incorrect kernel header search path in kernel >>>> selftests. >>>> >>>> Near the end of the series, a few changes are not tagged as "Fixes" >>>> because the current behavior is to rely on the kernel sources uapi files >>>> rather than on the installed kernel header files. Nevertheless, those >>>> are updated for consistency. >>>> >>>> There are situations where "../../../../include/" was added to -I search >>>> path, which is bogus for userspace tests and caused issues with types.h. >>>> Those are removed. >>>> >> >> Thanks again for taking care of this. I did out of tree build testing on >> x86 on linux-kselftest next with these patches below. I haven't seen >> any problems introduced by the patch set. >> >>>>    selftests: dma: Fix incorrect kernel headers search path >> This one needs a change and I will send a patch on top of yours. >> Even with that this test depends on unexported header from the >> repo and won't build out of tree. This is not related to your >> change. >> >>>>    selftests: mount_setattr: Fix incorrect kernel headers search path >> This one fails to build with our without patch - an existing error. >> >> I have to do cross-build tests on arm64 and other arch patches still. >> This will happen later this week. > > arm64, s390 patches look good. > I am seeing problem with selftests/dma and selfttests/user_events. 1. selftests: dma: Fix incorrect kernel headers search path dma test no longer builds. This test depends on linux/map_benchmark.h which is not included in uapi The order of include directorries -isystem followed by installed kernel headers, breaks the test build with the change to use KHDR_INCLUDES I am going to revert this patch for now and figure a longer term fix. The problem is the dependency on a non-uapi file: linux/map_benchmark.h Fixes: 8ddde07a3d28 ("dma-mapping: benchmark: extract a common header file for map_benchmark definition") change added this dependency on including linux/map_benchmark.h Christoph, Do you see this map_benchmark.h as part of uapi? 2. selftests: user_events: Fix incorrect kernel headers search path This one depends on linux/user_events.h which has bee removed from uapi in this commit: commit 5cfff569cab8bf544bab62c911c5d6efd5af5e05 Author: Steven Rostedt (Google) Date: Fri Apr 1 14:39:03 2022 -0400 tracing: Move user_events.h temporarily out of include/uapi This isn't a regression from 6.2 - this test stopped building once user_events.h has been removed from uapi. I will add a note that this test depends on a non-uapi header and can't be built at the moment. thanks, -- Shuah