Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5332499rdb; Wed, 13 Dec 2023 06:01:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IGj0sZKzfpf28eF5QSmyhKi6pFjE8ZElTRUWb5j08Y2mFooptTUqA2kp4jnUG7Gc8EWfZPD X-Received: by 2002:a05:6808:114a:b0:3b8:b063:6669 with SMTP id u10-20020a056808114a00b003b8b0636669mr11048375oiu.96.1702476114968; Wed, 13 Dec 2023 06:01:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702476114; cv=none; d=google.com; s=arc-20160816; b=A/BPi0dBZ8pnmV8SXOLpZvmHSj452ztZxy2uyYnx6zS8jYw1rT14PNvC/0LUFjIPzi 1jYGJjJX56cyrSYdZGn8bEyekRU+ahUsIqcNSvZvf3fru+/avhgOyUxYVkzU5cn0j+52 b+SJb9xAbzQtBsbuj3AbfjYeMJEqqZwie3duCKou1eqRhYtDaYbPZzp5Q36d/08/zY49 x92q7ujh2JB+1QSSqOvrrqrMpnoHIO2SHlGJ5kDpMT9/VBtg27mhDuLGJ6Fu2yO3TQqk ho77q8QOQaPbJRziOHi7Y274+nkXSxkIntwBeVqh1Du614MTPh0YeeKlLe+fAFXFOJ2Z QOCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vOw8d+JXilPrP9AP5/jrg3IJrQx+xZsvEaX+/R4+fc8=; fh=zlTL8gQPaqn896mFuinYHyqt8AHW3z33XQBl1ejMoCs=; b=MRbN/JDlEvQXparuXmP+Mk3suSssx6DPdVOvCnrrkNlO5mcJnauzqfUat5dhn3Io0G cwbJujdarjFIzvDrIIBpGFmpvPYprrRVDnMLN5s7yEJa/xr3/OeVO8wE8XN70YKkT1Sn p8DfysKRXpE0DF1ffiuVMyzG8qzujLe2Vo2rXYURagFYu0hBKvKbnZv7VXs6rpZHm/Oi Is+zjymK/iwz+MiWvhB8o9XbAelV1J+cJPT8UlctwXlHIKCFqIb0LlEzXv2tzDoxcl3E ol1GkYzrI/W70OD2CaP3Gzt6NdKdccbBCbPx16bVHED++0mJvTr9cqkjkOq77Oa6aVVR H+kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MaBOz/47"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id fa7-20020a0568082a4700b003b84ec3effesi3787263oib.159.2023.12.13.06.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 06:01:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="MaBOz/47"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id E78D58217A61; Wed, 13 Dec 2023 06:01:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233428AbjLMOBY (ORCPT + 99 others); Wed, 13 Dec 2023 09:01:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442057AbjLMOBE (ORCPT ); Wed, 13 Dec 2023 09:01:04 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A962B199D for ; Wed, 13 Dec 2023 06:00:41 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C1A6C433C7; Wed, 13 Dec 2023 14:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702476041; bh=uBRmDLreG8WgwNQkvzLPBqQqss2T/ZofeYOVFa+eznA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MaBOz/47yY6VrRxrv3KKFtukVEZ+DALugU+umNCVqzDhVU9TRoPPiFIp6ki7L9H85 +SSElnIH3cjgLrJjtr+W8i5TGHkloO1SPoxHDMtPwN7rgnMdsPs8Je95lVTgYqohyR JqrZYSFXbJEp38k/t+mh2g0yhf4bcVTVKhzt8BhWXEmA+Dp95HZqRoBeVDRrQFdJer vaqixHfU41igB/RuHZQCeqqD00PejJoOR9FbU1fUo6TJxgJ11TH6I5zO5bFGZAsJNH DIhMhseUcZXSIwpFgmoLPWal2mkolYNmSACLQw+G+Y6KkL40k6cbvAwEE3B3ToU/m3 +VG3sMai75JfA== Date: Wed, 13 Dec 2023 14:00:32 +0000 From: Mark Brown To: Muhammad Usama Anjum Cc: John Hubbard , David Hildenbrand , Suren Baghdasaryan , akpm@linux-foundation.org, viro@zeniv.linux.org.uk, brauner@kernel.org, shuah@kernel.org, aarcange@redhat.com, lokeshgidra@google.com, peterx@redhat.com, ryan.roberts@arm.com, hughd@google.com, mhocko@suse.com, axelrasmussen@google.com, rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, jannh@google.com, zhangpeng362@huawei.com, bgeffon@google.com, kaleshsingh@google.com, ngeoffray@google.com, jdduke@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, Peter Zijlstra Subject: Re: [PATCH v6 5/5] selftests/mm: add UFFDIO_MOVE ioctl test Message-ID: References: <50385948-5eb4-47ea-87f8-add4265933d6@redhat.com> <6a34b0c9-e084-4928-b239-7af01c8d4479@sirena.org.uk> <3240f4b5-081b-4075-851a-7d1cd86f4333@redhat.com> <3eadd79c-c02a-495f-92c0-0315046ef59f@nvidia.com> <3d22f342-280f-4a44-87f4-8cca291cfce7@sirena.org.uk> <0f97db9c-5b86-4f56-8463-2520fe79f709@sirena.org.uk> <2e4a719b-f2b3-48db-99db-d96040d78b12@collabora.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/XZEbL4J1kAPYGOF" Content-Disposition: inline In-Reply-To: <2e4a719b-f2b3-48db-99db-d96040d78b12@collabora.com> X-Cookie: One size fits all. X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 06:01:42 -0800 (PST) --/XZEbL4J1kAPYGOF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Dec 13, 2023 at 08:58:06AM +0500, Muhammad Usama Anjum wrote: > On 12/13/23 7:14 AM, John Hubbard wrote: > > Oh, this sounds like it would work nicely. No more "make headers" > > required (hooray!). Instead, the new approach would be "selftests are > > allowed to include from tools/include", and then we can just start > > copying the files that we need to that location, and gradually fix up > > all the selftests. > No, this wouldn't work. Note that we have a bunch of selftests (at least arm64, hid, kvm, rseq and sgx from a quick grep) which already use and rely on the headers in tools/include. > * The selftests are applications which include default header files. The > application don't care from where the header files are picked up at compile > time. We should be able to build the application on normal system with > latest headers installed without any changes. I think there is much less interest in building out of the kernel than there is in avoiding having to handle random userspace headers... > * The header files cannot be included directly as they need to be processed > first which is done by `make headers`. Here is a diff between kernel fs.h > and processed header file to be used by applications: I guess that's another reason why the sync is done manually. There are also a bunch of files in tools/include that are just completely different implementations of things (not just uapi). --/XZEbL4J1kAPYGOF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmV5uP8ACgkQJNaLcl1U h9B4Agf+MNb0FxSD5g83dGXjn3wfAIHYImULMzBSAyVwk+xbUBcF5RwuyI/Up6pe jF7sirB8JObQgIDvOntBvbLGxjnrbKVZmrnnrz3IZLy9coVcvydGocN2dgTK/U63 0n4vbXdOYqavpATUodi9QyrB+1peaITg+DvOBR95uoORBc94VM7bXVxGgD61oZ0N ZElj6Uuiegt+pu4yzSnCsNrXvvIUk1y1jl59tH1NV+WAnoHsDkNJReua3pUtYU3c MUyU+EkGOUI256iUVCafNaBqkbWvy070pa/QToV9OI+js6AF5//Yj0LR1LtZprjq q371z9Rj+1s+jACuAtuq8ELOJrN3QQ== =PCP4 -----END PGP SIGNATURE----- --/XZEbL4J1kAPYGOF--