Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1615350rdb; Thu, 25 Jan 2024 00:27:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGujwXnij8q+jZgST+IR/8ryCmSQAKxMT/8XW2b4u4NwECrFdAzcQm5ipqkbNwcUn9QOxn8 X-Received: by 2002:a17:906:d971:b0:a28:c5dc:4802 with SMTP id rp17-20020a170906d97100b00a28c5dc4802mr356009ejb.31.1706171231380; Thu, 25 Jan 2024 00:27:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706171231; cv=pass; d=google.com; s=arc-20160816; b=brNOC0wHI0ikGQtdDHlLkeRpZ/86rBIJO7O3QgTi6gbpECzp2Tl/ToclzoKX7jocW1 zNudI4z4kja/eUCB4SRtFvSVxpKeNwRqbLRLYX0EFY1VgI7to9Cp592+9KueHWZm9q9N ggvrcOEpQQIPvWgMe55vhdRn+Joe9JzC1kUqCSqkvZyf8LLDwxyvRyX7b1WPzRSi8DW9 7gBho4nuCwSzE6kq7SMbMD6w+FIV3F54H+UX+P0M/eAh7R14FH1TWOdUEx2A/c+lxSJe 5B3LmSAQQt6LBEjLAgiixpzCp4zJuW9O3QPfPvLhVfZttirSq9PTjQJ1fStm3aWgUpMu OnnQ== 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=g91GNOK0IBv6+QlixWKXN2yMT/eZkz/Zks2j7h8vjkU=; fh=BVU9t36asunBJYfk53Qlkj5FZEQ52+oZjTng6wm41Uw=; b=ly2JSgM/tUh+NsdOuZGIDt0DAYRIoJIcJbdl45F7NNgJJM3gbkVfchYoLFyhOSqTnS wABPSq7xzuyyWXTBojvrXuk5+onAr30Be8zHaQ6HYS4In9JKbBDwt8ny4Ea3pl+QdN8X KwgmSiM0rE0rI5/IseKyAv59deWzJtDZJsVG47050ZrLUTTUx1ANBx2LDdECkllB7jJs 507vnhP+U/55ikfLUsfET7zzfEmCm1qMn3TbpfRRF40EBg3jqzKqbv0yZXCjrq2AM8cx huAqkIdT1JfWpLb4zYd0vKSD7+rsZmwJmA0ssVJHU+2CrdGhWCNHP6hRQRd09cwDD5Ti dtog== 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-38173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38173-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gs6-20020a170906f18600b00a2b61bbdc9fsi720543ejb.214.2024.01.25.00.27.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:27:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-38173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38173-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 248FB1F234AB for ; Thu, 25 Jan 2024 08:27:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F31E418E08; Thu, 25 Jan 2024 08:26:47 +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 E5788175AA for ; Thu, 25 Jan 2024 08:26:44 +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=1706171207; cv=none; b=RzdD3SzoFiUai1QVM6JexhBjU/OCM8psDq9JXoPLCBS6dkixKuoUQKYeA2BhnDIvfDdMsGcG8PwZQ9rYrGGCed4MzE+ZmOc2GWBCNknWW5fBwD+NfrH3hmQ4SDzg34Bmg7D3M9jis0qrOz/UfHjLp1wF/nThQfpor07vRgaH0Ig= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706171207; c=relaxed/simple; bh=FG46UbtAEy6XbFUMl1wsUCWMz33eciIgZ93AoHoaT5U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=D57WkJ7v+IMLIfCUpe78o9z3WxjQTcqG5gDZ5GGREZpGZjxe7CfaTw9ucLvEOcpF8MJxw27uHHEw97XGGtSRFth3Bym0z6ulRZolZYOG/zzSuoPxc66N6OUZ/VAEF+WHdEK9Fja7UCauk+SaFX8yBoMOF45A6etcfBGorNClBK0= 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: a5ba3788d1a74957bc1cc09db6d61a3c-20240125 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:1c03ab7e-17ed-4013-b4eb-431784c735cc,IP:10, URL:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:-10 X-CID-INFO: VERSION:1.1.35,REQID:1c03ab7e-17ed-4013-b4eb-431784c735cc,IP:10,UR L:0,TC:0,Content:-5,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-10 X-CID-META: VersionHash:5d391d7,CLOUDID:6447be7f-4f93-4875-95e7-8c66ea833d57,B ulkID:240125162641GEPPO6KT,BulkQuantity:0,Recheck:0,SF:17|19|44|66|38|24|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_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: a5ba3788d1a74957bc1cc09db6d61a3c-20240125 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 454758539; Thu, 25 Jan 2024 16:26:40 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 47E38E000EBA; Thu, 25 Jan 2024 16:26:40 +0800 (CST) X-ns-mid: postfix-65B21B40-86024455 Received: from kernel.. (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id 8C11AE000EB9; Thu, 25 Jan 2024 16:26:39 +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 v2] powerpc/iommu: Code cleanup for cell/iommu.c Date: Thu, 25 Jan 2024 16:26:37 +0800 Message-Id: <20240125082637.532826-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 --- Change in v2: - Remove the second blank line --- arch/powerpc/platforms/cell/iommu.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arch/powerpc/platforms/cell/iommu.c b/arch/powerpc/platforms= /cell/iommu.c index 1202a69b0a20..4cd9c0de22c2 100644 --- a/arch/powerpc/platforms/cell/iommu.c +++ b/arch/powerpc/platforms/cell/iommu.c @@ -424,23 +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 - static inline u32 cell_iommu_get_ioid(struct device_node *np) { const u32 *ioid; --=20 2.39.2