Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3983386rwd; Sat, 3 Jun 2023 17:00:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40oOCzdm2yongMGvrupqPFqsW8NxY3a8GLlfO2xg1gts1UA+XMGPfJG48J3jP2h/pnRc9t X-Received: by 2002:a17:902:c146:b0:1ae:6947:e63b with SMTP id 6-20020a170902c14600b001ae6947e63bmr3170979plj.16.1685836821426; Sat, 03 Jun 2023 17:00:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685836821; cv=pass; d=google.com; s=arc-20160816; b=aDCSRTjKrwm7YFd0e+f9Jvat5T8GGkghbvRyqnHell678FUmjUY/L2BPtPW5O6LpFT BYInDPL88nK+Valzw/6lkz9nOEMcA9MzuKD7h6omM+OL7OcorMtcORVNAGcnCV/gVbm5 hc5i1UHbcN8nYK9iON29BjTfxozgpGWGwBGJuk8l/ZSzUIgZjp6ura1MPto86lyHzRiO lNavh+7qSrMRSIicnXtOz2nc9ZFd6MOgZTKugNiisqNC32rPUmSTNpvMCLuhAx634b1n GjNYUH+ILZ0jTbFXesb/V08Yq8XZREYrG5BYtcz3BbzjgDyzuHNBAM3YGvBbm7ddMiCl 7Lxg== 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=3NuBTcNyla7IsWEMFzrrnO8ZavMIOU96D6BXSpSIsR8=; b=GX0CI6vXa3Qn5Tvxw2mzAkcE342Ei9jJj0bXEuLAQ/slg8t170x77RQIA7cZcY6NOm 023gm+AcEbcOQsDAAXyb1/WTwpTAX4xxr+eEM4Zcv8yF3dCmQc66SUa+iC2ryqXu6viP HLWt4ZlAdN8e2Q59vnxcuSvmJH1QIieWy9BdqjcqqhHI2rinLBgA43bcFi92Tl583UU6 XxlQfXjnRLnp6A9s/4dWYRhe+zt0gQiP3Py94m49YYQzKKqH/BoNsoCztX5e39oGPxmK EwdigAYB9q1XaEXsWzqs5zGVvpu4G8+hHYXaHY0RpNtXUgWhW9y/yMpwOqUBeYoo55xp QFzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=L9Uq4aW3; 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 q6-20020a170902a3c600b001a64fba3382si3168058plb.148.2023.06.03.16.59.52; Sat, 03 Jun 2023 17:00:21 -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=L9Uq4aW3; 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 S229512AbjFCXsS (ORCPT + 99 others); Sat, 3 Jun 2023 19:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjFCXsQ (ORCPT ); Sat, 3 Jun 2023 19:48:16 -0400 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2081.outbound.protection.outlook.com [40.107.237.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FF82180; Sat, 3 Jun 2023 16:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CrbVE2zT/30BzcG6KBA4NDR8Aj9fTb0JTl7FTYH7jGq70bqZVYRtvRMvFPiR26daFtUNAFPpGYFBaH6RZeqZBpjcpfNb5rMnuWJ4evBlhaJ1QhqmaypDXbejvHZygQ5vL8QM+FMPMVZXHsDWzYrbZryLC59I+Lv1eTlVsU4Y/54z1P0dmo/HErCqbPBzNua3uLU7xy6fZBs2ieusEyajlkML7O7VweUXlVdylv0MeNS91RGDausnNrVh+yasIJ/eQW6YjmsrX5c3FLYYzvXcfjdOwVGrtVQejfTKupifJNEX4NSPlBNY/Bu2tW8owj1WRpBxaso4Uljfvp8tYrL0IA== 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=3NuBTcNyla7IsWEMFzrrnO8ZavMIOU96D6BXSpSIsR8=; b=i8Tbkn8Nu/viyM+fpQwAWkf8SHlBrl7EJHWTRxKhgptCx4zu+2Tb8mW9uiAn94Feg0Ofo3M4TG2bmStdAhboKXYUu3wBoZB02JnF+nZsQB2MA+OCCdprzs5O8jtCXUsmtD06B1hbDgN43rQlIbn+d+c/7NSPsFIAN1cH8K/OJzZ7LqxY480WEHkSceu6vGjkKBDMTbAGRdwiy8yPa+Y7VJndSVzZY+ClP5GcVQYD5m7VlsradOLKLfb4AmH9TaUyavkgl0jBVr/g3YLtfwvmPhItlY2Bbwsx/nBVqk3unsxeu+s7Jd70ubffW5pgnHZUdPe6g+SnJ/6NXIIqJ3WHjg== 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=3NuBTcNyla7IsWEMFzrrnO8ZavMIOU96D6BXSpSIsR8=; b=L9Uq4aW3AK1IbDj0vUihg9235RruMFXmOHiO5gZww2T7AlxQW8tutwiduSK29NtBRpO1+jJnswMIgVUwrMn2MhXmJw18gF3nZbBzaH8w7pqDlVxlGCniBpin/1O8RVuXUEovT1tTAAEB2atCuPsbQKrlWeeUFnx88WkpBxAtFWeOLTMW60AYTYjZ1v9tvOjEdj9Il+7A3Bjxbi48nDFL8JhD8dI0Bvk3aYZ3VyIA7MMug90zHSHWpxeCpkJgX5zAdD+zv80SW83JkP1P550gYAvXerk4HMNRpv8Si1vyaTPpLwPjt+ip3WnvtkkHP9yyLDSt9Ztn15YOLmv9T99j+Q== 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 CH3PR12MB8460.namprd12.prod.outlook.com (2603:10b6:610:156::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.27; Sat, 3 Jun 2023 23:48:13 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::e01a:d41e:80b4:7cef]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::e01a:d41e:80b4:7cef%7]) with mapi id 15.20.6455.030; Sat, 3 Jun 2023 23:48:13 +0000 Message-ID: <3842dfc1-70ce-4568-a29d-31450d4c9861@nvidia.com> Date: Sat, 3 Jun 2023 16:48:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 11/12] selftests/mm: fix missing UFFDIO_CONTINUE_MODE_WP and similar build failures Content-Language: en-US To: David Hildenbrand , Andrew Morton Cc: Peter Xu , Shuah Khan , Nathan Chancellor , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, LKML References: <20230602013358.900637-1-jhubbard@nvidia.com> <20230602013358.900637-12-jhubbard@nvidia.com> <7a999b80-e266-2b7e-f198-869b1ac7cde7@redhat.com> <993773ab-7f5b-241f-b532-ee79a03b371f@nvidia.com> From: John Hubbard In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR05CA0094.namprd05.prod.outlook.com (2603:10b6:a03:e0::35) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|CH3PR12MB8460:EE_ X-MS-Office365-Filtering-Correlation-Id: efea11cd-c1d9-4f58-a025-08db648cfe47 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: seprN+BX7YlpawL6aTDttSVcI6BbKgz8aKih1mvIaHrM3yoxFna5w9/+4XlFh66PCTVRoZB0eSPlep9G5B37oJWVARG/fSydztlkWh4+8UyQmhDXs0IKxGoZTWcl0uI7iyCs5/vr+dZvMXb3p1lqDAQ1IzHyyRZiX+shjvFxUUROWcrDrCG1rfSc4an674A1bsAKRgVFSCb304dIMlkORBZLD0lWOyhrKFRw6V1RkWUzPeC0qbmiae/rd+Rlb7ppxcmRSlvJGSxgVE8ahFdsaQ1FwHkrpNumODvnAE8be/NeqaztoVRDHqJP/nRc0H7hudaZ16xw34ipOtI4aU2JSTiinJ/7aV87lyT6kXxcu645XtW5IcPbyKoJAHGBKmT6k5gVF6+wq825JTikJCEvR86pgyDR6RUbf167Pd5AI3Os2ETLfMU2C+6TWSKiqLhB2MuvIYK+64QZrE5sUGHP8P5K3O3ib4/cgx1lYeyBgmTXjV9aukeEDGDd9pKKRQAwxAefckO4n8GnykWghIeG2AQl4ka7iTOz2itt0L9GjAfkznZr/2obtyquposYaUByJDJRw08AJgaB1QH9bwVbFO58Xbzj7YEqqW9oULibeyPc7gKneSCWKfascXIMHPiwFbyxB9C1UMgnowCS9bYVkw== 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:(13230028)(4636009)(396003)(346002)(376002)(366004)(39860400002)(136003)(451199021)(478600001)(31696002)(2616005)(86362001)(36756003)(186003)(26005)(6512007)(53546011)(6506007)(6486002)(2906002)(38100700002)(41300700001)(83380400001)(66946007)(66556008)(31686004)(66476007)(8936002)(8676002)(4326008)(316002)(5660300002)(110136005)(54906003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZnVlMjlqbXpWeTJWSlpsR0hKQlMyaWZCMFE4d01IOERybnZNNExWVS9VRTNM?= =?utf-8?B?Sjl4VktXTURBK3gyZytzZlB2R2VSZ0FjQ0haTUw0bEdFNXVQdHhoNzhIR3kz?= =?utf-8?B?bzRGRW03aGFXQ1IzMGtiQVd3VUJoVTd0NTRXcEZlaXpZVEIvTkllS2pyOFF2?= =?utf-8?B?WHBjU0VFa3o0N2tUeEE1eTFRNlFCSGdBWkFnV3JCOU0xZXR1WGd1cWl6WXBm?= =?utf-8?B?MHJHaDJ4N3ZCanFRZ05meTVxZURGYlIxb2VYa2Y3RytZUnlObkNZbDQ3K1Rq?= =?utf-8?B?aHQ1a2pPTjQrb3lrZ3hTWkMrL29naEZOVlBhMWp6Ym9hUjBZREU5ZFo3VGht?= =?utf-8?B?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-Exchange-CrossTenant-Network-Message-Id: efea11cd-c1d9-4f58-a025-08db648cfe47 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2023 23:48:12.9695 (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: qQb76J9xQdkx59WQaKefNuRKqSnfdqq1+Z5AutLabZO92e0aFWGPfLm7kp0eN8MrrpP+OPWigTHeoi0NzEIEeQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8460 X-Spam-Status: No, score=-1.4 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 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 6/3/23 01:27, David Hildenbrand wrote: > On 03.06.23 00:20, John Hubbard wrote: >> On 6/2/23 03:23, David Hildenbrand wrote: >> ... >>> Unfortunately, that seems to be the ugly way to handle this because >>> including the in-tree headers seems to not work and I yet haven't >>> figured out why (there were some changes back and forth so I lost track). >> >> Yes, ugly, and based on Muhammad's response, I plan on dropping this patch >> entirely, in fact. > > Ah, finally I know why it sometimes worked and sometimes didn't ... yes, > let's document that somehow. > > Maybe we can even warn from the Makefile when the in-tree headers are > not installed yet? > Yes. And in fact, after some fooling around getting reacquainted with selftest Makefiles, it turns out that fussy part was setting up to detect the missing header files. And that seems to be working reliably now. So from there, it's just as easy to automatically build any missing header files and continue as it is to warn about it. I'll post a patch. thanks, -- John Hubbard NVIDIA