From patchwork Mon Apr 17 19:53:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Xu X-Patchwork-Id: 13214492 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 342DEC77B76 for ; Mon, 17 Apr 2023 19:53:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BB7E76B0087; Mon, 17 Apr 2023 15:53:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B6701900002; Mon, 17 Apr 2023 15:53:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A12E28E0003; Mon, 17 Apr 2023 15:53:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 88E326B0085 for ; Mon, 17 Apr 2023 15:53:38 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4FC49ABF08 for ; Mon, 17 Apr 2023 19:53:38 +0000 (UTC) X-FDA: 80691932916.15.FC0DA7A Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf08.hostedemail.com (Postfix) with ESMTP id 3DF99160002 for ; Mon, 17 Apr 2023 19:53:36 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=XyNUCSLx; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf08.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1681761216; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=nL6ukD3uQsP0j8aiX/3IiND2lFTW26LLUmGTHQFycOk=; b=iwUA6oYDYKjh2GfisPys8ta8ommneERhy6ALKcyQ82Gtus1DEWTqptgnMc9PPrTmjQAq/r Er9MAarPg/2y0SzXGB0p9MJgOI8tiQlxTpa1PoeAX0sV5LLQWrZmDCyrdaOfJRq6unGP+b i0G0NsK1dWXPCVgNuBB+/B3Eosyg0W0= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=XyNUCSLx; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf08.hostedemail.com: domain of peterx@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=peterx@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1681761216; a=rsa-sha256; cv=none; b=DKzm3yA/37CWkNgpC0yNyaL+aszVhKp98u6jcbSpUDvkM4BpB+Ux5W2P3X7ZDATSsBSYW4 qkpmEovlQcf9DXxARmJKDyvWg6fU3hMqoifl0lGva26HczCcl3jrC6E7GQQxaQi6I0Lpxy Gu25AQH/y49TLyTm3r5r3PzVDjGjGOk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681761215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nL6ukD3uQsP0j8aiX/3IiND2lFTW26LLUmGTHQFycOk=; b=XyNUCSLxrpkDsuAFHwj7F042gQjeaTQZRASPB4/AbdNgppi2Iso2L9KoOq6gKg6Wr50A6U W5CtnjAvhZCXOKdaH3j3uBUe0yX62jq7BpPeDoyn4J0hO1MpVzsQ/SLEbabfSp8eYNlsxZ qyCjUZYO/OQF7QkLE9u/WkV2TXx5PRY= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-98-LiP7VFIsPaW39EmLtnUdEw-1; Mon, 17 Apr 2023 15:53:34 -0400 X-MC-Unique: LiP7VFIsPaW39EmLtnUdEw-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-74accc750c1so34639385a.0 for ; Mon, 17 Apr 2023 12:53:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681761211; x=1684353211; 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=nL6ukD3uQsP0j8aiX/3IiND2lFTW26LLUmGTHQFycOk=; b=B1Xq/aRrZfBLrvuiXDHH5QFc8v/lr869HaXX1CO8hhVOCp2BfDVwtIDlhDrr8kAIif 8IFQ+xde1R/DPUoUaUqJI6hJSem8v5uYFsPqfaoLbNCZUL7Xy5L75/ROd58bbpfBa9Oc gxAb7o/O6sdDhBnH1j1rlls5fudE+Y46m3kxuT6BS+9mm3sEkQholjzibZMJfbfiPxWw rNH5nQHkgOM3I2QhMQzj//UqisF4Nc++giYWgEWfmwAy+p7lor5tbL3qwgYuor3WDjCf kYPuHmhU/hTi7SKx40IkEsnRgGLRQrv9RNmntFQGH+pEFxajYw3JANJCTI7f0BDicLg4 DXZw== X-Gm-Message-State: AAQBX9chtLM0ScNJekF7r+/RMmCj6cbVhgSS8m35GXIC8kKWmu2D+Dxy 6oC5Ux30RF33q2LNc6Dp74iZmcqjPK3dQ4OGZTQX0QiNnumZ0kFGWYqSyXY9wezmpoL+z/dgdxZ atG/3N84KbUmVF4/aQYs= X-Received: by 2002:a05:6214:5095:b0:5ef:55d8:7164 with SMTP id kk21-20020a056214509500b005ef55d87164mr16879399qvb.5.1681761211271; Mon, 17 Apr 2023 12:53:31 -0700 (PDT) X-Google-Smtp-Source: AKy350ZYsrWygXMFCyj7XgLRO6y6vn18wQ8faUnma5Zhq/ehDr1HRYT9sovIA6wDuciwvG7UbAnfUQ== X-Received: by 2002:a05:6214:5095:b0:5ef:55d8:7164 with SMTP id kk21-20020a056214509500b005ef55d87164mr16879362qvb.5.1681761210964; Mon, 17 Apr 2023 12:53:30 -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 r17-20020ac87ef1000000b003edfb5d7637sm1731278qtc.73.2023.04.17.12.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 12:53:29 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Mike Kravetz , Andrea Arcangeli , =?utf-8?q?Mika_Penttil=C3=A4?= , Andrew Morton , peterx@redhat.com, Axel Rasmussen , Nadav Amit , David Hildenbrand Subject: [PATCH v2 5/6] selftests/mm: Rename COW_EXTRA_LIBS to IOURING_EXTRA_LIBS Date: Mon, 17 Apr 2023 15:53:16 -0400 Message-Id: <20230417195317.898696-6-peterx@redhat.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230417195317.898696-1-peterx@redhat.com> References: <20230417195317.898696-1-peterx@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 3DF99160002 X-Stat-Signature: dd5en3xiqe6xwu49ps9fydy6wraai6h5 X-HE-Tag: 1681761216-574952 X-HE-Meta: U2FsdGVkX18N/am5zGuEf9D7rgFMJt7KffKKwRqpj3jgU1z9BSLAVDQJdukzI3tmAGMFFWzoJOvU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jAIwm5BL/Hd89G8cW1VufPmK2DnMXPXzwsAOdx0CoGhED9jqHaK3HV3eT6Mq+MAGJotQl35BaNCBqJF7ChM5QbE52lXow61yhcxB3YFtLAczw0T29BwoSYAnvcElrBtEW1gMPPmfWWpjhWv/BbybclK7FBax93LMfsrtwlN7ELq2AVqpyfP6tEe++4niqMt0tlQhknW53CqBW7Fwy+YMg1rVDlIxL00+gBawZaNuIPyB0FyIrZSlXMeeBE+finLakuisPpp18x38gm3Lo90cWyj4kfszYE6LVnKYe/zI6qZhatODxMnfu6EqX6jG9rPUEoPEvKGTBFo5rF1p1us0N6QqlswOI9a9X5SLlpOi+5iGE= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The macro and facility can be reused in other tests too. Make it general. Reviewed-by: David Hildenbrand Signed-off-by: Peter Xu --- tools/testing/selftests/mm/Makefile | 8 ++++---- tools/testing/selftests/mm/check_config.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/mm/Makefile b/tools/testing/selftests/mm/Makefile index 63c03a6414fc..0ee00769b53f 100644 --- a/tools/testing/selftests/mm/Makefile +++ b/tools/testing/selftests/mm/Makefile @@ -161,8 +161,8 @@ warn_32bit_failure: endif endif -# cow_EXTRA_LIBS may get set in local_config.mk, or it may be left empty. -$(OUTPUT)/cow: LDLIBS += $(COW_EXTRA_LIBS) +# IOURING_EXTRA_LIBS may get set in local_config.mk, or it may be left empty. +$(OUTPUT)/cow: LDLIBS += $(IOURING_EXTRA_LIBS) $(OUTPUT)/mlock-random-test $(OUTPUT)/memfd_secret: LDLIBS += -lcap @@ -175,11 +175,11 @@ local_config.mk local_config.h: check_config.sh EXTRA_CLEAN += local_config.mk local_config.h -ifeq ($(COW_EXTRA_LIBS),) +ifeq ($(IOURING_EXTRA_LIBS),) all: warn_missing_liburing warn_missing_liburing: @echo ; \ - echo "Warning: missing liburing support. Some COW tests will be skipped." ; \ + echo "Warning: missing liburing support. Some tests will be skipped." ; \ echo endif diff --git a/tools/testing/selftests/mm/check_config.sh b/tools/testing/selftests/mm/check_config.sh index bcba3af0acea..3954f4746161 100644 --- a/tools/testing/selftests/mm/check_config.sh +++ b/tools/testing/selftests/mm/check_config.sh @@ -21,11 +21,11 @@ $CC -c $tmpfile_c -o $tmpfile_o >/dev/null 2>&1 if [ -f $tmpfile_o ]; then echo "#define LOCAL_CONFIG_HAVE_LIBURING 1" > $OUTPUT_H_FILE - echo "COW_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE + echo "IOURING_EXTRA_LIBS = -luring" > $OUTPUT_MKFILE else echo "// No liburing support found" > $OUTPUT_H_FILE echo "# No liburing support found, so:" > $OUTPUT_MKFILE - echo "COW_EXTRA_LIBS = " >> $OUTPUT_MKFILE + echo "IOURING_EXTRA_LIBS = " >> $OUTPUT_MKFILE fi rm ${tmpname}.*