From patchwork Thu Jan 25 02:46:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunwu Chan X-Patchwork-Id: 191820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp1385658dyi; Wed, 24 Jan 2024 18:53:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUTdHwWd7z7xd/QIBH0yggwUs3N0wB9MklFBencXqm3gMkL5QtvI6h4hEAxPGTbanlvRHP X-Received: by 2002:a62:d44d:0:b0:6db:d589:dbc6 with SMTP id u13-20020a62d44d000000b006dbd589dbc6mr412508pfl.24.1706151218780; Wed, 24 Jan 2024 18:53:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706151218; cv=pass; d=google.com; s=arc-20160816; b=lUwO1EOesdKibKCrxuXVPxV5KBLU78uS8rn9/FTqByaueJpCefZ219kDkIeHvQufjc rgMUwMK7kWICZW9VKOKjoFIeHwqo1fMikypazr0944l4wOAF4ddja+PdzYRCGvY0l4OQ L6Zh0QtvH5rp1cfV4UpFXWDF0OkD36ou3AT7zP29tbX6znch2yaYPpIo5XnlVJaWNHju nDKDGmo4/RHBeUDgl5WU/Yw3Bq70aLzoO5qZeZd5Rpussg9wKH2MU0MwgoYDeBIdAzHb olhXxZvk3a6boEyIpp7YRjc7Ba357yyOUYdho5TOEMwy6l4IaNfqO2UuxuTv5J55zUBD nUqQ== 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37899-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f26-20020a631f1a000000b005ceb4a70213si12653122pgf.385.2024.01.24.18.53.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 18:53:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-37899-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37899-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 777F7B24B0D for ; Thu, 25 Jan 2024 02:52:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 465026FA7; Thu, 25 Jan 2024 02:52:14 +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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789029220635766451 X-GMAIL-MSGID: 1789029220635766451 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); } -#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 == offset && window->size == size) - return window; - } - - return NULL; -} -#endif static inline u32 cell_iommu_get_ioid(struct device_node *np) {