From patchwork Tue Sep 3 03:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ba Jing X-Patchwork-Id: 13809315 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 26548CF9C6F for ; Mon, 23 Sep 2024 06:58:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F0FA6B007B; Mon, 23 Sep 2024 02:58:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 778C26B0083; Mon, 23 Sep 2024 02:58:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 619C16B0085; Mon, 23 Sep 2024 02:58:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 422A66B007B for ; Mon, 23 Sep 2024 02:58:44 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id AD200161185 for ; Mon, 23 Sep 2024 06:58:43 +0000 (UTC) X-FDA: 82595100126.12.A78952F Received: from cmccmta2.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by imf17.hostedemail.com (Postfix) with ESMTP id 3C7C740002 for ; Mon, 23 Sep 2024 06:58:39 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf17.hostedemail.com: domain of bajing@cmss.chinamobile.com designates 111.22.67.139 as permitted sender) smtp.mailfrom=bajing@cmss.chinamobile.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727074687; a=rsa-sha256; cv=none; b=FhQh7h3VtG4Sfpj7tCwjQ+qNolRZtTXc9u5ouZrYWT1T6lyENT38RkiVnQfliiJWF3Dpmw zTjP+/+iKe84EigTJ+KjILkxOkJwA6ITQiBJ/5L0P7VsvnPeAKR4C6q1+FoFrBP6cwElch Fi3V359z/e3Yce4gH50wHduHtVPhZGs= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf17.hostedemail.com: domain of bajing@cmss.chinamobile.com designates 111.22.67.139 as permitted sender) smtp.mailfrom=bajing@cmss.chinamobile.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727074687; 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-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=+nJ0Soajl93SPuNqzIW2JYhcV0bUjQe3/TfrVH8IwM0=; b=opkfpzfeAVMQ9bH87sW5EDuxso1Se/KUm2FNc/jKq3HuE63Lq/zRlGNf6Cj37Sfxp68wwo T/BTq+O14LYha98oRb17I1tQ4azALNpr6Hk5hXCCfQdVx2Ll/sE2a86oUglOGBTgjs5N0v kkLgseDpDUgWxbanYWCnsCPiHMeVMp8= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee566f1119df9d-77fa1; Mon, 23 Sep 2024 14:58:37 +0800 (CST) X-RM-TRANSID: 2ee566f1119df9d-77fa1 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.108.79.101]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee566f1118bd55-540c9; Mon, 23 Sep 2024 14:58:37 +0800 (CST) X-RM-TRANSID: 2ee566f1118bd55-540c9 From: Ba Jing To: sj@kernel.org Cc: shuah@kernel.org, damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Ba Jing Subject: [PATCH] damon: access_memory_even: remove unused variables Date: Tue, 3 Sep 2024 11:43:00 +0800 Message-Id: <20240903034300.10443-1-bajing@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 3C7C740002 X-Rspamd-Server: rspam01 X-Stat-Signature: ddhya3ouj6as9igcipc7n7ytm99e6oey X-HE-Tag: 1727074719-562962 X-HE-Meta: U2FsdGVkX19F+PGq3uiCsLH2nh0HXj4HgqWadAbn9kQmETn+qjKIz4BU5vl8SyCL69TUlKpkkE54noqzl/QsmHR0lrnN3tTvKyYUbGD9XdTiN/T+0foXKP+cHdHAaWYCwwVA9Bpi/6CQIAq+X3Djys8LspI20qHDUMy5YC7994n3GyN6A5yXeoH8RJN04lnm7uDyIWUjcVrjPSKA7N4IWSQoc7L3Jm/t2Ply9BAqBmjQgkm2xCTvBofonViOlMBzmlOrjZbvMrml9SwplVqlAqOXZHoyEeIG27xCI0s48XLuhiPSf4jvhJdteczsN1WsLYgoxDiwAXHHTtu0kQIjYVCgVID8FfobFcloiSRDZv7V5wLifFma6jL4eD1mQoL+F4y1B8o0vfxuauVZg4E2twHOFOoMOGYRQtWeNjBCJtzDiBb0LQVKcDSCfjZHgqfBOoFh9WKJS3DH/N/ow2/bCo1XYK7tMA86FBSDQCaVAHTQ9TdnzgFTQdgSPskUHdLcwOvXi5J10YFGcmyLMdZs0yr0h1hx/ZBzDJrRrbhEZnHtJSI8kY45GaLZiWU+psuYEUAx/5YryiUCOzUsXL1iOYURZZ9wj+u3+n9DK4rOFnMO/BR4DS8lDLnHQLsIIsjov00DvjKna9a0jpbVuIXPGt6VkUzsPBZEt4GJ5l3PJShZgA55uie8mC1FZpk1FfqYlaV10SOFCHv3PJqXmvY51PJ+p/0lT+eEM+WtZCnohn5cnK+NY0Zn+K7nC5GPbs36aif+WzxrL1MsrejSJ8776978bIgDHQIe22L4ure4vfXBOFVmwfJXICLOY8UhPsH0hip2zq3u2KconfEacNtDkeAMnJKdzUZuBa6VkzF14qE8A/15PuDh5Jo8zFYT8ITyqjWe9bGhBVvH2YR7YxvvCPV3PlXeEKbRJ/sjvhZLmCbwBVKcxGnDBsedJJK4HjSfES7e8sQNPYTPwkd8XUG oZjMpjS9 wH7Mp3lfsFaOxHLVzIkImNIU0cZGuoIKIeOtClAMW7GXIV3M4YKMxIp2wiO41V74Vhuu2u6cD60LsucFj6+87UKuIbMtrdtwakDAn00Mu03wCS/zDw/Y7Zucn74r+dHy3VmI31ypLFsVfAgGfZlq2qFwmSw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.034641, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: These variables are never referenced in the code, just remove it. Signed-off-by: Ba Jing Reviewed-by: SeongJae Park Reviewed-by: Shuah Khan --- tools/testing/selftests/damon/access_memory_even.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/damon/access_memory_even.c b/tools/testing/selftests/damon/access_memory_even.c index 3be121487432..a9f4e9aaf3a9 100644 --- a/tools/testing/selftests/damon/access_memory_even.c +++ b/tools/testing/selftests/damon/access_memory_even.c @@ -14,10 +14,8 @@ int main(int argc, char *argv[]) { char **regions; - clock_t start_clock; int nr_regions; int sz_region; - int access_time_ms; int i; if (argc != 3) {