Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp5309831rwb; Wed, 17 Aug 2022 15:22:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR4XZz1GdlPItSoAKvv7kj9FHU4jXM46BrPDNjCG788JoPRJMqhsH1ql6SqUMAuRRMnqZY54 X-Received: by 2002:a17:902:d492:b0:16f:8583:9473 with SMTP id c18-20020a170902d49200b0016f85839473mr278206plg.103.1660774924023; Wed, 17 Aug 2022 15:22:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660774924; cv=pass; d=google.com; s=arc-20160816; b=atjpiLrzaD+ePb52U7VeTWDZHHuX508ynFnntQ9LlSzxkPWLOY6dk4wcTDOIbPm3qn C0zjWu88L3wwox6qUkcwqDW0qtqTpzGEdgL7jQiMPj97zb69TTRhiuqpGxVrIXV3hHwI RZpDq+l30oPnBhjJHA57gM11FdigmYEJmz/R/aQjh02TbgFXT4a1Q61HCDtnO4nwhD8P PvnyJYmfm2hepjb9szTGMy9iSWIsrz67vefgglWdZ+0nVHAsixtQSk1i7rouD8GRAHDr hZuNoKHjApkgWMBZxVBjgE3zalJki54ng2jUkzU+5+ot3fBJfhz64Rjdr41bgp7U8A9j 14Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=dqRyi/vCUC+sRPTFSSX0a1p+jvtjzQL/ztKZPCKdHRQ=; b=gaBlmEU9HlzHpnCgVLoHkdQoFPSdyif8Gnow7f/cKhhFJ1I1bUxpsay0Mecl2jfTQT IipvTAQ8/1POSycCTux3fanPZnXabG/RXEINq4gonNH1Zl1zKodvUDgQaQ+3CS9tZ6eO R7EDvMyN1f5vTb4cABeHtcx+cQhbOMLi69K2P+c0ambAw3+C+C/6grCkyd7Oh7lGBVn2 X3lnM9rCXKhGxvrEMAvFCrhrHLvMgAzmld9st8rcS4Ny1I9lxe4QVmKPivKpmzdMlz4+ blDw5powEB/P2syWELTR3+HlnomsHBZgsWBEWzHZbyl/4vDF6rfNxa4vQvTpkqmqsW17 aoEA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=FLBrDX1r; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a63ad0c000000b0040cf84add25si16959581pgf.878.2022.08.17.15.21.29; Wed, 17 Aug 2022 15:22:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=FLBrDX1r; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235858AbiHQWP3 (ORCPT + 99 others); Wed, 17 Aug 2022 18:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242179AbiHQWP0 (ORCPT ); Wed, 17 Aug 2022 18:15:26 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DB2AA98D5; Wed, 17 Aug 2022 15:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WLbtjsSSnhFhQ+gIo20W9kBqg5pHBJ5270ZnXIFpRsujJeu6XKyQDqE5kweirJBIslmywEDmvagCTWmCSbQZllaWlEZJ6Nd6jo+KsOnBQb9wLPnz3Bg/nWCcuCwCqR8oq6DK3VKy5+kHnj4iFXdxIxd2MjTcVWQ/Uq9P/UwQcodXjh28l9vtbRNkGx1ltF3jpc57Khj96WVKIOeScuxXZnmBK0hpJXzz+FNklzIEWgQUzaQo1rvqnVaB7dSyIHhDQNnKZsDongAwxvIk+OYsyNR+TIqj3YTkASzz/sXlLqEG7w2VREHyiZ0tH0y+U/dhd2Kuzyt5K0Z02HcwEanHMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dqRyi/vCUC+sRPTFSSX0a1p+jvtjzQL/ztKZPCKdHRQ=; b=WiPQ+dL5Oajzz/is8zOilBduKov8JHEOLjJ08r8l/MSl/JuTeFCgD9JM4Vhep31Y8D0+ddYd6k+iGYf1PSlpvWh2f6xeNmGPP5tvEoDBdD/NLCmh3+LHzeMCGBh9axCVpZcAiKi5dG005YInrVJAN9CRbUqqagTFPCqoDqq6NOw7uW9AI5ylsSNPIpNqvk3CeeVPX1y7QbY/SQ4tt2BgSYOrNhpwK+tVFfHXcoDGEUQx+oDsuoM3OjDdER1L3EKnQvoKr3qCVEznucC3vOvsECWqW5Pz8R+4mPzCgHI7QrKOVbutDCTu6TkrcxJ1FEHQ8eStox2jItxHswfb2hNMuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dqRyi/vCUC+sRPTFSSX0a1p+jvtjzQL/ztKZPCKdHRQ=; b=FLBrDX1rj1jkAqnJbr6PmKN3UP97Ath9CMLAQbW7p+OBZaCurKO/B9WJIGTiJg1NOHJPoyv0dmq6vDfXLegGTX8Xg9/8swbu48t8Blx34EjhaIn51B9BgCrMvGhXHdwyy67MwOhAQulCuqdiR3vhM2kE31GewAkkSoVQEMY2LDXLNi3LVahIEFUK2eptWAh2j32rMWW9QGXkp5AshhRLV2vn34SZS9F26iUl3uRCiJdnj21zAL5MFxmJmt5pTXiTbjbATkoz+sNxJ/CLnGd698QDdmTlXFCBHjo7eAhrOs8IAuxOvD82U2Zh6YTy6MrwrJMOWm1wDvijK4rIzgXCvg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by MW4PR12MB5644.namprd12.prod.outlook.com (2603:10b6:303:189::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.11; Wed, 17 Aug 2022 22:15:22 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5%9]) with mapi id 15.20.5525.011; Wed, 17 Aug 2022 22:15:22 +0000 Message-ID: <190edda8-1f37-0fa5-1cc1-ada97518698a@nvidia.com> Date: Wed, 17 Aug 2022 15:15:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] selftests/vm: fix inability to build any vm tests Content-Language: en-US To: Axel Rasmussen , Andrew Morton , Shuah Khan , Guillaume Tucker Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220817211356.273019-1-axelrasmussen@google.com> From: John Hubbard In-Reply-To: <20220817211356.273019-1-axelrasmussen@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR13CA0034.namprd13.prod.outlook.com (2603:10b6:a03:180::47) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b1f6373-6bbd-4489-12eb-08da809dfa78 X-MS-TrafficTypeDiagnostic: MW4PR12MB5644:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: G0ZaT5eIvbPYDj9HXO6L7USxjyhdaiwh6h66qRV6DeY0APBs+noP0oAM/WvsjAgBM6ctkcTbMuL7xcr89ySPf20a/2wYBHzpM3S2ZLO231MtXnYMiyP6zypNjl7p8Y22cO4oSs3/83QMMeSqxFjIlL0lyhg89aLVSjXFlS4WMWs+Vlu6cC9OtRVagrDrIw6kqBX8IlpG4DUtYyXoUCEu1T5XLYGi9NYDBj0urd3NalFKgQMXM5Qw2eeqGds8nz1Fh2I+XapDp1lX41MP+6A0XeZC2p+v+N3b+4NJhjvnRq+71cpvPbdeTJj2CEzTJroFrACCw03MaF3Ms6VMsoZseYIxIIRMHFWT1FxTh6E2nPoUTECFZcVfM0XcoNIONY928cGpi9XdPxKzFfWFOVMvlVoR2yOjyQpNpCRsBXV059OJuIuAY4dhOSxiTJn4hT6hNjaG+avlid0aP3P+4N8MMu5XAG96Ax/hryJ3T69/17OhQiKQZb+pCdK4Z2a96chE87wm7x1VmK9tzhukRuX4d+gwRVFlHXpllVjhsqM9uR/bTqvqDjCLJBYYxUiliHih6hFUYf7Y6BUKa35S8fByrBybX1pSyhY6uMmaEzMtpGOhTsun6Efk2L/C3xhVOhvwvO91BKhTbqfmgtl9VIRxAU2VmccUR9KwSyz1uW7gXN25NIDhudbNaCQGoRG9oUu6zJWVAEZu214J1DctWvp5mcNwBrPv7WBLzYKRtgJDB8JA8B/8rp0gfcUiViaZ1sVtKgnqLXk2P4qmPsjlDHfCCaPi8Q3Y1UDcE+672/wWqio= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(346002)(396003)(376002)(39860400002)(136003)(53546011)(478600001)(41300700001)(2906002)(86362001)(6506007)(5660300002)(186003)(2616005)(31696002)(26005)(6512007)(38100700002)(8676002)(8936002)(6486002)(36756003)(31686004)(83380400001)(110136005)(66946007)(66556008)(4326008)(66476007)(316002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OFMzYmJrM1g3a3hSOWY5ckJSVGxnVnJmUjFCSVFJOXg0d2Y5MXFxOGc0ZDgv?= =?utf-8?B?Qm5HY0ZDMU5WbGhqbFgzQmF6RG5pUzZtSWZEWTMvK2M3QTREN2xneWFNejUw?= =?utf-8?B?OFNnU0VIS1g4L3QvaHVNS3V1bVRFN3JkL0xWUkM0TzJxTzlqQUo0c2lnSlZW?= =?utf-8?B?bEJUNDh6S0xPSUhUWmdWSVdrclN1Myt4Qlp4ak9JdTR1WFoyYU9DSXVDV2RW?= =?utf-8?B?SXRCd3BMaThGNGk3OXZ3Wkd6YVFZaEhpMjB0eTlDYVdZUzJhbHlwMXJBNGxZ?= =?utf-8?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heTlqd0JoSVdVQVhINUJLYjJrbE9YUmU0?= =?utf-8?Q?FWqWQN8+ggTa8vdFZyoK7WD6x?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b1f6373-6bbd-4489-12eb-08da809dfa78 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2022 22:15:22.8458 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KiC+pYUh92vAbC6yYSJ+7lIVamvVIgxXPwJWs5TZ8IaPdL+5x1YXQ//xtZKNESwKlSpcp/Oca2bdEsRpUwDHpg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5644 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 On 8/17/22 14:13, Axel Rasmussen wrote: > Fixes: f2745dc0ba3d ("selftests: stop using KSFT_KHDR_INSTALL") > Signed-off-by: Axel Rasmussen > --- > tools/testing/selftests/vm/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile > index d9fa6a9ea584..f2a12494f2d8 100644 > --- a/tools/testing/selftests/vm/Makefile > +++ b/tools/testing/selftests/vm/Makefile > @@ -1,7 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > # Makefile for vm selftests > > -LOCAL_HDRS += $(selfdir)/vm/local_config.h $(top_srcdir)/mm/gup_test.h > +LOCAL_HDRS += $(selfdir)/vm/local_config.h $(selfdir)/../../../mm/gup_test.h Hi Alex, Thanks for fixing up this build, it's always frustrating to finally finish working on something, only to find that the selftests build is broken! This looks correct, and also I've tested it locally, and it works. So please feel free to add: Reviewed-by: John Hubbard A couple of follow-up thoughts: 1) I recalled that hmm-tests.c in the same directory also needs gup_test.h, and wondered if that was covered. And it turns out the the relative "up and over" include path is done in hmm-tests.c itself, instead of in the Makefile, like this: /* * This is a private UAPI to the kernel test module so it isn't exported * in the usual include/uapi/... directory. */ #include "../../../../lib/test_hmm_uapi.h" #include "../../../../mm/gup_test.h" It would be nice (maybe follow-up polishing for someone) if this were done once, instead of twice (or more?) via different (source code vs. Makefile) mechanisms. 2) Commit f2745dc0ba3d ("selftests: stop using KSFT_KHDR_INSTALL") claims that it is now required to "make headers_install" before building the selftests. However, after applying your fix (not to imply that there is anything wrong with the fix; it's fine), I am still able to build vm/selftests, directly after a top-level "make clean". I believe that this is because the selftests are directly including gup_test.h, via relative up-and-over paths. And I recall (and also did a quick dry run, to be sure) that this internal gup_test.h header is not part of the headers_install list. So that seems to be all working as intended. But I wanted to say all of this out loud, in order to be sure I fully understand these build steps. thanks, -- John Hubbard NVIDIA