From patchwork Thu Mar 30 16:07:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 77288 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1249783vqo; Thu, 30 Mar 2023 09:21:38 -0700 (PDT) X-Google-Smtp-Source: AKy350bbeXsg7nFWNfiAuwS3AGHcBDS+4WiUG/63O9duTlWxWaVWNew4ZIiC2aAivlO1ft2g/l2Z X-Received: by 2002:a17:90b:1811:b0:237:b64c:6bb3 with SMTP id lw17-20020a17090b181100b00237b64c6bb3mr26968669pjb.11.1680193298075; Thu, 30 Mar 2023 09:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680193298; cv=none; d=google.com; s=arc-20160816; b=B9byPlQt9jxmpTnSiMabOUUr2mb5vCM5gMaZdI+urVd5hALX7/jeNgyGc6rmDcMoaw 7B3Vu/NOXpEueKSrx7xSLYTu5r+2L4CWs3Tm7722JiOsnMFs8OZvUriQfhckdOXlKEpD q0WMrHXu10+BZXtz/3sR5JZmjw1VFKCmaf4U48hO9E+jscB92aLzS+nnnR4w0TLh9Upr ZbrCvFRpv88XiVuh6Xcr1UbEb6cuwnZCDyfwJOTjeDUilEdBn/pH8jq73Ku88e2klist dOfuJ3sZ50u26xQ2QDh6+jdl4/5Ac84Jw9KJK4eoCfJsceTUsRbQEYCu5L9S65rxmjCS vLRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/DyAZC+/gpTxCJoW2F/j7VlnCZ3k9Ngitz86Xlm4uL8=; b=meTq945cdLAZxhRz8ocgMzDOxuI6r82+wW4uCKks0Z+ZZeufYXHAhd/t2KZ2FoSI0M KZf2Q32iSgGdlNxKbAU+wJ85Oq8MSmlqcXeOBUT82/0ncQ3dF1jR5GWh2TuSBWr3vcoU aoeijHaIYeDHv5ogbQKcH9f641BZJOM7oCCy+vc+7Zha4fsOf7+LQmPYTafM/GJVeoRn UyaKe+n5rGxsTUUC8RFd/eRY3TPX18gTOrsS3Jlfpyuiuf8eewFhuxgegw7A1ks808lA TGyOCX7YLGoHSQK6CF495Q0BM4mLxtdcckiUcxgsLMxjA5T3Ve1zP4ui1yVArBjncq6X Rxhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ImGjAq/v"; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id na14-20020a17090b4c0e00b00230c06399e8si4624363pjb.89.2023.03.30.09.21.24; Thu, 30 Mar 2023 09:21:38 -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=@redhat.com header.s=mimecast20190719 header.b="ImGjAq/v"; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231379AbjC3QIF (ORCPT + 99 others); Thu, 30 Mar 2023 12:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231628AbjC3QH7 (ORCPT ); Thu, 30 Mar 2023 12:07:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920EC9750 for ; Thu, 30 Mar 2023 09:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680192432; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/DyAZC+/gpTxCJoW2F/j7VlnCZ3k9Ngitz86Xlm4uL8=; b=ImGjAq/vfgu9OJ6UsCoB5E9lsITQmAo2Uwh23JSIAtWsl6Qt1/uYA6SCcIw2P5qmo6MjMS t4RvxpeGOIiet0I/x7OVwUOzZ5y7YnvqVUrUxfzEAOx/sRrwgmyvR112fojmgLMbJ4jquT I48Bgh2Q5Z1/UDIcri2qlL9BRDzYvcM= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-340-9yfrOVvNODSqDwV4bD_0Qg-1; Thu, 30 Mar 2023 12:07:11 -0400 X-MC-Unique: 9yfrOVvNODSqDwV4bD_0Qg-1 Received: by mail-qv1-f69.google.com with SMTP id 6a1803df08f44-57c67ea348eso12976106d6.1 for ; Thu, 30 Mar 2023 09:07:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680192425; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/DyAZC+/gpTxCJoW2F/j7VlnCZ3k9Ngitz86Xlm4uL8=; b=jcILiYd9VU7MqIOCqpGoiFp4vH3t0QOenrAIQQfFVpnzHVxJe19EwI2+vO4bsZUkJC hFPKXWMVCX7pkRr+H0AHTK37OLfchBjuRMZWzc0pa2sV3eKUq484qcyleA1wxSddV//4 JTxXpypnJz1kR1Tn7pY7hvMCI7ochxv0Qb3ypsgDUAxgkbY9uk4yPMWC7jR/ntZmiW49 fpIwxvT1jWm+wiPhkqKasKY5dZkDVH1tmO5V1VKt9/3cLPHNbJcRCCIbGZiF5IR7KBXG UJFSHMTHQJNkuKFV5UsgGgZYK24q113GMRCCrie3AC+LzLkWrPyfHF6Wc6CbOxfiIg9+ Kd8Q== X-Gm-Message-State: AAQBX9fgF0/0JVUAtVW2b9DC2bgGRGDJdwUX4z0FTa+umM/XmeCF3xdY vCWv8oI+tguDIUpNmvzaupW3GcppW9hEUTw0IgUJswVW2HZOl+XY9QRufTW+kqZu3PgknX0pWVJ Wy7URwAZM5DR91vVCGQT97mJ4 X-Received: by 2002:a05:6214:528f:b0:5a5:e941:f33d with SMTP id kj15-20020a056214528f00b005a5e941f33dmr3644486qvb.3.1680192425765; Thu, 30 Mar 2023 09:07:05 -0700 (PDT) X-Received: by 2002:a05:6214:528f:b0:5a5:e941:f33d with SMTP id kj15-20020a056214528f00b005a5e941f33dmr3644457qvb.3.1680192425523; Thu, 30 Mar 2023 09:07:05 -0700 (PDT) Received: from x1n.redhat.com (bras-base-aurron9127w-grc-40-70-52-229-124.dsl.bell.ca. [70.52.229.124]) by smtp.gmail.com with ESMTPSA id b17-20020ad45191000000b005dd8b93457fsm5467877qvp.23.2023.03.30.09.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 09:07:02 -0700 (PDT) From: Peter Xu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: David Hildenbrand , Andrew Morton , Andrea Arcangeli , peterx@redhat.com, Axel Rasmussen , Mike Kravetz , Leonardo Bras Soares Passos , Mike Rapoport , Nadav Amit Subject: [PATCH 06/29] selftests/mm: Link vm_util.c always Date: Thu, 30 Mar 2023 12:07:00 -0400 Message-Id: <20230330160700.3106955-1-peterx@redhat.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230330155707.3106228-1-peterx@redhat.com> References: <20230330155707.3106228-1-peterx@redhat.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761810367668220150?= X-GMAIL-MSGID: =?utf-8?q?1761810367668220150?= We do have plenty of files that want to link against vm_util.c. Just make it simple by linking it always. Signed-off-by: Peter Xu Reviewed-by: David Hildenbrand Reviewed-by: Mike Rapoport (IBM) --- tools/testing/selftests/mm/Makefile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 47516a78d447..b35f3eafde3c 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -105,17 +105,7 @@ TEST_FILES += va_128TBswitch.sh include ../lib.mk -$(OUTPUT)/cow: vm_util.c -$(OUTPUT)/khugepaged: vm_util.c -$(OUTPUT)/ksm_functional_tests: vm_util.c -$(OUTPUT)/madv_populate: vm_util.c -$(OUTPUT)/soft-dirty: vm_util.c -$(OUTPUT)/split_huge_page_test: vm_util.c -$(OUTPUT)/userfaultfd: vm_util.c -$(OUTPUT)/gup_test: vm_util.c -$(OUTPUT)/mrelease_test: vm_util.c -$(OUTPUT)/transhuge-stress: vm_util.c -$(OUTPUT)/ksm_tests: vm_util.c +$(TEST_GEN_PROGS): vm_util.c ifeq ($(MACHINE),x86_64) BINARIES_32 := $(patsubst %,$(OUTPUT)/%,$(BINARIES_32))