From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC11CC433E6 for ; Wed, 10 Feb 2021 21:35:11 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 80D6B64EDF for ; Wed, 10 Feb 2021 21:35:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80D6B64EDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 06DA66B0006; Wed, 10 Feb 2021 16:35:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 01F346B006C; Wed, 10 Feb 2021 16:35:10 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E76D86B006E; Wed, 10 Feb 2021 16:35:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0088.hostedemail.com [216.40.44.88]) by kanga.kvack.org (Postfix) with ESMTP id BE65C6B0006 for ; Wed, 10 Feb 2021 16:35:10 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 89DFC184AAA84 for ; Wed, 10 Feb 2021 21:35:10 +0000 (UTC) X-FDA: 77803663980.10.name60_5f16bf627613 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id 646681698E1 for ; Wed, 10 Feb 2021 21:35:10 +0000 (UTC) X-HE-Tag: name60_5f16bf627613 X-Filterd-Recvd-Size: 3208 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Wed, 10 Feb 2021 21:35:09 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 0AB0E64EDC; Wed, 10 Feb 2021 21:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612992909; bh=opaMJmbGUaCmc56PK+hOgvVk5SMSJfQb65oUNwKsMM0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sTvTPnwIPxrWl4CaHUE8ZcmUojSiIZ7yE3ZiJQLzgY60/1ek1Yb8Y1ouJHADutrns 2PK4vVslP4QVoSjcu2sJHnJW9n2Mf27yWMrO8MDLEJE+PNaoxjla+FW4f3fY965G/3 8o50CLL/m7gEX0TvZsF0JFwsfq98qS82bDu7VIDjl48n7LbfBxF/Mia5Wp3go8YHQ/ 9zLZUdzpjGD5FH16En87XVC+ySozUjZlgukugDIsJFUtfq3VBhzK+WtOdxjNoIb+tT Hn28QhlYfsLTQSHLjn48qu2kXokuTuOsg5X0gT8Jx+OFoI0EfPh1hKmwK8Ml3pbRav fLFzP83oZmc/g== From: Timur Tabi To: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , Vlastimil Babka , Andy Shevchenko , Matthew Wilcox , akpm@linux-foundation.org, Linus Torvalds , roman.fietze@magna.com, Kees Cook , John Ogness , akinobu.mita@gmail.com, glider@google.com, Andrey Konovalov , Marco Elver , Rasmus Villemoes , Pavel Machek , Tetsuo Handa , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH 1/3] [v3] lib: use KSTM_MODULE_GLOBALS macro in kselftest drivers Date: Wed, 10 Feb 2021 15:34:51 -0600 Message-Id: <20210210213453.1504219-2-timur@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210210213453.1504219-1-timur@kernel.org> References: <20210210213453.1504219-1-timur@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: Instead of defining the total/failed test counters manually, test drivers that are clients of kselftest should use the macro created for this purpose. Signed-off-by: Timur Tabi Reviewed-by: Petr Mladek --- lib/test_bitmap.c | 3 +-- lib/test_printf.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/test_bitmap.c b/lib/test_bitmap.c index 4425a1dd4ef1..0ea0e8258f14 100644 --- a/lib/test_bitmap.c +++ b/lib/test_bitmap.c @@ -16,8 +16,7 @@ =20 #include "../tools/testing/selftests/kselftest_module.h" =20 -static unsigned total_tests __initdata; -static unsigned failed_tests __initdata; +KSTM_MODULE_GLOBALS(); =20 static char pbl_buffer[PAGE_SIZE] __initdata; =20 diff --git a/lib/test_printf.c b/lib/test_printf.c index 7ac87f18a10f..ad2bcfa8caa1 100644 --- a/lib/test_printf.c +++ b/lib/test_printf.c @@ -30,8 +30,8 @@ #define PAD_SIZE 16 #define FILL_CHAR '$' =20 -static unsigned total_tests __initdata; -static unsigned failed_tests __initdata; +KSTM_MODULE_GLOBALS(); + static char *test_buffer __initdata; static char *alloced_buffer __initdata; =20 --=20 2.25.1