Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1056304rdb; Wed, 6 Dec 2023 07:30:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFc2B3njpSB1kTpkDVvSbyLyvSxGc+UG13QNDkwDc3U2xi3JmIg9lLvyL9Onm/DU81s+sSe X-Received: by 2002:a05:6e02:1ba4:b0:35d:62f2:1f45 with SMTP id n4-20020a056e021ba400b0035d62f21f45mr1570197ili.20.1701876639686; Wed, 06 Dec 2023 07:30:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701876639; cv=none; d=google.com; s=arc-20160816; b=p1LMLw9bocv2+h1XlhCwLbfecR37/cvKcYnS1foZgFmzcaW9DqEFb4kAmJAONwfSJ2 /WEqpc8fKApWJ4pQk+FQL6rz68mKKHJUlyma9lpOi/nNJRSfhMkCk1NnehRujFn1QLCb ucw1l2pxoM4tSAhmQeBjtBifbIU7avTauzmHZoPiGTXPxwJKrtU1PXlTJIvzOUXKN9Dp RMR47szaNRCmstIm2bTuuW6ipD6up9mHeErIkNdBylu3jSQW4uOg8mucQvexiX7jAGEF PK8CZ4zFafxZrV6LO93a2250Y2oeRCPmE9aUCRqM1n5WKV+ZBCaKWXaUjUjUdEOwTWM0 Lenw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=80e+XLcHO99ogy+giG09/e8EEtyWh91qVmx7XJKBeOk=; fh=evt3ZqZtnXeT/kVtPSf+2aETWCWXh4kv7VZmwwfZyj0=; b=VmCVs6iOsDNC23U4m3ng/lmi3Wid5Bib1oBf6cYPc9wfqfSSrv58mi1k0W7m0NIvWn m5G9UUs91JjWUMcodTkiN9wDix64GQFvd7GeUlr1DbmgQhUlquNn0+wXV74trifYK+jA cE6UTv/zAfemJucyWidVwnFy8Lz5fkUEHbLLOLiKyct5ORZxdbEbBd7+ucUyq/T43uCy Gqp0Kmlc37B2kAT5784Y38E0PL/BlsSBG1AI/XSdg5KgEs82x3OYfEcZFMYaZsOrEPwR L2rhgo4AdDgcWj+m9uSjrME60IlnPHhdS0CRAyh5gby+P1XtuKOCRrHyTrqtQHZfblDN fwvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=DbfQ5TQM; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MguKT8A0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id u16-20020a656710000000b005c1faa82bfesi52110pgf.857.2023.12.06.07.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:30:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=DbfQ5TQM; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=MguKT8A0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 4DFB9833CE25; Wed, 6 Dec 2023 07:30:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379179AbjLFPaV (ORCPT + 99 others); Wed, 6 Dec 2023 10:30:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379147AbjLFPaT (ORCPT ); Wed, 6 Dec 2023 10:30:19 -0500 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCCD08F; Wed, 6 Dec 2023 07:30:25 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 3E3B75C02E1; Wed, 6 Dec 2023 10:30:25 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute3.internal (MEProxy); Wed, 06 Dec 2023 10:30:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=squebb.ca; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1701876625; x=1701963025; bh=80e+XLcHO99ogy+giG09/e8EEtyWh91qVmx 7XJKBeOk=; b=DbfQ5TQMeaGQdvdtC9sqCqYix0G8ohyuf7ANxIXcMdNyvbMFJyk a/g+1LPluFgmf6zZzQqOhNGUeqcr+OP9/vzu/6GPfR0SK+xgk34k62fNnJLppBJp c2JlPx9lB4FmcIKH/5zksu4z32QmwkR2+ix8mpWhoOZA8xyQ+h8XRXy8DqWpkc9f cTPXCcrkFf4HsVIs9nw9MIVaTNvL3roZgu41ccUQS+uZ6ur8wAvL40tmoHTU37Fr 95XMYtVNBk6zyyNAHevubF8NQlslt54hQPJUgSSGmq4NW1lRjuusc+bUxdbas23M vr/QTc0DhTi88MKaLCDqTJ0ZST58XOs4rhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1701876625; x=1701963025; bh=80e+XLcHO99ogy+giG09/e8EEtyWh91qVmx 7XJKBeOk=; b=MguKT8A09cpa9LzwSF5zP2Kag6PENk3WgpBA3J5D+Qbs87ESgdX uvJ+TXk0T0FpMqf6sR9htDHnOajGFeJMDpgy3tngNrd12/V0SxkUQ7AQmBN/wL8R c/sIuQtqPSp3WniqLXn9K6SVsvB3vufmJdjH23EhYuDtII+bRYHVr9gob9W50o2z +yNhxipiYbmg0+6+JBpPGAa9Bh9y7LY7bxfQ6NiNSoos1oH6jXpZYYOpPWxxTX0P tsPUQHwEJhSqiFZr7ZcMIUhO1/SAZ6nhHSwfxuQBGPhJPXJGgf8rbw+b2mtJDoT0 1vuX7DRrrvmC29v0xPUJlMRIYZbcAsIfueg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudektddgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goufhushhpvggtthffohhmrghinhculdegledmnecujfgurhepofgfggfkjghffffhvfev ufgtgfesthhqredtreerjeenucfhrhhomhepfdforghrkhcurfgvrghrshhonhdfuceomh hpvggrrhhsohhnqdhlvghnohhvohesshhquhgvsggsrdgtrgeqnecuggftrfgrthhtvghr nhepieeltdeihefgfeeihedvgedtueeuieefvddtteetffejvefgieeghfeiheeilefgne cuffhomhgrihhnpehsohhurhgtvghfohhrghgvrdhnvghtnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhpvggrrhhsohhnqdhlvghnohhvoh esshhquhgvsggsrdgtrg X-ME-Proxy: Feedback-ID: ibe194615:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B589EC6008B; Wed, 6 Dec 2023 10:30:23 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1178-geeaf0069a7-fm-20231114.001-geeaf0069 MIME-Version: 1.0 Message-Id: In-Reply-To: <20231206060144.8260-1-rdunlap@infradead.org> References: <20231206060144.8260-1-rdunlap@infradead.org> Date: Wed, 06 Dec 2023 10:30:03 -0500 From: "Mark Pearson" To: "Randy Dunlap" , linux-kernel@vger.kernel.org Cc: ibm-acpi-devel@lists.sourceforge.net, "platform-driver-x86@vger.kernel.org" , "Hans de Goede" , "Henrique de Moraes Holschuh" , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= Subject: Re: [ibm-acpi-devel] [PATCH] platform/x86: thinkpad_acpi: fix kernel-doc warnings Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 06 Dec 2023 07:30:36 -0800 (PST) Hi Randy On Wed, Dec 6, 2023, at 1:01 AM, Randy Dunlap wrote: > Add a function's return description and don't misuse "/**" for > non-kernel-doc comments to prevent warnings from scripts/kernel-doc. > > thinkpad_acpi.c:523: warning: No description found for return value of=20 > 'tpacpi_check_quirks' > thinkpad_acpi.c:9307: warning: This comment starts with '/**', but=20 > isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.r= st > thinkpad_acpi.c:9307: warning: missing initial short description on=20 > line: > * This evaluates a ACPI method call specific to the battery > > Signed-off-by: Randy Dunlap > Cc: Henrique de Moraes Holschuh > Cc: Hans de Goede > Cc: "Ilpo J=C3=A4rvinen" > CC: ibm-acpi-devel@lists.sourceforge.net > CC: platform-driver-x86@vger.kernel.org > --- > drivers/platform/x86/thinkpad_acpi.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff -- a/drivers/platform/x86/thinkpad_acpi.c=20 > b/drivers/platform/x86/thinkpad_acpi.c > --- a/drivers/platform/x86/thinkpad_acpi.c > +++ b/drivers/platform/x86/thinkpad_acpi.c > @@ -512,10 +512,10 @@ struct tpacpi_quirk { > * Iterates over a quirks list until one is found that matches the > * ThinkPad's vendor, BIOS and EC model. > * > - * Returns 0 if nothing matches, otherwise returns the quirks field of > + * Returns: %0 if nothing matches, otherwise returns the quirks field=20 Just being nosy - what does %0 do? I assume it helps with the return value but was intrigued how it is used= and where > of > * the matching &struct tpacpi_quirk entry. > * > - * The match criteria is: vendor, ec and bios much match. > + * The match criteria is: vendor, ec and bios must match. I can't for the life of me see what is different here. What am I missing= ?=20 > */ > static unsigned long __init tpacpi_check_quirks( > const struct tpacpi_quirk *qlist, > @@ -9303,7 +9303,7 @@ static struct tpacpi_battery_driver_data >=20 > /* ACPI helpers/functions/probes */ >=20 > -/** > +/* > * This evaluates a ACPI method call specific to the battery > * ACPI extension. The specifics are that an error is marked > * in the 32rd bit of the response, so we just check that here. > > > _______________________________________________ > ibm-acpi-devel mailing list > ibm-acpi-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel Thanks Mark