Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp358372rdb; Thu, 25 Jan 2024 18:58:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGVxiTBcOBbBAUleVZVikANDh9IuBsExFJqCQ/mdCykzVfN/j+piXJeTfAF9z453mma46P X-Received: by 2002:a05:6a20:841b:b0:199:e4ab:691c with SMTP id c27-20020a056a20841b00b00199e4ab691cmr929863pzd.8.1706237924649; Thu, 25 Jan 2024 18:58:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706237924; cv=pass; d=google.com; s=arc-20160816; b=qs/gHE8hiiuRlrZyeYI36I+6fl7Xv6DH0Et96IXoT5TUHU2XQQYblgW6Ib1FXQw5zC BhAaI6bKNQy0rNR1haeuLwzaG8Q13LreYzR8t7zQzWsPpYTmMmowGvdyyxNEUS7DMLHw c6atdS0dbNgZ9N80pkaU/mWgGy03PWmPQJO6ZjK81YDnt/apPg4erD3OYfh2SK2kdzJe AUD4I/czlWKhDv+3FCVC2ukLJ7z8kX2U/jeKA/4StubvqGcCWTl0hr+hxXJUJFeVBUUc yXQ1BYn0CgbkAuAqE6gwrQLa/8YGfUtvbHxvF50wczYwyotwHL0nenz4PovTq2r1Bb6h cfXg== 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=I4vuq13/2cfo72w+4sG6Zdh27iUPEU1BQs0ZOaYd6f4=; fh=vRbHvZ+tnxC90vVJcmBHnHrvglW9FXV+QTVyG5rDtlc=; b=a4MFRinnFjMycdR8xYT/uUDM/tp80aIVLIXJexuKwSJJLcEzb0ykjx+pXwxdryp6o5 dFal3CZPYGtMsNMc1aAWlC37ZWw7YbCgDIfhUb/QZf6tM9FrDRAbyT3vBP7nD8xR5Kke 1V977aPMIqkiEKLpyFoo8O0hQRl9neQeuwEpEJnhHzxUSEvvcyo43FliRffEUuAXaBdE /mdxX7h5/CVXM8StUG04fJRLkvMhPQGbSucctcavdCNEQEP5Ja8glgOZZCQDs8OePAY8 BJ9WX0w2WajsVsGLJgfzqBDyoUS3yYKcP6MGMraBcoaQQreGZrT8SjXpRah7M6/b5LKn 6A0w== 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-39553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39553-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k22-20020a6568d6000000b005cdab77e14esi320422pgt.559.2024.01.25.18.58.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 18:58:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-39553-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39553-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D87F8B2293E for ; Fri, 26 Jan 2024 02:51:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AABF59463; Fri, 26 Jan 2024 02:51:01 +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 7C9788831 for ; Fri, 26 Jan 2024 02:50:56 +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=1706237461; cv=none; b=tT/7f5ximOAsb/x68HhYynbZnn9mXVjcg6cpeZJOOqV7l9zirA00EwI3WOQWiyRt46w6YzTfK38MdYHZFxUhexOLpgN3OvUKujuO2s4jDAcv2+/+Qnl6p0MDGfdYYoWZOHSke1LzQPHv1Bpa8IAdmzudnA5tYR8q6zl8MQ7ulaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706237461; c=relaxed/simple; bh=KQUvtX0ZfbnWVOk035tgQ4o7IIlk8MtUyOtRZNgyZ6U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=S0jvAfJTy0qfJ2ojHm87AI47T3pqUj24OZLht09JSgAk/9qbxuO8/UOcX+ryq3+Drt3dTksAJFeKEdiJ+iZFgr/fbKojaV0KG3odSlVwMKzi5OBhmDedRGjeZ6Kl2iw7pX7Ol0SCz5u+DI/Bx86e68/81xozf9xHx0KA69zQVBw= 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: ee05abc1be3c471f93bd095ad4e0dd41-20240126 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:cb6c19f0-5fdb-4c53-8deb-7b37278edca6,IP:10, 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:cb6c19f0-5fdb-4c53-8deb-7b37278edca6,IP:10,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:21564583-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240126105054IZJ80SSG,BulkQuantity:0,Recheck:0,SF:66|38|24|17|19|44|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:11|1,File:nil,Bulk:nil,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 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_FSI,TF_CID_SPAM_ULN,TF_CID_SPAM_SNR,TF_CID_SPAM_FAS, TF_CID_SPAM_FSD X-UUID: ee05abc1be3c471f93bd095ad4e0dd41-20240126 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 466960604; Fri, 26 Jan 2024 10:50:53 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 92B07E000EB9; Fri, 26 Jan 2024 10:50:53 +0800 (CST) X-ns-mid: postfix-65B31E0D-372088737 Received: from kernel.. (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id DF9CBE000EB9; Fri, 26 Jan 2024 10:50:52 +0800 (CST) From: Kunwu Chan To: 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/pseries/pci: Code cleanup Date: Fri, 26 Jan 2024 10:50:30 +0800 Message-Id: <20240126025030.577795-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 in about 19 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/pseries/pci.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/arch/powerpc/platforms/pseries/pci.c b/arch/powerpc/platform= s/pseries/pci.c index 1772ae3d193d..6dbc73eb2ca2 100644 --- a/arch/powerpc/platforms/pseries/pci.c +++ b/arch/powerpc/platforms/pseries/pci.c @@ -18,33 +18,6 @@ #include #include "pseries.h" =20 -#if 0 -void pcibios_name_device(struct pci_dev *dev) -{ - struct device_node *dn; - - /* - * Add IBM loc code (slot) as a prefix to the device names for service - */ - dn =3D pci_device_to_OF_node(dev); - if (dn) { - const char *loc_code =3D of_get_property(dn, "ibm,loc-code", - NULL); - if (loc_code) { - int loc_len =3D strlen(loc_code); - if (loc_len < sizeof(dev->dev.name)) { - memmove(dev->dev.name+loc_len+1, dev->dev.name, - sizeof(dev->dev.name)-loc_len-1); - memcpy(dev->dev.name, loc_code, loc_len); - dev->dev.name[loc_len] =3D ' '; - dev->dev.name[sizeof(dev->dev.name)-1] =3D '\0'; - } - } - } -} -DECLARE_PCI_FIXUP_HEADER(PCI_ANY_ID, PCI_ANY_ID, pcibios_name_device); -#endif - #ifdef CONFIG_PCI_IOV #define MAX_VFS_FOR_MAP_PE 256 struct pe_map_bar_entry { --=20 2.39.2