Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp68969rwb; Fri, 19 Aug 2022 17:07:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7yFNuhVMxP83jbDB9xRF4kC+GS3mKNkU5jtdqYZZnr8vNIDXBl9j3baPSIGBcpvetGNSpr X-Received: by 2002:a17:906:53ca:b0:73a:7443:7c42 with SMTP id p10-20020a17090653ca00b0073a74437c42mr6335532ejo.761.1660954068757; Fri, 19 Aug 2022 17:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660954068; cv=none; d=google.com; s=arc-20160816; b=CXH0+U3bXJGVwqDw9QX9tgaNYAiOy7Haci/QNe4C6ZJgYEsp1nscZ/7ZjuUQUCDYya zKgmfBL0MA6vRpgM90WOKWR3AabaxLJi6lI5SjuxjiNlDIv6ElMvjbVVknn4LBRzF9TO Yc9jThIOyOM7ibxWKpHE+zKUoCU5jjpeespluTfLhlRlwcJjZGFQCneLwrWv4DEeKxpd FlNzySqkZSdIFLPoEOemzL6laUCkHu3V73i+q6ZS+pMqS37hWx7V0gwDqphnqgf4s/R4 iHol6uvEQtONpjqfNXoLP/+2O5bHW4cq+SIkla37O3wQMQmrOG4iE8GSy7ujVGX4EGLe QQPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=rDwyn1S5gq2Gin6BY6HLPs0LNmV0efWzRqc/7asC50s=; b=Cqz9TbbyTz5bpeNRu8lMfBuUHSYGOAZ0srTHbvIW7zeHoUFQKE/PtSxTLBzmBtmVKU OXxat6kj2yro0p+CqqKK4cdQdTGmxOLfCEHpVGY4AOIGVZNQauSxGuC+CChwGXVWH3Kw lxfMuTDA1nfm9xMgQzUsdLya7lF7w7NRm7nXy+NVwss7fNKmQG3LSpm0zcRi/VFQoahy Wcurbn0aZT6U1CjfrnXpiWUzkxB2MMeNgj8Q9u4HodKqAU7f9p4vaz4ldtHrsa9oDySW 5saEprVPz7bcf+7iR5U8403LevnL7EIJ8NgBqKjYAOnvTKDcax1pV020QS8ppCLK1uJq UpGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=Aqx53Fzj; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020a05640234d300b004460bae510csi4556056edc.332.2022.08.19.17.07.21; Fri, 19 Aug 2022 17:07:48 -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=@linuxfoundation.org header.s=google header.b=Aqx53Fzj; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244217AbiHSX6g (ORCPT + 99 others); Fri, 19 Aug 2022 19:58:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243995AbiHSX6e (ORCPT ); Fri, 19 Aug 2022 19:58:34 -0400 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB4742CCA0 for ; Fri, 19 Aug 2022 16:58:31 -0700 (PDT) Received: by mail-io1-xd30.google.com with SMTP id c4so3604351iof.3 for ; Fri, 19 Aug 2022 16:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject:from:to:cc; bh=rDwyn1S5gq2Gin6BY6HLPs0LNmV0efWzRqc/7asC50s=; b=Aqx53FzjxjyJpnn5MqTwd5ZZ4M51eJjvQiQdEQENCELxfdHkekZbjwYZKskVRyxaKy 9lu/9m+TxGhmFLB1ej7ff71j24I1hlX4ms5IuyGy4rHDfkiPxYnUZZ1OIsd4zep+3pxg vGEFtzE/UCGpGVkGsXKI5OIDQLaKgeIjNzI2U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject :x-gm-message-state:from:to:cc; bh=rDwyn1S5gq2Gin6BY6HLPs0LNmV0efWzRqc/7asC50s=; b=gDKi/e8sngEMwDHH/oBAQjpoUMMznCMQFpK1jBpeqgsszl6S1n4JIicW9YUEBTx84s n2GP1NwdHhFd5E3qhJzpckcoTEWswb68dw6P4WWL/tmkUGCJ4a0cFOPJT6+Rj+Gok9gh 59VXCEYUoIJPIYNUfI4taFx2kx7u4YRMYvxYchUIV9cyyTw0T37UdIAE4V1Cn85eDKXg JK7lNkYtca+PHHO8OyIDoRBCCUrjpHqYvqMLsA8ON2vBaO1FNFkTP87Vl0MbLvKPFr8K pjWaKpisaMcli5c/mY1YlSlT/ZyQWtx7ZK8PHSO6Z/CGqBsfOLrgoBQHDshw2mcQcqJR UKMQ== X-Gm-Message-State: ACgBeo1QfQdXlkFdclEI0fkRnWsuSj9y9uFKGXacfOCH4fTaeRX5D0xO Cu5edL8JWfciIYUtEkgTmsFSFg== X-Received: by 2002:a05:6638:3a1a:b0:343:4ae3:9c0f with SMTP id cn26-20020a0566383a1a00b003434ae39c0fmr4774433jab.271.1660953511132; Fri, 19 Aug 2022 16:58:31 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id f3-20020a056638112300b003484f2ea3edsm1546644jar.153.2022.08.19.16.58.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Aug 2022 16:58:30 -0700 (PDT) Subject: Re: [PATCH v2 1/2] selftests/vm: fix inability to build any vm tests To: Axel Rasmussen , Andrew Morton , Guillaume Tucker , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , John Hubbard , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Shuah Khan References: <20220819191929.480108-1-axelrasmussen@google.com> From: Shuah Khan Message-ID: <23f51904-c6b9-2052-e90c-675a3077cad1@linuxfoundation.org> Date: Fri, 19 Aug 2022 17:58:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220819191929.480108-1-axelrasmussen@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 8/19/22 1:19 PM, Axel Rasmussen wrote: > When we stopped using KSFT_KHDR_INSTALL, a side effect is we also > changed the value of `top_srcdir`. This can be seen by looking at the > code removed by commit 49de12ba06ef > ("selftests: drop KSFT_KHDR_INSTALL make target"). > > (Note though that this commit didn't break this, technically the one > before it did since that's the one that stopped KSFT_KHDR_INSTALL from > being used, even though the code was still there.) > > Previously lib.mk reconfigured `top_srcdir` when KSFT_KHDR_INSTALL was > being used. Now, that's no longer the case. > > As a result, the path to gup_test.h in vm/Makefile was wrong, and > since it's a dependency of all of the vm binaries none of them could > be built. Instead, we'd get an "error" like: > > make[1]: *** No rule to make target > '/[...]/tools/testing/selftests/vm/compaction_test', needed by > 'all'. Stop. > > So, modify lib.mk so it once again sets top_srcdir to the root of the > kernel tree. > > Fixes: f2745dc0ba3d ("selftests: stop using KSFT_KHDR_INSTALL") > Signed-off-by: Axel Rasmussen > --- > tools/testing/selftests/lib.mk | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk > index 947fc72413e9..d44c72b3abe3 100644 > --- a/tools/testing/selftests/lib.mk > +++ b/tools/testing/selftests/lib.mk > @@ -40,6 +40,7 @@ ifeq (0,$(MAKELEVEL)) > endif > endif > selfdir = $(realpath $(dir $(filter %/lib.mk,$(MAKEFILE_LIST)))) > +top_srcdir = $(selfdir)/../../.. > > # The following are built by lib.mk common compile rules. > # TEST_CUSTOM_PROGS should be used by tests that require > Applied to linux-kselftest fixes for the next rc. thanks, -- Shuah