From patchwork Tue Sep 24 02:14:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ba Jing X-Patchwork-Id: 13810042 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 9AA15CF9C5B for ; Tue, 24 Sep 2024 02:14:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D4BBA6B0085; Mon, 23 Sep 2024 22:14:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CFBF96B0088; Mon, 23 Sep 2024 22:14:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BC44F6B0089; Mon, 23 Sep 2024 22:14:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 9D7BE6B0085 for ; Mon, 23 Sep 2024 22:14:56 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 1622A16170A for ; Tue, 24 Sep 2024 02:14:56 +0000 (UTC) X-FDA: 82598013792.16.797F911 Received: from cmccmta2.chinamobile.com (cmccmta8.chinamobile.com [111.22.67.151]) by imf23.hostedemail.com (Postfix) with ESMTP id A4EA114000E for ; Tue, 24 Sep 2024 02:14:52 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf23.hostedemail.com: domain of bajing@cmss.chinamobile.com designates 111.22.67.151 as permitted sender) smtp.mailfrom=bajing@cmss.chinamobile.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727144059; a=rsa-sha256; cv=none; b=X3rdwKOacT4Dc/8/WaMn7SNPuN0uwp8xhUB9yn5cFXf7MPRbbyeOXVvAAGrAf9ArABmKg+ lE4qzcST/chlQZtjk8UG6RtgB5u96h5mS+AQGJk8R4vcf6Lrr60GpsFksKih+7Yj3Ip5Cf rINCBITKGMMt0ou2mFFOki6D+AeeBZA= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf23.hostedemail.com: domain of bajing@cmss.chinamobile.com designates 111.22.67.151 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=1727144059; 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=OOQDX/W7NpAVJJK1k5C4Tn3XEcWdBOrIwxVwp91AroQ=; b=2q3/y6aRNgn4QjMzYtW3v95C5x7pwLobQ4FFATgO2VPZ198unzzR5sleEQsx+kLvOKxvOp WySnoh+7dfpZw4eH0kbdbribLuOD+FiGZjW19J3RkR9RAXjfo5R984mblU0UKlu90DB0QV SoSnaJVpj77Suni6yyzovbml1j0gSzo= 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-app06-12006 (RichMail) with SMTP id 2ee666f22097ebe-4d781; Tue, 24 Sep 2024 10:14:49 +0800 (CST) X-RM-TRANSID: 2ee666f22097ebe-4d781 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 2ee566f2208a446-7c9a7; Tue, 24 Sep 2024 10:14:49 +0800 (CST) X-RM-TRANSID: 2ee566f2208a446-7c9a7 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 v2] selftests/damon/access_memory_even: remove unused variables Date: Tue, 24 Sep 2024 10:14:26 +0800 Message-Id: <20240924021426.1980-1-bajing@cmss.chinamobile.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: A4EA114000E X-Rspamd-Server: rspam01 X-Stat-Signature: umcds87jkja4txcprury31t86w9fp1nx X-HE-Tag: 1727144092-530669 X-HE-Meta: U2FsdGVkX18+LjKm0G3f3HX3Gfdb5o+2CJ51YZATr5MoGBN1mrtW/PYlRHFK+mhZiEt5t8Oh/ZKngnSpC0tX5yS39pL1S2NXCowBDNDyX/pRl3YzgYyKMz8rpRmhpe9juLewpgMiikkM1DOoRYfLFwniNt1ZfXDDNTGYxlf/HO6gE+roi4m4t9BzORLQP51fKktYaNnRoMH/xIQkGrshQhqUkKYTCQsvnQo1o+F8e9XYQCKQ9RfZjWD07ERrIRbQr+9LcFTvo2IB/wUkxMCCxUa4Cg5zNi62HYrly+20py2Zt8/Iw9uU/PDSh4hhIwXHN5sU2rOO9mAlAtOSWvRsdQNk/s0EPlbBuNITbcGY6/imZ9/KwYZ1UTSrjrxCk6A1OJQz7x0q1thr6LUMq6RWgh49j6dJbo3QWI7Wo3bIF1pkHAl09q4r2ZMafF3NRENRTawkQFkZE+Z4sfQlYi80qBiUDh8ad7aYilUJbesQvf1Mfh10xBgoQW5iXYLxwv8DeuM/pjYcnuTw5U9T8IO2v+cE9wDv57zjtknbheQyHS07h3WtH2GGHUp6JHJqZKc+LNIh12Ghm1Kcy1AL9rzsE6lxf3fSDaHAdLyQPpfOw2D4Ngbx9kADyTJmIHWMsDFvLluRuDl8pf5D+LHpsDL0k98jkyqjedonjzvv6DuEYgRtoqXa1T88V6kC6VZf0Vyfqso2IqL+LreYA69cLUaVQjjvT4/B90BWQeQp0Up8xpHRYiE/N3p5VAe6LnS6wyqXqOLeidjpcKyPKUvfmqID36k0Ru1wFBBIrayKgumvG3jQGmEvUNLVTiQ3ERNlw9Dc1vI3Ru/kh0vDr2QRoj/4hUo9w6yWeztIjx6uJzbYrDnc+46EySwdVfqFiRuUFWHdHa0QMKgq/giIseiWW6lRXqOCxVTVXq79ktbC/svRltpStlcLkgozLc+icCHQH8Onvn8aQbxG8aEccGnIBcn jYYErDfE af1pwJkMjzzhlTpmC3mWuPxou8GDxvTb3Igk4VTW62tytJr60t36j4FfovB6+Wp3skwEVkq8g5u0t2URdeJ/CNSVeNZwzgw0o/gEHZ+TDKxSe+fQ2wdfw6OeEG4H8FswxkmnF X-Bogosity: Ham, tests=bogofilter, spamicity=0.005209, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: By reading the code, I found these variables are never referenced in the code. Just remove them. Signed-off-by: Ba Jing Reviewed-by: SeongJae Park Reviewed-by: Dev Jain Reviewed-by: Shuah Khan --- Notes: v1: https://lore.kernel.org/all/20240903034300.10443-1-bajing@cmss.chinamobile.com/ v2: Modify the commit subject and commit log. 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) {