Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4459126rdb; Mon, 11 Dec 2023 22:59:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0VgEfTlM4sLnDpI5FL8kPHAsIpvco5nE/ql3WUybsMrbdgn1lTK2oez7IWv/JLhqqOFnC X-Received: by 2002:a05:6870:c1cc:b0:1fb:75d4:beb2 with SMTP id i12-20020a056870c1cc00b001fb75d4beb2mr7850637oad.77.1702364375052; Mon, 11 Dec 2023 22:59:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702364375; cv=none; d=google.com; s=arc-20160816; b=E13sOE1hMcs2FFDdgpZZqKopLLu53S+9g+an14gSFCbROztF7pGPZfSbt57c2xXbb5 +chAwIGYksWJHYL80z9esqThA5dFUKDaVQghZMu7uutsroqPVdY31dZ681PqCnd9s15Y VGZ10Ep1fjCxUx//FUrjr2dn0Uf7QCIz6/DmwyKY1+fP9tK+gwE+rsf4yiTdVRi5zsCN KHYDR2jdfabb3TYdjY+hHcPLofarLJW7rCZMUNiZ9UU6BmonQZke73PDkpj0ZL/mpnmq KY6PsmXSL5moIAJ/UwXts5/A+hB3KgxmpqZhzmNXEeqZ/07VD6ktPvzaWp0UZv/vdGD8 OtCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=YTQK+pIPXgnigoS9lJtXq/Umk1DYPETwaZ1oRGAmnX4=; fh=vWeHJqIShlTvQ4XvQ/GZn3EhJb4NxNkz6SpSZAwQpqs=; b=agBYO0EnF1so8q4dsT2xziO5OiFctdznsLwt4hqc+D2Kw16K0NqCqCv8M8XrVPCtWt LS2vg1HjNXOTIvKEUV/fwYTQzfC4+NU5V7QU9UG2qQIrIrzrC/bKWntXyPPpfi2XKlSN 5oZks82+IAa5QDRvhj0Za3wcuPOwWsJDSYSuPPFwNZdUTqwyzJV0k01xatDMlIZ3kF6e dJHpmWsMXeJkrblB4OWS8Q48dbL99xqLG23ndMysEyfdm2/2XISLLh5o6JibkSTJRERp Yiqk87pOOKP3pbvFARrUnTuGPfkKKx4QmxFCPb71Y84i90Vw7y81KC/MLh1ostoVWn9v 5ymQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0ktkwAIO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b18-20020a6567d2000000b005be1b2503ebsi7036595pgs.194.2023.12.11.22.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 22:59:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=0ktkwAIO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5C0F780A0550; Mon, 11 Dec 2023 22:59:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjLLG7Q (ORCPT + 99 others); Tue, 12 Dec 2023 01:59:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjLLG7P (ORCPT ); Tue, 12 Dec 2023 01:59:15 -0500 X-Greylist: delayed 71897 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 11 Dec 2023 22:59:21 PST Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CAC3BF; Mon, 11 Dec 2023 22:59:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702364359; bh=F41feDTLD6EeSRJQf7rvDdapR+nQMsHfWA39oKGkLZw=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=0ktkwAIOn1gHRVA2zhrHIyNM2u35YJz/y5vQZFlw6eFQbWsCHcaZo3qZv8LihEq9A /2yEYGNfbCpbvzn+Xbw4ZGhQMZ1X0nrOOUs8UCu79FRTAltvEmzsIuA1U81di7r9xR TykJ4WuqkOCCnrLjXiVqN9fr55Vd08Y8nZ3AGT9qpv9t/m3mQU/yeYvfxeEQ7nhPdT 7+nBysn+06H6syKxsX5U4s7iVIXYD756YTfSXuDtnEefCci0uNFoo7XTvTynasmLvR wU1sBknUJ5aeFVg3DStDQhk/rznCeo5rihTztnZ0gB7AG7wjcZeaCycHBsf1lKUncw 3pGxxuqMbIbEg== Received: from [100.96.234.34] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A2D7E37809D0; Tue, 12 Dec 2023 06:59:15 +0000 (UTC) Message-ID: <54a02895-26e5-4113-84f4-3f04358f09e6@collabora.com> Date: Tue, 12 Dec 2023 11:59:12 +0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , David Hildenbrand , Peter Xu , Nathan Chancellor , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, LKML , Anders Roxell , Jonathan Corbet , Peter Zijlstra , Andrew Morton Subject: Re: [PATCH] Revert "selftests: error out if kernel header files are not yet built" Content-Language: en-US To: John Hubbard , Shuah Khan References: <20231209020144.244759-1-jhubbard@nvidia.com> <0b35fcbd-ce8c-4c12-9725-01f18ade9fc0@collabora.com> From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 11 Dec 2023 22:59:32 -0800 (PST) On 12/12/23 12:00 AM, John Hubbard wrote: > On 12/11/23 03:00, Muhammad Usama Anjum wrote: >> On 12/9/23 7:01 AM, John Hubbard wrote: >>> This reverts commit 9fc96c7c19df ("selftests: error out if kernel header >>> files are not yet built"). >> I don't think whole of this commit needs to be reverted. Lets leave the >> warning message as it is and just remove the condition to abort the >> compilation. >> > > Hi Muhammad! > > If we do decide that "make headers" or something like it is required, > then yes, this patch should be changed from a revert, to a "warn instead > of failing out" patch. I support this is as most of the times when the latest headers aren't installed in the system. Hence the build of all those kselftests would fail which require the recently added macros. There is no workaround to build those tests until `make headers` is done or the latest headers are installed. The former is easier. If we just turn this into warning, most people reporting issues with `make headers` would go away. They will be able to build all those kselftest which don't require latest headers. For example mincore kselftest gets build without KHDR_INCLUDES. In case people want to build failing tests, they should add #ifdefs to the tests and submit patches which is idea 4. > > First, though, I'd like us to choose a design direction. The patch as > written is intended to put us on a design that does not require "make > headers" before building the selftests, because that approach would work > for all the cases I've seen so far. > > If we want something else, then David Hildenbrand has listed several > ideas, and I've added a 4th one to the list, in [1]. > > > [1] https://lore.kernel.org/3eadd79c-c02a-495f-92c0-0315046ef59f@nvidia.com > > > thanks, -- BR, Muhammad Usama Anjum