Message ID | 20231006235132.16227-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp660703vqo; Fri, 6 Oct 2023 16:52:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwE2E0X2iVm08GD+944EaTMrjcvZWLYXEq24WLEzaV1xLiw1YkTGsqB5Hsp6kMBF89sgRJ X-Received: by 2002:a17:903:443:b0:1c5:ce3c:c391 with SMTP id iw3-20020a170903044300b001c5ce3cc391mr8798145plb.12.1696636367375; Fri, 06 Oct 2023 16:52:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696636367; cv=none; d=google.com; s=arc-20160816; b=BtDmf6qoZIcomXYVSvV/0jvEbb1cGOjew/kbi+XVvAWq/heTQtpL/sKEGOdTEA5sWv M3hokmlN8IZpZb0u1XvTF+s8rV/fmxkJqHUblti03/D+/IkPScmUesvtcCuRnnrwCAU3 RvO7aMROPDcCxkFAQPHEDarc1xq/V2fwv7q809hz0TMZqjvJWwH6M+9s0x3XZyOCbwgM poc1IF3F2XGi3KyFxoqk2rqZnoJKbTkTXcExduawJhTpAARqEAam96GEx+aWQ4FODyyR 605AvZoj/6I0F2ekHHt887R2pmmMuv32j+K6ybpRq4L4blkwIvrFr3r0hQW2AOVoyBnU Dnlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eda8bkHW/wfNmnWvVarEi8u05ELZ2c0LLY0YPElc1Y0=; fh=MQGH1PDUMNifjeNf7vwB1Fp6OLUJAwp2krtUzJhAgow=; b=0DjTqnlUEVSD8E8BvBxxOxGQnhQzfoV6zv0F8VveNf5WvE9Trte4wtxSIrxxVPwXfX Wp1u8SCAufPZj7b+i7kz1GjFb1Nhc5AaE2zeUnuKavqS79+y8RJgh+4Yu/pGsmHPgTO+ i2MxMVc4mYBkbOjkp9Gdck1Vlarcr0PX0BLrI4tj5lTLidxHnV3lYnWAvQaQzJK2jl+K RRjvFVYlPy5dXplCqAdR56qrQoeYjJIlWJJf0PT4fwSLZt9Ih68CnMExVaT6XPvnWqx4 6zpDJ8wnb+qTLhedB2HgJfVJfdBgQOq/dkge9xuO7S3mzPDKg2ZlpgMUY9j5Ikzplk4t xycw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Kr8slfhv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id p10-20020a170902e74a00b001c73f81b24asi118726plf.521.2023.10.06.16.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 16:52:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Kr8slfhv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 53112807592D; Fri, 6 Oct 2023 16:51:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233929AbjJFXvh (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Fri, 6 Oct 2023 19:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233696AbjJFXvg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 6 Oct 2023 19:51:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80B0ABD for <linux-kernel@vger.kernel.org>; Fri, 6 Oct 2023 16:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=eda8bkHW/wfNmnWvVarEi8u05ELZ2c0LLY0YPElc1Y0=; b=Kr8slfhvovWJW1h9cAaaosEWQB UCJkNIp+XgYlakdUDtnDKQOCta6hLiVuHDc6xTTP6+ww40zPE/LbSJ2WvoSVQkapKWp0wagwOiUuY vD87U2+F8kCZHFoqudkEq5F6UJ/p1RbBeyVq81keRvlPd2keKEqF+U65MQrCLSYRPdzVxZG/H0X9Q L9xUT2TQGMdHKh42unQfSPq5lAtxQ5EKsnrDjg8kYbTKtPuOnQGACCIGJWulsvZTmvVWuEuO0Gd8h TOGNiOTtT17WASI0L+qWkvnCLQImnmfYdYae9E2a9vsJGMkXh8EJAndCP3qWupJUckKsbxSPmWLB+ q6Z51jfA==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qoubV-006fdq-0Z; Fri, 06 Oct 2023 23:51:33 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, kernel test robot <lkp@intel.com>, Vikas Shivappa <vikas.shivappa@linux.intel.com>, Tony Luck <tony.luck@intel.com>, Thomas Gleixner <tglx@linutronix.de>, Fenghua Yu <fenghua.yu@intel.com>, Reinette Chatre <reinette.chatre@intel.com>, Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>, Dave Hansen <dave.hansen@linux.intel.com>, x86@kernel.org Subject: [PATCH] x86/intel_rdt/cqm: fix kernel-doc warnings Date: Fri, 6 Oct 2023 16:51:32 -0700 Message-ID: <20231006235132.16227-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 16:51:49 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779052175067430802 X-GMAIL-MSGID: 1779052175067430802 |
Series |
x86/intel_rdt/cqm: fix kernel-doc warnings
|
|
Commit Message
Randy Dunlap
Oct. 6, 2023, 11:51 p.m. UTC
The kernel test robot reported kernel-doc warnings here:
monitor.c:34: warning: Cannot understand * @rmid_free_lru A least recently used list of free RMIDs
on line 34 - I thought it was a doc line
monitor.c:41: warning: Cannot understand * @rmid_limbo_count count of currently unused but (potentially)
on line 41 - I thought it was a doc line
monitor.c:50: warning: Cannot understand * @rmid_entry - The entry in the limbo and free lists.
on line 50 - I thought it was a doc line
We don't have a syntax for documenting individual data items via
kernel-doc, so remove the "/**" kernel-doc markers and add a hyphen
for consistency.
Fixes: 6a445edce657 ("x86/intel_rdt/cqm: Add RDT monitoring initialization")
Fixes: 24247aeeabe9 ("x86/intel_rdt/cqm: Improve limbo list processing")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/all/202310062356.lX3xpLP9-lkp@intel.com/
Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Reinette Chatre <reinette.chatre@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: x86@kernel.org
---
Not using Closes: since this patch only addresses some of the issues
reported.
arch/x86/kernel/cpu/resctrl/monitor.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
Comments
Hi Randy, Thank you very much for noticing the bug report and taking the time to fix it. To match the custom of this area, could you please modify the subject to be: x86/resctrl: Fix kernel-doc warnings On 10/6/2023 4:51 PM, Randy Dunlap wrote: > The kernel test robot reported kernel-doc warnings here: > > monitor.c:34: warning: Cannot understand * @rmid_free_lru A least recently used list of free RMIDs > on line 34 - I thought it was a doc line > monitor.c:41: warning: Cannot understand * @rmid_limbo_count count of currently unused but (potentially) > on line 41 - I thought it was a doc line > monitor.c:50: warning: Cannot understand * @rmid_entry - The entry in the limbo and free lists. > on line 50 - I thought it was a doc line > > We don't have a syntax for documenting individual data items via > kernel-doc, so remove the "/**" kernel-doc markers and add a hyphen > for consistency. > > Fixes: 6a445edce657 ("x86/intel_rdt/cqm: Add RDT monitoring initialization") > Fixes: 24247aeeabe9 ("x86/intel_rdt/cqm: Improve limbo list processing") > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Reported-by: kernel test robot <lkp@intel.com> Could you please swap the above two tags to follow the tag ordering custom followed by the tip maintainers? For reference you can find the details in section "Ordering of commit tags" of Documentation/process/maintainer-tip.rst Also, below the "Link:" follows the "Cc:". > Link: https://lore.kernel.org/all/202310062356.lX3xpLP9-lkp@intel.com/ > Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com> > Cc: Tony Luck <tony.luck@intel.com> > Cc: Thomas Gleixner <tglx@linutronix.de> > Cc: Fenghua Yu <fenghua.yu@intel.com> > Cc: Reinette Chatre <reinette.chatre@intel.com> > Cc: Ingo Molnar <mingo@redhat.com> > Cc: Borislav Petkov <bp@alien8.de> > Cc: Dave Hansen <dave.hansen@linux.intel.com> > Cc: x86@kernel.org > --- > Not using Closes: since this patch only addresses some of the issues > reported. I am aware of these issues. The person working on this previously seems to have moved on. I'll share this work with folks looking for this type of opportunity and ensure that it is completed this time. > arch/x86/kernel/cpu/resctrl/monitor.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff -- a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c > --- a/arch/x86/kernel/cpu/resctrl/monitor.c > +++ b/arch/x86/kernel/cpu/resctrl/monitor.c > @@ -30,15 +30,15 @@ struct rmid_entry { > struct list_head list; > }; > > -/** > - * @rmid_free_lru A least recently used list of free RMIDs > +/* > + * @rmid_free_lru - A least recently used list of free RMIDs > * These RMIDs are guaranteed to have an occupancy less than the > * threshold occupancy > */ > static LIST_HEAD(rmid_free_lru); > > -/** > - * @rmid_limbo_count count of currently unused but (potentially) > +/* > + * @rmid_limbo_count - count of currently unused but (potentially) > * dirty RMIDs. > * This counts RMIDs that no one is currently using but that > * may have a occupancy value > resctrl_rmid_realloc_threshold. User can > @@ -46,7 +46,7 @@ static LIST_HEAD(rmid_free_lru); > */ > static unsigned int rmid_limbo_count; > > -/** > +/* > * @rmid_entry - The entry in the limbo and free lists. > */ > static struct rmid_entry *rmid_ptrs; Thank you very much. I just have the comments regarding this area's customs. With that addressed: Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> Reinette
Hi Randy, On 10/9/2023 10:07 AM, Reinette Chatre wrote: > On 10/6/2023 4:51 PM, Randy Dunlap wrote: >> >> We don't have a syntax for documenting individual data items via >> kernel-doc, so remove the "/**" kernel-doc markers and add a hyphen >> for consistency. >> I've been thinking more about this change and I would also like to propose that you do not use "We" in the commit message. I understand that you are not impersonating code but I think it would be simpler to avoid any potential controversy by not using "We". Perhaps something like "There is no syntax for documenting ...". Reinette
On 10/9/23 10:07, Reinette Chatre wrote: > Hi Randy, > > Thank you very much for noticing the bug report and taking the time > to fix it. > > To match the custom of this area, could you please modify > the subject to be: > x86/resctrl: Fix kernel-doc warnings > > On 10/6/2023 4:51 PM, Randy Dunlap wrote: >> The kernel test robot reported kernel-doc warnings here: >> >> monitor.c:34: warning: Cannot understand * @rmid_free_lru A least recently used list of free RMIDs >> on line 34 - I thought it was a doc line >> monitor.c:41: warning: Cannot understand * @rmid_limbo_count count of currently unused but (potentially) >> on line 41 - I thought it was a doc line >> monitor.c:50: warning: Cannot understand * @rmid_entry - The entry in the limbo and free lists. >> on line 50 - I thought it was a doc line >> >> We don't have a syntax for documenting individual data items via >> kernel-doc, so remove the "/**" kernel-doc markers and add a hyphen >> for consistency. >> >> Fixes: 6a445edce657 ("x86/intel_rdt/cqm: Add RDT monitoring initialization") >> Fixes: 24247aeeabe9 ("x86/intel_rdt/cqm: Improve limbo list processing") >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >> Reported-by: kernel test robot <lkp@intel.com> > > Could you please swap the above two tags to follow the tag ordering > custom followed by the tip maintainers? For reference you can find the > details in section "Ordering of commit tags" of > Documentation/process/maintainer-tip.rst > > Also, below the "Link:" follows the "Cc:". > >> Link: https://lore.kernel.org/all/202310062356.lX3xpLP9-lkp@intel.com/ >> Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com> >> Cc: Tony Luck <tony.luck@intel.com> >> Cc: Thomas Gleixner <tglx@linutronix.de> >> Cc: Fenghua Yu <fenghua.yu@intel.com> >> Cc: Reinette Chatre <reinette.chatre@intel.com> >> Cc: Ingo Molnar <mingo@redhat.com> >> Cc: Borislav Petkov <bp@alien8.de> >> Cc: Dave Hansen <dave.hansen@linux.intel.com> >> Cc: x86@kernel.org >> --- >> Not using Closes: since this patch only addresses some of the issues >> reported. Hi Ingo, Since you have already committed this patch, how would you like to handle these requested changes? The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 025d5ac978cc3b47874cc1c03ab096a78b49f278 Gitweb: https://git.kernel.org/tip/025d5ac978cc3b47874cc1c03ab096a78b49f278 Author: Randy Dunlap <rdunlap@infradead.org> AuthorDate: Fri, 06 Oct 2023 16:51:32 -07:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Sun, 08 Oct 2023 11:45:16 +02:00 x86/resctrl: Fix kernel-doc warnings Thanks. > I am aware of these issues. The person working on this previously > seems to have moved on. I'll share this work with folks looking for > this type of opportunity and ensure that it is completed this time. > >> arch/x86/kernel/cpu/resctrl/monitor.c | 10 +++++----- >> 1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff -- a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c >> --- a/arch/x86/kernel/cpu/resctrl/monitor.c >> +++ b/arch/x86/kernel/cpu/resctrl/monitor.c >> @@ -30,15 +30,15 @@ struct rmid_entry { >> struct list_head list; >> }; >> >> -/** >> - * @rmid_free_lru A least recently used list of free RMIDs >> +/* >> + * @rmid_free_lru - A least recently used list of free RMIDs >> * These RMIDs are guaranteed to have an occupancy less than the >> * threshold occupancy >> */ >> static LIST_HEAD(rmid_free_lru); >> >> -/** >> - * @rmid_limbo_count count of currently unused but (potentially) >> +/* >> + * @rmid_limbo_count - count of currently unused but (potentially) >> * dirty RMIDs. >> * This counts RMIDs that no one is currently using but that >> * may have a occupancy value > resctrl_rmid_realloc_threshold. User can >> @@ -46,7 +46,7 @@ static LIST_HEAD(rmid_free_lru); >> */ >> static unsigned int rmid_limbo_count; >> >> -/** >> +/* >> * @rmid_entry - The entry in the limbo and free lists. >> */ >> static struct rmid_entry *rmid_ptrs; > > Thank you very much. > > I just have the comments regarding this area's customs. With that > addressed: > > Reviewed-by: Reinette Chatre <reinette.chatre@intel.com> > > Reinette
Hi Randy and Ingo, On 10/10/2023 8:17 AM, Randy Dunlap wrote: > > > On 10/9/23 10:07, Reinette Chatre wrote: >> Hi Randy, >> >> Thank you very much for noticing the bug report and taking the time >> to fix it. >> >> To match the custom of this area, could you please modify >> the subject to be: >> x86/resctrl: Fix kernel-doc warnings >> >> On 10/6/2023 4:51 PM, Randy Dunlap wrote: >>> The kernel test robot reported kernel-doc warnings here: >>> >>> monitor.c:34: warning: Cannot understand * @rmid_free_lru A least recently used list of free RMIDs >>> on line 34 - I thought it was a doc line >>> monitor.c:41: warning: Cannot understand * @rmid_limbo_count count of currently unused but (potentially) >>> on line 41 - I thought it was a doc line >>> monitor.c:50: warning: Cannot understand * @rmid_entry - The entry in the limbo and free lists. >>> on line 50 - I thought it was a doc line >>> >>> We don't have a syntax for documenting individual data items via >>> kernel-doc, so remove the "/**" kernel-doc markers and add a hyphen >>> for consistency. >>> >>> Fixes: 6a445edce657 ("x86/intel_rdt/cqm: Add RDT monitoring initialization") >>> Fixes: 24247aeeabe9 ("x86/intel_rdt/cqm: Improve limbo list processing") >>> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >>> Reported-by: kernel test robot <lkp@intel.com> >> >> Could you please swap the above two tags to follow the tag ordering >> custom followed by the tip maintainers? For reference you can find the >> details in section "Ordering of commit tags" of >> Documentation/process/maintainer-tip.rst >> >> Also, below the "Link:" follows the "Cc:". >> >>> Link: https://lore.kernel.org/all/202310062356.lX3xpLP9-lkp@intel.com/ >>> Cc: Vikas Shivappa <vikas.shivappa@linux.intel.com> >>> Cc: Tony Luck <tony.luck@intel.com> >>> Cc: Thomas Gleixner <tglx@linutronix.de> >>> Cc: Fenghua Yu <fenghua.yu@intel.com> >>> Cc: Reinette Chatre <reinette.chatre@intel.com> >>> Cc: Ingo Molnar <mingo@redhat.com> >>> Cc: Borislav Petkov <bp@alien8.de> >>> Cc: Dave Hansen <dave.hansen@linux.intel.com> >>> Cc: x86@kernel.org >>> --- >>> Not using Closes: since this patch only addresses some of the issues >>> reported. > > Hi Ingo, > > Since you have already committed this patch, how would you like to handle > these requested changes? > All my comments were related to my understanding of x86 customs with the goal to make it acceptable to x86 maintainers. The change itself is good. If this patch has already been merged by x86 maintainers then I surely will not object. Reinette
diff -- a/arch/x86/kernel/cpu/resctrl/monitor.c b/arch/x86/kernel/cpu/resctrl/monitor.c --- a/arch/x86/kernel/cpu/resctrl/monitor.c +++ b/arch/x86/kernel/cpu/resctrl/monitor.c @@ -30,15 +30,15 @@ struct rmid_entry { struct list_head list; }; -/** - * @rmid_free_lru A least recently used list of free RMIDs +/* + * @rmid_free_lru - A least recently used list of free RMIDs * These RMIDs are guaranteed to have an occupancy less than the * threshold occupancy */ static LIST_HEAD(rmid_free_lru); -/** - * @rmid_limbo_count count of currently unused but (potentially) +/* + * @rmid_limbo_count - count of currently unused but (potentially) * dirty RMIDs. * This counts RMIDs that no one is currently using but that * may have a occupancy value > resctrl_rmid_realloc_threshold. User can @@ -46,7 +46,7 @@ static LIST_HEAD(rmid_free_lru); */ static unsigned int rmid_limbo_count; -/** +/* * @rmid_entry - The entry in the limbo and free lists. */ static struct rmid_entry *rmid_ptrs;