Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1613336rdb; Thu, 25 Jan 2024 00:21:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEHGoVEX0YQDYwK23N6ny1YOD2OQyLQ4Z15PyW6/w/RosAPN/Ji33G5q5l9o6fStCxUzN+G X-Received: by 2002:a05:622a:104b:b0:42a:5aa5:5c35 with SMTP id f11-20020a05622a104b00b0042a5aa55c35mr681313qte.57.1706170890511; Thu, 25 Jan 2024 00:21:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706170890; cv=pass; d=google.com; s=arc-20160816; b=jrD/4AotFzAWK+kePpX6vj71rJl/R5nwMZ0D0cCq/ER3gVXKF5OFxi7YZwyT/JCTVF q5VEMRNpPbtKpxJKBRe63gElJ9SGLFj8qY2MdR/3KcBr5sfTmibg9iW1yGND9b14O9Hq 50VWR9Trp3ku85zeBF60OMbHI/dcY/wxvfTKmr9uveqYJJJ40NgykGxuftFUSzgojJ+c 4Y1p+ZWsXfyH5Hd27jpRhLrklbXef6TUQ7icIUCKsLeyICPqQKIa1d0e3fGeaLZjtO1C 2H5XjdsTwKTXhULUkQPTHC5qLa3Ue4J5RldEPClGelmqFqiXzWCiuLKviGiYAtMLkU1A R80g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=L+uV78K163obkr9oOKLgeHNUDn55IcX9WSJIhA8zWtI=; fh=FmNQ6e49TF8zK+fh2YNqwK03psYc7py5KrXphLlp/8w=; b=gPScbGtfZqZUu6CqTG759ZYdLwalFqACWTTENrmJWo4OEQBfAtVuARuCBW4QFEx8/P z5D5RW7AxJ8DGsXQcYRh2qLOmYX1vrikR0/WApWULYuJt2Re8b5hpsbb1iG8d3tExf7H liiiqSztUJUlwsrYSuGiXSshaMST52wv2v65C3A7k2UZ9D/3fEpFrfeyifslLmgIZQ0B MUmLpI28d9tLsy3TdKOUeZanZItb6nzzdhpSqUYAT+m2cYfLereZKYrX8timSBWpsC8p 9tFqoYz9eEQyB0MpkXbc6PnKThS/2ZGH73C/NHVkWuerH9KsNP3RN/g5kYjD7SN1M5RK TLSA== 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-38158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38158-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id kc6-20020a05622a44c600b00429bfed4958si11072885qtb.793.2024.01.25.00.21.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:21:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-38158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38158-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 429E51C227A9 for ; Thu, 25 Jan 2024 08:21:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2716175B4; Thu, 25 Jan 2024 08:21:23 +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 5446F13FFD for ; Thu, 25 Jan 2024 08:21:19 +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=1706170883; cv=none; b=AQdDSR7oxZuPENfit9qdhY83lWDhQCUFqLlmJpxNthwAbPR99LtLN2XXgFpYBgHt7c+vlY2QuHMdo7fKMufzZ4bJPewFmx5idN8DR033ww0WbMNMnytvdwJCpTUkTnFfC4onNnS+RpxHa1j1iKtfS2GszT0I1dMZIe+qNo92ygc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170883; c=relaxed/simple; bh=cxuqcr1pKgjBMew+4nHE9siyrzEAAX1kfp+W57MbEuo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iU0mBjFfxAuABPEKqJ4ZiLeNNJdxlL7vS6TFJJPLnD+m3B4ED0JQ27euBWeU5aZVzLyV7o7CPAVOj6Ec2PYbVPmwSyO3NpzCjC0yUjJeaGpq6GEmRPQfa/7yqucU/PogmUUVo5iCfOUWMDrQf9NbeQnpqL1sL7Jp9brELiJLOwo= 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: 28377b4fc3ba46d69d1bdf08664895d9-20240125 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:24c280cf-efdb-45d6-a95a-bb7bb1f1d273,IP:20, URL:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:5 X-CID-INFO: VERSION:1.1.35,REQID:24c280cf-efdb-45d6-a95a-bb7bb1f1d273,IP:20,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:5 X-CID-META: VersionHash:5d391d7,CLOUDID:6237be7f-4f93-4875-95e7-8c66ea833d57,B ulkID:240125144931KQV0B0BI,BulkQuantity:5,Recheck:0,SF:38|24|17|19|44|64|6 6|102,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,Bulk:40,QS:nil,BEC:nil, COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 28377b4fc3ba46d69d1bdf08664895d9-20240125 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1000393714; Thu, 25 Jan 2024 16:21:10 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 4B2DDE000EB9; Thu, 25 Jan 2024 16:21:10 +0800 (CST) X-ns-mid: postfix-65B219F6-201682428 Received: from [172.20.15.234] (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id 1C8C5E000EB9; Thu, 25 Jan 2024 16:21:00 +0800 (CST) Message-ID: <0cc62f04-ce60-42ed-89c9-ce8b1ce26ce7@kylinos.cn> Date: Thu, 25 Jan 2024 16:20:59 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] powerpc/iommu: Code cleanup for cell/iommu.c To: Christophe Leroy , "arnd@arndb.de" , "mpe@ellerman.id.au" , "npiggin@gmail.com" , "aneesh.kumar@kernel.org" , "naveen.n.rao@linux.ibm.com" Cc: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" References: <20240125024633.512513-1-chentao@kylinos.cn> <7cdfcfc3-fc9e-433d-8992-7782d641cb94@csgroup.eu> Content-Language: en-US From: Kunwu Chan In-Reply-To: <7cdfcfc3-fc9e-433d-8992-7782d641cb94@csgroup.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable On 2024/1/25 14:49, Christophe Leroy wrote: >=20 >=20 > Le 25/01/2024 =C3=A0 03:46, Kunwu Chan a =C3=A9crit=C2=A0: >> 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/platfo= rms/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(stru= ct 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 > Same as the other one, please remove the second blank line, don't leave > two blank lines between the remaining functions. Thanks for your reply. I'll check my patches and update in v2. >=20 >> =20 >> static inline u32 cell_iommu_get_ioid(struct device_node *np) >> { --=20 Thanks, Kunwu