Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp298878rdb; Fri, 6 Oct 2023 04:05:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcuBjSvRqp3C+BxauSMhWysf4yqaYtcp/tKsAD5whQ41WLuaNLIGVOgc1jeNBHuRdHVnzy X-Received: by 2002:a05:6a20:551e:b0:133:d17d:193a with SMTP id ko30-20020a056a20551e00b00133d17d193amr6611252pzb.59.1696590348426; Fri, 06 Oct 2023 04:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696590348; cv=none; d=google.com; s=arc-20160816; b=DRqh/4EkPcuc8xU4hqmvA5HA2rZ0HvD62kbs7ydPybGdvVWD/gIctbUQQG9c9BYHqA aFHA9feP8Izz06KJqsDMMm/UEG9Orecg9x7MNsIEgzwfYKUrGWYZqjLnHDL5CoJ/g+TH mEzjY+un4MqWMPkC8EpR1AUsW1QcoRRV/R+ZNM/2q53WmO3G37G3g0cglqGOziaDI+4F +kMOarOxiUBbRDQVsmXRRCu6gNays8ZqqRu5RAPr6SQH4VpUcv9i1P3XUZgpl+l6J7Y/ UmzdahlCchQC70BvSr9hcMaR1wLFO5bFbIfq9k1hEsOk5Jn71DCjRyQ+C7BgWoAy6rJI VcXg== 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=OZ4DgNh323ueIxshn/z6FhcnYagkw55UJIwXuVVZkLQ=; fh=bmoPjwx/eXk97ENTkYFHsT1dT+sQoAU/02gfY2FRDps=; b=OYldjLxknbwR43QpFctMIuVpdxXvd7rp8AxwvAFCnN+nxzodTnOiUwHpKTTjoN/1jF W4xfl9MIeI98JqzzC9s4Ts+2lTi5/8vBBa+k/BMBDzHh16xFL6JB2ZXXo+Fll2dyvmoS YdYjjpcdCpKWvzNiAgJ6hbFmfCDaLC7wDqyxrJ2no8H59zk91WNvjbVwIBm/xLNHMoas wMSFekRm6W1fl3eIgaKwTQbM9wv5Eu1hwcPh4OzxpMXdcJGy5JiyWOoXKZUUvwRsUCdf F8A+MC2KzDYddlo7m7I80O6sEaMBuFkaC+KWpbPjV0BxgUyv0evvSMMgrLXwogzNmiYF Vl7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NWC7KZpO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q7-20020a17090311c700b001bde9e8a29fsi3662640plh.183.2023.10.06.04.05.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 04:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=NWC7KZpO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 277248092DAA; Fri, 6 Oct 2023 04:05:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231945AbjJFLFo (ORCPT + 99 others); Fri, 6 Oct 2023 07:05:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231916AbjJFLFm (ORCPT ); Fri, 6 Oct 2023 07:05:42 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B8D4CA; Fri, 6 Oct 2023 04:05:41 -0700 (PDT) Received: from [192.168.100.7] (unknown [39.34.184.141]) (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 madras.collabora.co.uk (Postfix) with ESMTPSA id C417366125F2; Fri, 6 Oct 2023 12:05:36 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696590340; bh=Br2dDU51tDwN159y1nk0DEOvOinELT3kcnJgVWVZ96I=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=NWC7KZpOJ4vkunO0YgdxRWPlEeQUuzQvdd6SZ0K/qb0ynsFvQfWHCRLd+dgdVauJH Cjl+eEaglVWwNTl452zEBtgYkyE+0k1Or7Ae1ucJY5EZNm1EIlmBJHhzjFDuJkVkYO Bj97ga7KPDpVUWaNS4LjV39nUUH0Vc6Zn4fsYuCi3HGQ2+anTakmBLCZe4w8eOJ4u8 ZpRHAk3Mz8zbqTT2lD0JEJ6gqk9I3n17rNKJf47lvLHkMAWzvFUFLKovFmAiUGIsYi GKq0FtPCIScbeL5zyNQ97UAKM/5YaFnsxHmFafx2CpOToqyffk37jvJ9FhZYnYct6u TgZ0P2EXklAYQ== Message-ID: <1b9a4e52-cfa3-4f56-b259-41c94abed362@collabora.com> Date: Fri, 6 Oct 2023 16:05:31 +0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, x86@kernel.org Subject: Re: [tip: locking/core] locking/futex/selftests: Remove duplicate ABI defines Content-Language: en-US To: Ingo Molnar , Peter Zijlstra References: <20231006095539.1601385-1-usama.anjum@collabora.com> <169658834039.3135.4395839213523782496.tip-bot2@tip-bot2> <20231006104325.GC36277@noisy.programming.kicks-ass.net> From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 04:05:47 -0700 (PDT) On 10/6/23 4:04 PM, Ingo Molnar wrote: > > * Ingo Molnar wrote: > >> >> * Peter Zijlstra wrote: >> >>> On Fri, Oct 06, 2023 at 10:32:20AM -0000, tip-bot2 for Muhammad Usama Anjum wrote: >>>> The following commit has been merged into the locking/core branch of tip: >>>> >>>> Commit-ID: d351a9e56cc90a9ff694550e4b3bcaf51a391525 >>>> Gitweb: https://git.kernel.org/tip/d351a9e56cc90a9ff694550e4b3bcaf51a391525 >>>> Author: Muhammad Usama Anjum >>>> AuthorDate: Fri, 06 Oct 2023 14:55:37 +05:00 >>>> Committer: Ingo Molnar >>>> CommitterDate: Fri, 06 Oct 2023 12:29:45 +02:00 >>>> >>>> locking/futex/selftests: Remove duplicate ABI defines >>>> >>>> Kselftests are kernel tests that are built with kernel headers >>>> from the same source version. The kernel headers, which includes >>>> current ABI definitions, are already being included correctly >>>> in the futex selftest Makefile with the help of KHDR_INCLUDE, >>>> no need to define them again. >>>> >>>> Remove duplicate ABI definitions, which is effectively dead code. >>>> >>>> No functional changes intended. >>> >>> so.. as it happens I recently built these things as stand-alone, and >>> then you ver much end up using the system headers. >>> >>> Also see 20230922205449.808782861@infradead.org where I add more of >>> this. >>> >>> Specifically, if one does: >>> >>> cd tools/testing/selftests/futex/functional; make >>> >>> You don't get kernel headers and stuff does not build. >> >> Hm, I did this after applying the patch, and it does work, >> but maybe I missed that those definitions were picked up >> from system headers... >> >> So how about we make sure current kernel headers are applied >> correctly in a 'standalone' build? There's no reason they >> shouldn't be. > > Anyway, I've removed this patch from tip:locking/core until > this is cleared up, as your usecase is obviously a valid one ... These days a error should appear if the kernel headers aren't found at build time of kselftests. After building headers, kselftests should be build. ➜ functional (06bc8fe4bfc4b) ✗ pwd /linux_mainline/tools/testing/selftests/futex/functional ➜ functional (06bc8fe4bfc4b) ✗ make -e error: missing kernel header files. Please run this and try again: cd /linux_mainline/tools/testing/selftests/../../.. make headers make: *** [../../lib.mk:81: kernel_header_files] Error 1 ➜ functional (06bc8fe4bfc4b) ✗ (cd $mainline && make headers) > /dev/null ➜ functional (06bc8fe4bfc4b) ✗ make gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ futex_wait_timeout.c -lpthread -lrt -o /linux_mainline/tools/testing/selftests/futex/functional/futex_wait_timeout Before and after applying this patch the behavior is same. I'm doing testing on next-20231005. > > Thanks, > > Ingo -- BR, Muhammad Usama Anjum