Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4099810pxk; Tue, 29 Sep 2020 14:29:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpj/oTl6TOG43nMXHjJOt0fwWWCngYYkjg4frtbWKY/xt481/THEt1DbwdAu4VtIhHAL3l X-Received: by 2002:a17:906:b24e:: with SMTP id ce14mr5789323ejb.494.1601414950096; Tue, 29 Sep 2020 14:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601414950; cv=none; d=google.com; s=arc-20160816; b=FsBrDP6VMb+EhX1SsfTZCmm3sJUSJWSYj3S5EeA5gF1QUpghzX/RBcNJYJN7Pubzzq lcXEplOD5GBXJ69LYDMyWsZS5+t0s1p7OasU6eaTOaSgte+BZRRzfOEjOXlW6GOS60f7 R8Ay/Q8dCT4feU32tVZmiCUwPo9Dmoq8x3RKTfSHafeUUyQE9wZmzam/Swd1VxYosGlA eYhSqSUjmYr5K/Rf2Q8WoIA31tlupOn/xaD94dEcsNGkg1/dkSinDDX/tLtNBwC4Cxv5 ybgVrxbEZSp1tGaKGkNHp4Z3QxH3ZmaUN2jOnpsK/E8ShJpNyP+iZqPNSC4Z/ik7D8dF dC2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=Zni9lsR5e1NjfmaK4G4iADG4DW7oG777ffq2baIKbVA=; b=GPrWeXvUJAkH0pW1oX1gkN8FgeuBSb6WR2lKBQeCtzW8xpWNvS1mTeNcdWAbQdQzoD hMSF57TOQPrBwkDiBwH3sSB2vx9TYK2b7+8l4VhRKZIkM8WT8XBvbYLkxldTjV6PLQ1x xKWd+85sBmATGc11ES+3ROcFAuABrId9Lg207QdeWI0jaOam1bmekYKX5Kjhfh2uDJGr YVaXkLXo+Z2uvwGbR3rdhOI6i//hNbdwuxaIWV/ACIeGc5YWir3rhqdUCE0dyBSZD7kn 8Xd8UIXz2TPfjxBWqucFbawVQ86oZDCyod/DXHNTxcR+Jw4etG1fsb2vxdOtgxRocmkS PPhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=MVLqPfh2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si1295423ejb.354.2020.09.29.14.28.47; Tue, 29 Sep 2020 14:29:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=MVLqPfh2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729540AbgI2V1v (ORCPT + 99 others); Tue, 29 Sep 2020 17:27:51 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:9200 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729453AbgI2V1u (ORCPT ); Tue, 29 Sep 2020 17:27:50 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 29 Sep 2020 14:27:38 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 29 Sep 2020 21:27:50 +0000 Received: from sandstorm.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Tue, 29 Sep 2020 21:27:50 +0000 From: John Hubbard To: Andrew Morton CC: Jonathan Corbet , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Ralph Campbell , Shuah Khan , LKML , , , , , John Hubbard Subject: [PATCH v2 4/8] selftests/vm: minor cleanup: Makefile and gup_test.c Date: Tue, 29 Sep 2020 14:27:43 -0700 Message-ID: <20200929212747.251804-5-jhubbard@nvidia.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929212747.251804-1-jhubbard@nvidia.com> References: <20200929212747.251804-1-jhubbard@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: quoted-printable Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601414858; bh=Zni9lsR5e1NjfmaK4G4iADG4DW7oG777ffq2baIKbVA=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=MVLqPfh2hox+vkU1QYnvn6Hc8neNua+34WXDYESz+8Qk72x3TO4mNLySc7KlOgQIg 0dTOIC6v9EyywdhlAs9w7K95g/Kgz6nC07cp6oYlvmHBYSwR1Vud2HHWq0Va+L8Gdo dPrK7A3wCcNSVt5Z8JbqzVKhNwMKRhW1IU7sKi9Vu7jp7Rd9g1uWtZ3SW+yvHB+IR6 mFppCRaDP8Tcy6cleNK7FHo52YJBjeGrgmsT92MO++0SbuMsWOuoTYaMZGKXeKrOKz JvKDdnV92YtN68Gv+IX9G1RTl5YerB39KFobY3sTbo7euYVwn9KeQgZci1htWqjDvA KID6qSeUfznew== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A few cleanups that don't deserve separate patches, but that also should not clutter up other functional changes: 1. Remove an unnecessary #include 2. Restore the sorted order of TEST_GEN_FILES. 3. Add -lpthread to the common LDLIBS, as it is harmless and several tests use it. This gets rid of one special rule already. Signed-off-by: John Hubbard --- tools/testing/selftests/vm/Makefile | 10 ++++------ tools/testing/selftests/vm/gup_test.c | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/= vm/Makefile index 5a3bd0c497b6..2579242386ac 100644 --- a/tools/testing/selftests/vm/Makefile +++ b/tools/testing/selftests/vm/Makefile @@ -21,14 +21,15 @@ MACHINE ?=3D $(shell echo $(uname_M) | sed -e 's/aarch6= 4.*/arm64/') MAKEFLAGS +=3D --no-builtin-rules =20 CFLAGS =3D -Wall -I ../../../../usr/include $(EXTRA_CFLAGS) -LDLIBS =3D -lrt +LDLIBS =3D -lrt -lpthread TEST_GEN_FILES =3D compaction_test TEST_GEN_FILES +=3D gup_test TEST_GEN_FILES +=3D hmm-tests TEST_GEN_FILES +=3D hugepage-mmap TEST_GEN_FILES +=3D hugepage-shm -TEST_GEN_FILES +=3D map_hugetlb +TEST_GEN_FILES +=3D khugepaged TEST_GEN_FILES +=3D map_fixed_noreplace +TEST_GEN_FILES +=3D map_hugetlb TEST_GEN_FILES +=3D map_populate TEST_GEN_FILES +=3D mlock-random-test TEST_GEN_FILES +=3D mlock2-tests @@ -37,7 +38,6 @@ TEST_GEN_FILES +=3D on-fault-limit TEST_GEN_FILES +=3D thuge-gen TEST_GEN_FILES +=3D transhuge-stress TEST_GEN_FILES +=3D userfaultfd -TEST_GEN_FILES +=3D khugepaged =20 ifeq ($(ARCH),x86_64) CAN_BUILD_I386 :=3D $(shell ./../x86/check_cc.sh $(CC) ../x86/trivial_32bi= t_program.c -m32) @@ -76,7 +76,7 @@ TEST_FILES :=3D test_vmalloc.sh KSFT_KHDR_INSTALL :=3D 1 include ../lib.mk =20 -$(OUTPUT)/hmm-tests: LDLIBS +=3D -lhugetlbfs -lpthread +$(OUTPUT)/hmm-tests: LDLIBS +=3D -lhugetlbfs =20 ifeq ($(ARCH),x86_64) BINARIES_32 :=3D $(patsubst %,$(OUTPUT)/%,$(BINARIES_32)) @@ -127,8 +127,6 @@ warn_32bit_failure: endif endif =20 -$(OUTPUT)/userfaultfd: LDLIBS +=3D -lpthread - $(OUTPUT)/mlock-random-test: LDLIBS +=3D -lcap =20 $(OUTPUT)/gup_test: ../../../../mm/gup_test.h diff --git a/tools/testing/selftests/vm/gup_test.c b/tools/testing/selftest= s/vm/gup_test.c index 70db259582c3..4e9f5d0ed0fc 100644 --- a/tools/testing/selftests/vm/gup_test.c +++ b/tools/testing/selftests/vm/gup_test.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include "../../../../mm/gup_test.h" --=20 2.28.0