Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1502825rdb; Wed, 24 Jan 2024 18:52:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcOByXVm6Y9xJlZcmNjooy2sYH76QIBXnkrZaROdBD5P98PDggDjr2V56S8N+szFXy0KjG X-Received: by 2002:a05:620a:1215:b0:783:bcd8:530 with SMTP id u21-20020a05620a121500b00783bcd80530mr794706qkj.58.1706151141304; Wed, 24 Jan 2024 18:52:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706151141; cv=pass; d=google.com; s=arc-20160816; b=aDDCI0P+QvwCvegHZXEhJuqgurzih4fr8QC2NKPtSKvXxcG6TKGEsWH4mz3k3fnsYf ucyWgSFaPbcNiOlpwXgF4QC1B3Z/1n/prBjVfiJo/s93PkCtPfxihg/edMVhSOTIAyZy uRy55NinC7OWIaJ5/fkexXOl2xuS+u5MCFbVi94InW3vYxPWtPx2c3MF1rLt46oyLz1B qnZavy0RiFCMEx6Gnyimqq/mFtSv8gwQv4YnANx3ZUabTAsIYpluNjDRCTyNxCHcSCOX bAFJm5dLXvday4TiNtzhYx0RTBtO7Gn7kT1qSHWGdukldXJqrlMFB40CYjBaDIWQ84Y/ eWew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=vV7lYkAkAvLBzH6ufSFBi69vdUjQS9bIZax/cSNWPQI=; fh=BVU9t36asunBJYfk53Qlkj5FZEQ52+oZjTng6wm41Uw=; b=RDmiXwDHQOzeezSs6MbgwA0SnwlPmeCcNdgPypWZ5e41Oi+ynqlMgmyolkY6IzS26f IpuAPE/Wc9MZRT9R+5NAIbTdTzBRTGVhZpLvLYVLpBYrb1BPlIinOsuYWDAA7XS30/9j ZosIGthAXc885b/fe3qBqBB3WuNCZD0fihUbmV11oS+E/E7jTfVjvN3RUPx+z+i5kFi8 nlDST1ZamqSdR6C6jUH2boaSHxLN4CGuIi741jaU5lckf68+dwOpLkRpUZXXTVa5eC2D h1Hs7PKV+oZyRBP7avk8AkvNiXU6/TjjWjxSdnkGNpOI5gTJ+k0U8LpmoE/esptC2JwZ DwMg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-37899-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37899-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk9-20020a05620a1a0900b0078350f54cfbsi12603160qkb.116.2024.01.24.18.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 18:52:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37899-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-37899-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37899-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 136881C22776 for ; Thu, 25 Jan 2024 02:52:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3EC245C9A; Thu, 25 Jan 2024 02:52:13 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (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 93C527FB for ; Thu, 25 Jan 2024 02:52:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706151132; cv=none; b=kalHU0SCL4oPZk0oWuGbzE/RjqaMlViElKdIPIlG9dIqqpw87L9w+erpI7KUfE8kDlBqBwy4BHxyq33dvgUAWjGAkf5t+OLtjvwR4XFYg2UDPoCUFzSB0pE5liXIYSNOUUQmRikjZ4WsJpTcJ2l28OAEZKQvGLmjx3CJMvWOnIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706151132; c=relaxed/simple; bh=sLfgMcZT/FvOrcL3NTMJavfwBQQ1EZUbINMA+LMYEhA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SJMe0Qraos5URiwdDXtQVnHw1iQJE+jnT70ag2IpQI1HOQR/4BP7qtJN0uAlD+qxzjaecAEMa9MINB50qfI0tTuZMsf+iEYrNKfO9WgUGTJDx5fOsw1OIgRFbbVmcia/bUXDLicxnCXMtosmnIzEn9MU+GV0/VCN9alw2nkAW8M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: c31b89054ac446e6a4faaaad45d5f508-20240125 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:bcf62a7f-5493-478e-8b8d-d889bd02edec,IP:20, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:0 X-CID-INFO: VERSION:1.1.35,REQID:bcf62a7f-5493-478e-8b8d-d889bd02edec,IP:20,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:0 X-CID-META: VersionHash:5d391d7,CLOUDID:c4b81ffe-c16b-4159-a099-3b9d0558e447,B ulkID:240125104648BVAXVXDF,BulkQuantity:0,Recheck:0,SF:44|66|38|24|17|19|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,CO L:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_FSI,TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD X-UUID: c31b89054ac446e6a4faaaad45d5f508-20240125 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 178462094; Thu, 25 Jan 2024 10:46:45 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 76001E000EB9; Thu, 25 Jan 2024 10:46:45 +0800 (CST) X-ns-mid: postfix-65B1CB95-282686354 Received: from kernel.. (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id 15CA8E000EB9; Thu, 25 Jan 2024 10:46:35 +0800 (CST) From: Kunwu Chan To: arnd@arndb.de, mpe@ellerman.id.au, npiggin@gmail.com, christophe.leroy@csgroup.eu, aneesh.kumar@kernel.org, naveen.n.rao@linux.ibm.com Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] powerpc/iommu: Code cleanup for cell/iommu.c Date: Thu, 25 Jan 2024 10:46:33 +0800 Message-Id: <20240125024633.512513-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This part was commented from commit 165785e5c0be ("[POWERPC] Cell iommu support") in about 17 years before. If there are no plans to enable this part code in the future, we can remove this dead code. Signed-off-by: Kunwu Chan --- arch/powerpc/platforms/cell/iommu.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms= /cell/iommu.c index 1202a69b0a20..afce9e64a443 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c @@ -424,22 +424,6 @@ static void __init cell_iommu_setup_hardware(struct = cbe_iommu *iommu, cell_iommu_enable_hardware(iommu); } =20 -#if 0/* Unused for now */ -static struct iommu_window *find_window(struct cbe_iommu *iommu, - unsigned long offset, unsigned long size) -{ - struct iommu_window *window; - - /* todo: check for overlapping (but not equal) windows) */ - - list_for_each_entry(window, &(iommu->windows), list) { - if (window->offset =3D=3D offset && window->size =3D=3D size) - return window; - } - - return NULL; -} -#endif =20 static inline u32 cell_iommu_get_ioid(struct device_node *np) { --=20 2.39.2