Message ID | 20240124093647.479176-1-chentao@kylinos.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-36733-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp877608dyi; Wed, 24 Jan 2024 01:42:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IE0DTXn6LB1EHaae6+kRlsEd4cz0diIUrNamI1mdHrSpoaCFohpDkzA04QBqjlgTGD5nEAW X-Received: by 2002:a50:ef04:0:b0:55a:6635:521c with SMTP id m4-20020a50ef04000000b0055a6635521cmr1741192eds.53.1706089374733; Wed, 24 Jan 2024 01:42:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706089374; cv=pass; d=google.com; s=arc-20160816; b=p0EJzJRgE4UhqXNNklPoYy2myAq+EqGrbuTTMdVy6yr5IbB3pb1bzLY8h4DY/oZvAm fEF10GZn3ynUvABGSyak0FvBuB8IqpCXMFWN78r2YVuUasi9dpn97/XuDz/LgTizP9YZ obqgsf2sjLxu80hnammquwoVs9FzHa5MN1BcN1iPDsa0aCal5Jr6dbG+NvgtLQK5uBGH BHacVrhL+av3C2fub59B6Qgewdp1DwTdDef3qvx4IJg+U7JLCtu9mnLsDfLmA48r3vKU ctIEUhi39hoyFGB7l2X0uIMk5vfEX/eYM8Df2g0hh8kyFRs+dt7kl02LfAKkxjL5595+ mZ0g== 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=vIXVKb+dKRg0m8esVT0P3S5oaGraeY/LwnrARcupYwM=; fh=AahBJXZs2cmNcsgR65zE7OySKMfsK8jp6IM5nU5J/4U=; b=Lr0simI5lvXCWUM3aq8JzlDjk8Z/nxkwf7T7kySWUf9LAQnhoJy0r8EKR4lPyjMSHw tQ9Ur7R6Y+LtIIj6tNdMSZ01It/1HY9btGyEybWqg24EEIgaLjYBap7WVkZDF6dPGFFr QHFoO8/spNVYi2yQd71CACIaNV/cxnjumuNx2a3FuUgrMHuGznkEWLgGlAZMIHt8nOAb sZpJsHiTOvQ+ukIlMlppThG9NIuUy3VzIcnLAdSwXlFUId+5frrvp0JQIytj2h5mjck4 RNSq4GpOpi1qMJ8P7Z6j8OSlSWLOQtxN5W5WVeQKpM5DmqdG2MsbKUmUxB7MrE0ZDJMY V75A== 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-36733-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36733-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b16-20020a0564021f1000b0055ca2e5bc5dsi831056edb.220.2024.01.24.01.42.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 01:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36733-ouuuleilei=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-36733-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36733-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5A0731F23CA2 for <ouuuleilei@gmail.com>; Wed, 24 Jan 2024 09:42:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AAAB182A0; Wed, 24 Jan 2024 09:42:33 +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 B11661798C; Wed, 24 Jan 2024 09:42:26 +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=1706089351; cv=none; b=smEbk1HpXhlUNB2JARaLxaE8yLNCH2qQX9df1N7ksK0z5kNDUUddWUBcfzvOK/qe9B7SRFtdg/uX9thdT59qzXueGj/crtaSNGlvNe21+xqJ5MYtp6MV2PBKYCQhGwB4hLywNfP1mFIF6XyOE3123NrihOF0JRFjSMjk06X6Rvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706089351; c=relaxed/simple; bh=JDrsz0CKwL+aPZhb85e2CY9gnCQafK8RTcFyutCW7mo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pDU1hX/gXyJxkw30d18vFzDCQKGqU9JPSr2entNeFO+WDBYWLY23yihBOCRpNHEvjpUHAdBkAVCO6zeaxrg3G4Dd3vEfuItSn3hY6VtCDlvN8/AlMzRGsT1rimKxCmIj+/NexHmM7p6d178dplgahveatSDu3lCpWbHFntOG6+U= 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: 2a995f7cc3054f0c90ab071957e8d838-20240124 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:21e3d530-1a18-4978-816b-9179cc7e7ddc,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:21e3d530-1a18-4978-816b-9179cc7e7ddc,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:38e63383-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:2401241737004LUCFGAT,BulkQuantity:0,Recheck:0,SF:19|44|66|38|24|17|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: 2a995f7cc3054f0c90ab071957e8d838-20240124 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from <chentao@kylinos.cn>) (Generic MTA) with ESMTP id 1046508456; Wed, 24 Jan 2024 17:36:57 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 98545E000EB9; Wed, 24 Jan 2024 17:36:57 +0800 (CST) X-ns-mid: postfix-65B0DA39-4239131226 Received: from kernel.. (unknown [172.20.15.234]) by mail.kylinos.cn (NSMail) with ESMTPA id 98C0EE000EB9; Wed, 24 Jan 2024 17:36:48 +0800 (CST) From: Kunwu Chan <chentao@kylinos.cn> 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, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan <chentao@kylinos.cn> Subject: [PATCH] KVM: PPC: code cleanup for kvmppc_book3s_irqprio_deliver Date: Wed, 24 Jan 2024 17:36:47 +0800 Message-Id: <20240124093647.479176-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788964371887784789 X-GMAIL-MSGID: 1788964371887784789 |
Series |
KVM: PPC: code cleanup for kvmppc_book3s_irqprio_deliver
|
|
Commit Message
Kunwu Chan
Jan. 24, 2024, 9:36 a.m. UTC
This part was commented from commit 2f4cf5e42d13 ("Add book3s.c")
in about 14 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 <chentao@kylinos.cn>
---
arch/powerpc/kvm/book3s.c | 3 ---
1 file changed, 3 deletions(-)
Comments
Le 24/01/2024 à 10:36, Kunwu Chan a écrit : > This part was commented from commit 2f4cf5e42d13 ("Add book3s.c") > in about 14 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 <chentao@kylinos.cn> > --- > arch/powerpc/kvm/book3s.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c > index 8acec144120e..c2f50e04eec8 100644 > --- a/arch/powerpc/kvm/book3s.c > +++ b/arch/powerpc/kvm/book3s.c > @@ -360,9 +360,6 @@ static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, > break; > } > > -#if 0 > - printk(KERN_INFO "Deliver interrupt 0x%x? %x\n", vec, deliver); > -#endif Please also remove one of the two blank lines. > > if (deliver) > kvmppc_inject_interrupt(vcpu, vec, 0);
> If there are no plans to enable this part code in the future, Will the word combination “code part” become preferred for a subsequent change description? > we can remove this dead code. And omit another blank line accordingly? Regards, Markus
On 2024/1/24 21:01, Christophe Leroy wrote: > > > Le 24/01/2024 à 10:36, Kunwu Chan a écrit : >> This part was commented from commit 2f4cf5e42d13 ("Add book3s.c") >> in about 14 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 <chentao@kylinos.cn> >> --- >> arch/powerpc/kvm/book3s.c | 3 --- >> 1 file changed, 3 deletions(-) >> >> diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c >> index 8acec144120e..c2f50e04eec8 100644 >> --- a/arch/powerpc/kvm/book3s.c >> +++ b/arch/powerpc/kvm/book3s.c >> @@ -360,9 +360,6 @@ static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, >> break; >> } >> >> -#if 0 >> - printk(KERN_INFO "Deliver interrupt 0x%x? %x\n", vec, deliver); >> -#endif > > Please also remove one of the two blank lines. Thanks for your reply. I've send the v2 patch: https://lore.kernel.org/all/20240125082637.532826-1-chentao@kylinos.cn/ https://lore.kernel.org/all/20240125083348.533883-1-chentao@kylinos.cn/ >> >> if (deliver) >> kvmppc_inject_interrupt(vcpu, vec, 0);
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 8acec144120e..c2f50e04eec8 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c @@ -360,9 +360,6 @@ static int kvmppc_book3s_irqprio_deliver(struct kvm_vcpu *vcpu, break; } -#if 0 - printk(KERN_INFO "Deliver interrupt 0x%x? %x\n", vec, deliver); -#endif if (deliver) kvmppc_inject_interrupt(vcpu, vec, 0);