Message ID | 20231104034033.14926-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp1446975vqu; Fri, 3 Nov 2023 20:40:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEs4O091UirEcWgjw1baQz3TDfaQw8Zcn5V10P62JXY77GdEpRwy4+SuFFBDcibi6+3HPbm X-Received: by 2002:a17:90b:f06:b0:27d:694f:195d with SMTP id br6-20020a17090b0f0600b0027d694f195dmr22010530pjb.6.1699069241475; Fri, 03 Nov 2023 20:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1699069241; cv=none; d=google.com; s=arc-20160816; b=Oafjd3e/KuL57FOhrfCMeDlKjW6ZBhGcCoxS680aVmyvQFrBWwIRErsHb7PfMZtZOs nfYqV8oUmQF9uHoTOlew2u6NiyD2KI7/QTZF2OW2rpHV2/TtSoqeQ0MzRdaVLkDn6JLO F1ZVc18bd0sVaYGW/ldnBXO7tuy5WEdZBSmwviT9Ta4Du0k7Plt5lND9JjeVq9jGQwVU igCchMJx2lJzXNP66t1JGSwt/UW/6m9VedkZ0kseXnRoU7f5q0A17UEQXV5/31xURPV6 oTSFTzeINEuGQ8WVbKCI7qldfc2S2g2GZkHXwXuEFzYVnkm/h95WcSsodTacwanGKgGE BWcA== 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=U+9D1UD9cowPYuIICmEuA0h3GjH5Xsb90babyNblpd8=; fh=1CeEj1LWw6DIPEP4+Db81mTPzmAlBMMTDYM/b8lq+J4=; b=EMdmPzXayrfN3vruorJB81smtWEeRdP/2I/mzPwbWBg98cEKvo/q5imEqFvES+lnxn jJQtLqzd0A8I/YHSw2Kj/RwOmAFU+0fNiLnOrtL9NeVDn5KlV1BEAvhZT0YK/T6J1g9h NdRoJSuQs+1fIm7TlvOmlXdVHPUh3DIfAOELE9Hxaab8gjaUQKm+ReostGFUD7n4Y0FS cQPExcE12NqS4bJBAmDONUs2WtCLL3zkhgRDoUrrT9b33kzNXvq3bD9+vOA4UJi7/apG 26cmt3PB8/ZLhhpj2q7eZvzLi5Qx6QyEajj89KBPXlsgW0dqgPaWk4kpwfIxKhmsyX58 qGDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=o155olG8; 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 t18-20020a170902d15200b001c6223e5675si2691066plt.188.2023.11.03.20.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 20:40:41 -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=o155olG8; 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 282CC80EE0F1; Fri, 3 Nov 2023 20:40:40 -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 S231475AbjKDDkj (ORCPT <rfc822;lhua1029@gmail.com> + 35 others); Fri, 3 Nov 2023 23:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjKDDkg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Nov 2023 23:40:36 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58B62BF; Fri, 3 Nov 2023 20:40: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=U+9D1UD9cowPYuIICmEuA0h3GjH5Xsb90babyNblpd8=; b=o155olG8sm8yhfnbz+GMwiRvKK f/1s4DlOyjhKgr6l9y+Gb51R+W4Yn6/JyW+7Z4cKsVmacdl+PB+XnsCrM8cWzb9HsDEb59izObFsf i1krlaXvpPG8DFCv31d1GB0CytF0WeLbZJSWNr5qAfwHHUp+RjvLIH7KPflqtOtnWjRaUn1smmoWF EDqzGqJue8NCbwKILNO1sHV+0KTePiI0YcXqkRmXUmo8ZXBJuRwUbtVU2FNijSCFc8ra7zW/2+8ox 9Dp2Zrz5Ycq+Z9Ymw2m4eueWQQFuTSGWJ5zOLkKzfYLEtrezrSmq5wpylGYIoWEIwWySzNkf69YdD Z9MgMP9Q==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qz7WT-00CZjk-1x; Sat, 04 Nov 2023 03:40:33 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Kevin Hilman <khilman@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>, linux-pm@vger.kernel.org Subject: [PATCH] PM: domains: fix inappropriate use of kernel-doc Date: Fri, 3 Nov 2023 20:40:33 -0700 Message-ID: <20231104034033.14926-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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 03 Nov 2023 20:40:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781603228866692521 X-GMAIL-MSGID: 1781603228866692521 |
Series |
PM: domains: fix inappropriate use of kernel-doc
|
|
Commit Message
Randy Dunlap
Nov. 4, 2023, 3:40 a.m. UTC
There is no mechanism for using kernel-doc notation on a data item
(only struct/union/enum definitions, functions, and function-like
macros), so convert the "/**" notation to C comment "/*" notation
to avoid a kernel-doc warning:
drivers/base/power/domain_governor.c:412: warning: cannot understand function prototype: 'struct dev_power_governor pm_domain_always_on_gov = '
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Kevin Hilman <khilman@kernel.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-pm@vger.kernel.org
---
drivers/base/power/domain_governor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Sat, 4 Nov 2023 at 04:40, Randy Dunlap <rdunlap@infradead.org> wrote: > > There is no mechanism for using kernel-doc notation on a data item > (only struct/union/enum definitions, functions, and function-like > macros), so convert the "/**" notation to C comment "/*" notation > to avoid a kernel-doc warning: > > drivers/base/power/domain_governor.c:412: warning: cannot understand function prototype: 'struct dev_power_governor pm_domain_always_on_gov = ' > > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: "Rafael J. Wysocki" <rafael@kernel.org> > Cc: Kevin Hilman <khilman@kernel.org> > Cc: Ulf Hansson <ulf.hansson@linaro.org> > Cc: linux-pm@vger.kernel.org > --- > drivers/base/power/domain_governor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff -- a/drivers/base/power/domain_governor.c b/drivers/base/power/domain_governor.c > --- a/drivers/base/power/domain_governor.c > +++ b/drivers/base/power/domain_governor.c > @@ -406,7 +406,7 @@ struct dev_power_governor simple_qos_gov > .power_down_ok = default_power_down_ok, > }; > > -/** > +/* > * pm_genpd_gov_always_on - A governor implementing an always-on policy > */ While at it, may I suggest that we instead just drop the function description altogether. It's not really adding something useful that is not already understandable by looking at the code below, I think. > struct dev_power_governor pm_domain_always_on_gov = { Kind regards Uffe
diff -- a/drivers/base/power/domain_governor.c b/drivers/base/power/domain_governor.c --- a/drivers/base/power/domain_governor.c +++ b/drivers/base/power/domain_governor.c @@ -406,7 +406,7 @@ struct dev_power_governor simple_qos_gov .power_down_ok = default_power_down_ok, }; -/** +/* * pm_genpd_gov_always_on - A governor implementing an always-on policy */ struct dev_power_governor pm_domain_always_on_gov = {