From patchwork Mon Feb 26 01:56:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunwu Chan X-Patchwork-Id: 206164 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1822466dyb; Sun, 25 Feb 2024 17:57:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVGYq8PveZjnjCjvsRL06g+KYMjT84I+G3Ma+9VraiE7UZ8V2nFat2blSF/rq9Kq1XahwLLDGFM5N/LCwEKMfEFF4tEnA== X-Google-Smtp-Source: AGHT+IG9kTgvl7cr53ZcuQXXJUOEZ1eDpmvLAXR4dIruP7LZRysx5HTsetJOyTDuN5kMD766xMtE X-Received: by 2002:a17:902:e74a:b0:1dc:74c4:f1dd with SMTP id p10-20020a170902e74a00b001dc74c4f1ddmr7385323plf.25.1708912622912; Sun, 25 Feb 2024 17:57:02 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s15-20020a17090302cf00b001dca8734422si290433plk.603.2024.02.25.17.57.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 17:57:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80388-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@hotmail.com header.s=selector1 header.b="vQ/BFjJV"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-80388-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80388-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B14E128137A for ; Mon, 26 Feb 2024 01:57:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00B75EEDA; Mon, 26 Feb 2024 01:56:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b="vQ/BFjJV" Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2010.outbound.protection.outlook.com [40.92.21.10]) (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 CC258817 for ; Mon, 26 Feb 2024 01:56:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.21.10 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708912607; cv=fail; b=rtT0li6rlQJ/7yXOgQ790cLXL8HG6p45S3ePDB5dSYUzJfqgnnPyLOvTYCTfn+XcOIArFwbcIZvKsvKSAvmivDX6UlV+SWpLEOYb4eavWbHBBQyf6Pb3/nHoxtioa5pbO+E/LS+mtQ+vPmrmbmpWzLWKsz19yEFb7hct3IQBuLk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708912607; c=relaxed/simple; bh=csMSuvz0clH82ysE88Z6ZGrdueZcRlPn6/7ETAB51fw=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=UQfC1h2pUliu2vg/7wRKewnANKlnBdJ/x1oPxpQoQr84sCeMSAdWtL8TOR7iATRu/Fmf/u11ebXutZa2WJGuvM81UZc5e7B2PgtilqsIMkfcGO57/O/3yk+IVgLBhkUdnmLNmn9x0FSofqbr/bPRandtHdG/aJinNy0sL7iQzDc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.com; spf=pass smtp.mailfrom=hotmail.com; dkim=pass (2048-bit key) header.d=hotmail.com header.i=@hotmail.com header.b=vQ/BFjJV; arc=fail smtp.client-ip=40.92.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=hotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YkLs0ivkdIn5jOxhqumOB2wsaAEcvlS7Ws95Aw3xuYv12ZJyc3TdsyI6CGuI0tQ4gz17acuX6gxW4oWr3AwdcCRIv6aHVNFT8UxUCkRK159jT1rAwpodl3kXdkK4Rcot1zRoydOcKwmWSsldI4Z/+sJAWbJt7Sjsu3l6Dg/v+d175QB9w2n5S6ys+VPJ7YuLtJZZw/CBVKcfxAO2W619Gp9cnRKfhzne9nONVxyp/dzrzvQQ/3V2MnzuUuqCztOXuT75KVH3kHeiUSgkBEwIBTUsbmQg5GunRPgmup51A81JQaSVzOA4hyzoGhj5S6fsPOaiJSTivIcNoMIjTMMErw== 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=YqHqPCHMIyOGzk8kjqu0uxLHw2BV3CbbtRl5lj53BtU=; b=IhqQ07iWImGFkkpiAaCWrO+p/z2X6A0Xe0PAB8zM+/1OFnW8EZiN8nOuw5lVsCYDZSOWY8VC+Mr0euDiEhPywKfYJSZ40Xrj2xKlFTOZ/EzSGmFBW/ier347atApBQgU3FKVAWUCDqxHOZqoHI2ULcpjEX3DAmnWwvcAN0iQH+gOfoWqTfoGIjmfu5b3qCt/IJkWM1nQHl87LhAxgNl0WYbvy9tRsocJx3QppTsoWRfuyD4bLC60q8rvUOCtcM8ludS2EcEzgPz6IJ83cCvnKZzjfa7nbdzCGwzaolvxJTp3qCCxxYZTNCy+xO/Ce780eC1KRLj4xSO/hHxYfbUIhA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YqHqPCHMIyOGzk8kjqu0uxLHw2BV3CbbtRl5lj53BtU=; b=vQ/BFjJV/fux0q7NsqbHC7jRLW07oei8p8dHmxpt3IoVXbYDUMo3qVc2fkwjfjX/2GG3Hr03NZhRBQIs6JRrBG5Kld3t3m0/V6EPtbzWIhJFw9TDjbvDHsuL/SYV7GqNbDjzHzunlRLfhGT15XuVX6irAXeIcd3MJeMl/4qm2rzxfaa1Yh5DzBmzpiZcLCnfNVmzMjQPHPA9IJ6FrmmA/knY7wCZigMkJwupJshY9T53bilcvFmXsy/KC8uxjkYZeSPU6pNFTU0HHvBb9qHwEgMWkXGpbbglv9CQ1NvgJj/uRl3lwnVTxM2O0Sc6SnuYSDVAEq8jPVpRlAlNRp4r8w== Received: from CY8PR11MB7779.namprd11.prod.outlook.com (2603:10b6:930:77::22) by CH3PR11MB7772.namprd11.prod.outlook.com (2603:10b6:610:120::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.10; Mon, 26 Feb 2024 01:56:43 +0000 Received: from CY8PR11MB7779.namprd11.prod.outlook.com ([fe80::3ca3:fb4f:d0d4:974]) by CY8PR11MB7779.namprd11.prod.outlook.com ([fe80::3ca3:fb4f:d0d4:974%5]) with mapi id 15.20.7339.009; Mon, 26 Feb 2024 01:56:43 +0000 From: Kunwu Chan To: joro@8bytes.org, suravee.suthikulpanit@amd.com, will@kernel.org, robin.murphy@arm.com Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] iommu/amd: drop unused but set variable entry Date: Mon, 26 Feb 2024 09:56:30 +0800 Message-ID: X-Mailer: git-send-email 2.39.2 X-TMN: [0OXqA7Q06W8xKHWxotmOjsEUIz36rsk6GUbKnQvkfGc=] X-ClientProxiedBy: SI2PR02CA0033.apcprd02.prod.outlook.com (2603:1096:4:195::20) To CY8PR11MB7779.namprd11.prod.outlook.com (2603:10b6:930:77::22) X-Microsoft-Original-Message-ID: <20240226015630.1770718-1-kunwu.chan@hotmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY8PR11MB7779:EE_|CH3PR11MB7772:EE_ X-MS-Office365-Filtering-Correlation-Id: 0e426354-003b-4760-c2ea-08dc366e2e3d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RSgEarufBrhyxqtNgxFh/7OaI+WvsikKzzZft2V/WldNXzbCv8efocY85s1nTEfuweVlHLDDNjV+x2mq0+CaFdw9/MhXeH6p1b+scrwsd+WUF8Qx9BYkg9Mx25v9QHFj48RgOEbCqqXSfiW9/EJJiDeqMZmcL8fpvYwhDQavVTA735oDdFUN7DziOlHg4sMf6/SJ4LcLjemS/nSwzhe4ZHU0smLi1/PlHgsbvWmqleKL3kUBDSMxdI8xscvfXKfeG8PQlWD2ztlXok7qmlze6Dr8q0e31WKa2lDeXFye6bAJ3BiadoRJ+7SuphZryLxJEpDmP+Nme6T3zyMSQBUVHLJkh1OLwsy2F2hVXsB92bIKXKxO8anPmd0cpqLQpkMDHajK6VinmKKLnp3AOJjHVolvYYN8xPUxaxuV+eegrbde6i3aw5hqCeppx2QZOxiQEo6OUnmgreeUn/yqz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HzL1iK9Tov2f9A9JWAM/cN1yKWi9M5Hei37THiidGacWjYLom9D0yRdp/OEytDa7c5RjauIvgTtpvCrfAKsLcZhWO9Z1iTgn6MtQWfnwcMQniseSYQBthuRpkQEdHRhvFguk/J6AIgP7QWOEQxVUjSKsW3DjmirWKUC2qeU47svY/VSvoDqpOGQAxAfneaoVXkWa2R64R+jtZId87kd0WPUsgQpqoZ0k1yl3yXQcypYyz5RQN8V6QeTMSF1EyBc91T3vfQ9f7AZUWpkP27nFP9t7YSkdClUkphMJlMpMd1pQDyC+/shwLksrAUgtw5TwFw09YquqqQfHmXqgxBYEUESTsu8TjMarRfnA/L6XE5E/qlUrR0kocMxWfbGx89Ait+BLxOW+XshYqBXApIC5P57X3BC9Jx78MQlJzk44pcy8Mvf56R35PXoiTBTWq9INi6u2IdZixMLvm9rn+mCovVtTzU9jhnZo48t5lg0B8JCipShS9pqMLII3L3lzWr+k+s X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 0e426354-003b-4760-c2ea-08dc366e2e3d X-MS-Exchange-CrossTenant-AuthSource: CY8PR11MB7779.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 01:56:43.4305 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB7772 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791924762585867167 X-GMAIL-MSGID: 1791924762585867167 Fix compile warning: drivers/iommu/amd/iommu.c: In function 'iommu_poll_ppr_log': drivers/iommu/amd/iommu.c:833:21: Warning: Variable 'entry' is set but not used [-Wunused-but-set-variable] Commit d55b0d2e075a("iommu/amd: Remove PPR support") removes the use of 'entry', but does not delete this variable. Signed-off-by: Kunwu Chan --- drivers/iommu/amd/iommu.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/iommu/amd/iommu.c b/drivers/iommu/amd/iommu.c index 4283dd8191f0..de771a6420dc 100644 --- a/drivers/iommu/amd/iommu.c +++ b/drivers/iommu/amd/iommu.c @@ -831,7 +831,6 @@ static void iommu_poll_ppr_log(struct amd_iommu *iommu) while (head != tail) { volatile u64 *raw; - u64 entry[2]; int i; raw = (u64 *)(iommu->ppr_log + head); @@ -847,10 +846,6 @@ static void iommu_poll_ppr_log(struct amd_iommu *iommu) udelay(1); } - /* Avoid memcpy function-call overhead */ - entry[0] = raw[0]; - entry[1] = raw[1]; - /* * To detect the hardware errata 733 we need to clear the * entry back to zero. This issue does not exist on SNP