From patchwork Thu Jul 4 02:42:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Hubbard X-Patchwork-Id: 13723119 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2080.outbound.protection.outlook.com [40.107.93.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52E99C8CE; Thu, 4 Jul 2024 02:42:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720060929; cv=fail; b=SzHuMD3c2Y/y4GlQA1UPcqyrFQjeliZ0B1HtvgJEmD5NQ0caIpMd4hOWKDRCl9T1+4X2Mm4bZXnQjlXUWy6CZ18wf9RFOBgXtCcYysRjNWCFuegxW8dzThdIA8SqX67W82B/gTQn8waWraCjLCCLLwIeSxy1h4YMe2BQis1TOIs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720060929; c=relaxed/simple; bh=gSAnVR9xl3FM3P1C862bELMBiwcKFvcu0TBdmBklJ9E=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=YlFX8nqh04Jeg2i52wHy09aTmdfjZjVi3hsuGRWAt6hx2gPUMrhW1z4PR0kGLVS/jOPo1E6WjIL1FmDiUhA8507mw1zi6BvODFeWI+ZOnQh2AgF1nHzUMGbCCBlvJyhhnLJTaNg6zHqBXK9oQfQpep6/St71+jGxwU5t9QGA7xI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=tfrokzVY; arc=fail smtp.client-ip=40.107.93.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="tfrokzVY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FrnM0Ws0rH3zqxxmoyUmGpCqkgrqns8mO9nHY8s6aa+qWnTxeS8DMnThY58KIHCSkRNhuoqVRrwelteyqfd4C0pXqkgIXLj5JlmqXvO80KwT9vLmSPTtYQ888Pu9ZTzrpoVDKdAoi98YTWvKUe83cXsndRsW5BlhI8sGjsGLg94r1d7v4QpmqiOqXYLNZz/++qG7haeXMGrPl0V/oXT7wUaHR4IfjqqejLQKKLNp1OEyio5t6s2Gv5crIlPkip8NYJSfqPDA6pqUjQM1B8csIra7H5wLmeZwS28Yf7PVmiuznCdNmmtgt1UWrRuJB50+fuKWGOpiX/1rezwPysMkkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=e/gCnbt+DKW2xz1QEIoUwhHOn+OzpH1TZNFbAjs3CYg=; b=kb0mKJpzE06XqzBQuUSTS2m24cPlYIvsdDOagxEzQqVw5r3s6nFJWkFIhgFocZaSmLEMKmYjPKFLYXAHDsMVYoT5IycO7YwLga2w4HcWR5N17Othm4hyGfg4bQ/Y7jbWZxRJ0Zn/qQ6LtGIz/BsxegZqtGQQd9dn5Ub9lrt/tx/aJzuMZ4nx1OBpuq/3j7gDluZiC1aaegTxh4YLzUqFJgddbFtIbVeSVqjGoNM3iiMBSrMGH08+8pHx9pKfsMbuyfiCGYxjYFFqBhyoJss4JKc9bP3a5EITqB6ZEhNJ72+3PqXMrnqv9R5amNkzpDzmP+rqSaPC7MIARgJffDcguQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e/gCnbt+DKW2xz1QEIoUwhHOn+OzpH1TZNFbAjs3CYg=; b=tfrokzVYUcYZCOCLqFwexKHfBw0h8/DUprUh9YtgZwGWHZXQmbqNB89NFFIVQJXoe21QHPICeMO/kWPaIUmXRNlCglpadG2E5GPcLYg1hg2C35o7k4WGaCKGOTK05TxNBR5zI31EuwVRcTEcYWOpFLhXUyDmTflJdAk+27Znr8qiUN0XPeeAqb7Ph6tdi67zIBo8cVqp3f3P1Z60MmAb4VQuPsBSHfqwx0wzv90neEoBTX14lSO1pCRbNrFMS14P7L2tms7uLdXO/AdFtC/zNrtxwzkxt27YgHF1qqgz8OuUy5vE1IXLSKDDRUpu3dluo6fFChh/qM7xv/71MGOT4g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by LV3PR12MB9409.namprd12.prod.outlook.com (2603:10b6:408:21d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.33; Thu, 4 Jul 2024 02:42:05 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::2cf4:5198:354a:cd07%6]) with mapi id 15.20.7741.017; Thu, 4 Jul 2024 02:42:04 +0000 From: John Hubbard To: Shuah Khan Cc: John Stultz , Thomas Gleixner , Stephen Boyd , Anna-Maria Behnsen , Frederic Weisbecker , Valentin Obst , linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, John Hubbard Subject: [PATCH v3] selftests/timers: remove unused irqcount variable Date: Wed, 3 Jul 2024 19:42:02 -0700 Message-ID: <20240704024202.84726-1-jhubbard@nvidia.com> X-Mailer: git-send-email 2.45.2 X-NVConfidentiality: public X-ClientProxiedBy: BYAPR03CA0031.namprd03.prod.outlook.com (2603:10b6:a02:a8::44) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR12MB4130:EE_|LV3PR12MB9409:EE_ X-MS-Office365-Filtering-Correlation-Id: 4ecb0095-19c5-45b7-3901-08dc9bd2e3e3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: 4BXPI9X2/xNrEHAnYWRApYcCRrhhIJb0PBSG3jbJ/dWawAJizAkDHHSZx2Nz7WWKbugtJFSwfNoBhfUF0vpLTVtlfSBWCCyd6XOInT3xCZ5ouZY+hYJQo/EY9Mzg/ZecocMMFK1nUl9rnxNCffJBf1XoVqHiPeP8gLjpHeHQ48ae+ihfbX1xo91rHB3WYpEtF8TEYX8A77ICmAip7DlLdwj5HTWhyu5SX/6ZF6c+1cL3SuSVBK6rwsD3ZOi4c4eQas8wwA3n5EA5GXAH2oqNXSwCJvoiwATCVool+mkA3tiAkfl8iGVQAzQX2/7cfqbH8zat9PHRgN2TGzx19pB1AvWRERAl8nWxHDTrruAr97z9Fm6dyAZK01NURYmgCD2S+ug1M4iZ/Gtifaw8TLkrLLV7jhHX3YzdaFdwXv+eWnFP6BDO4uD1jnJZM/nHUECfhbew9LhioQZo4Dc6Ft9PptHt7XpjKGYQ3U9OH04iNAfXFkFd5+NGL20eDCV7B09xIxC7iznhdYhVh4vXJHsAc8a9XBBlpuRBuIgvjjCW/uFg4H3iAIfjHud03TUxmLITCzahV+zZv3mJwDSCblfAvQV2Og97nm5yDQ8L2CDmKhZdpjQ1GUsb/LE46L4Ez1CmSWFLOK01HMdsOH/KC+/Puj76qhsQLHF0D+yOP3C8sWvcb/Kj/NRDd43GeHzGRMoZrg0yDLy0Y2B7HEy6mynR+kkJLtPfS89H5D1Dt/GRQqQ2W7FmcK5aTaO6orQqXGr6451PqpgwWEvqzwj4fR3Zrh7g2zBU8NHPrqiZnuHrG2D0LYBrmW/bu2agqKUZR+PU4FzGVeJBExsGBT689KO3VI0+uTgjH9sbFXiWQH1TZ02CeFWH3ZsWpR5GTmmcmzBJDRtUcn/i7Q/jgS1qKWBMqRr++kknj4URY16lJCNkiFQkL9SF20jWvtGeW+kYc/qzuAs0cR/jBvtRjUSBg+0sTJFFvN08FrdGysOFl6PVGbBVleoHwT0O+2XmvW63v6iQ2Ii19LDWvVHlSKCER/3JPW82DeCI3LRtSzoQRRrEk6lrlaR0Y1IdCjTHTrxGQcTnGdhbsktfmoyGkgxDsfeyQ6UnvK43jno4b797QXZdyt6sG5NROXDpaLVw8eVjMOMRtcL+p64JPQizNGbJoaJWZJLENPNPjJZAt1yVzOb+5MajONidKiUqR9tysyLm7z8wQLJpHMALKXcb4jU51wLcuYLbDAIwBddmvqwe4kk5KaMabl3aPCnkm3qEBiVUXruJFX9jwDE8CayleTTC8ECsXvilAu1ErZh/s6ZRT+d9P61QzaalhyEoJRzE4obxgsjrQ9RpBNXb9waldgUzXl908g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-Message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7AOE+fYz8OSGFZQxlzSSRCig6Flt9UCEbYIxlu0/ehdr2Fou1BMtiLBqdCpiI02eYo7fWmLbCpTFy/REZDB6Vhu6q2dIKfBk6YeAmsLWvuB9VVS03edEcYs6n7jeU51BCZZE017BkAcxTMqN7uydAHm/ic/Qp5YVo1HRew+zkqtjewWrpyUIlnh51sBPgV44oUVoxGcWAdk66Nbieri3tg3u0Vaz8h7ZrsE1V1vqFmDxOdYEoD6s5+Ca8lyTA/4pkq2eBnC0dnPzAKug4/9OsNb9NgpUP/JnWvcqtspyXmpyO6tRfpfXT4JlEzOJrzk3F1Q6ZLHPDs1XLwA1QuYzQHpktzaZJ5RFXDZCfkipAmSVe+S/2tS7JwIlsjo+Z4yJx8ZjJRpxWMPipgETgU1AYLZehZH0Lc9obFENBKx04HbzI1+4dM+K9aaSyLa1YuOsDMz8zItHXcO7sSQKC0GoaZ11cEFB71h3C16EpPD0YtcddiPva80or4htLHmKzZAg1aIFylMamu+RD1NkKSkwrwaHEMOmVJL4B6xKd2Q38s X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4ecb0095-19c5-45b7-3901-08dc9bd2e3e3 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2024 02:42:04.9180 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: M9x53Yh5obotrNWpoNLGw37gimWztSDLGpgxNUfzyF24Iav7v9znznkg5LSt0ZUyAF4/eTCBA/WUqEIXVsYRtw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9409 When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns about an unused irqcount variable. clang is correct: the variable is incremented and then ignored. Fix this by deleting the irqcount variable. Signed-off-by: John Hubbard Acked-by: John Stultz Reviewed-by: Muhammad Usama Anjum --- Changes since v2: 1) Rebased onto Linux 6.10-rc6+ Changes since the first version: 1) Rebased onto Linux 6.10-rc1 thanks, John Hubbard tools/testing/selftests/timers/rtcpie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) base-commit: 8a9c6c40432e265600232b864f97d7c675e8be52 diff --git a/tools/testing/selftests/timers/rtcpie.c b/tools/testing/selftests/timers/rtcpie.c index 4ef2184f1558..7c07edd0d450 100644 --- a/tools/testing/selftests/timers/rtcpie.c +++ b/tools/testing/selftests/timers/rtcpie.c @@ -29,7 +29,7 @@ static const char default_rtc[] = "/dev/rtc0"; int main(int argc, char **argv) { - int i, fd, retval, irqcount = 0; + int i, fd, retval; unsigned long tmp, data, old_pie_rate; const char *rtc = default_rtc; struct timeval start, end, diff; @@ -120,7 +120,6 @@ int main(int argc, char **argv) fprintf(stderr, " %d",i); fflush(stderr); - irqcount++; } /* Disable periodic interrupts */