Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1107568rdb; Wed, 6 Dec 2023 08:46:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IEY2zrFuCYD9wzHbklHYPxmNMfJSqAZzZS/fZGTjVHG+/W7e3iuwuRRNYs6bbY+V0gROLsj X-Received: by 2002:a17:902:bc84:b0:1cc:4eb0:64cf with SMTP id bb4-20020a170902bc8400b001cc4eb064cfmr1098759plb.52.1701881192121; Wed, 06 Dec 2023 08:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701881192; cv=none; d=google.com; s=arc-20160816; b=oYB4kKQrcTh9g6iAB9tioFis8KRPe7vQ+j+lh5/N63+fOf0Ek9EPG3/8YIEBTudqvK LjblMWuY0CKEoIMaMBhV0Zv8xu0IvA004KsBG4hTa1lTVZxPtJjzHM3R7Qe4sMjQL3wu iunjaXFGErOV9E4PZ0/q1V9IDTpaKFDSAkS1vGh2fV5e5udt53twuEUMESm4JqeLaq7H T/4TZKa0SlIW2cRjYKkN1mL6KmjerYcctZtxeMZgMUDJ0Z0cO7ZJ7kYyXl89xZRqqrfz L8pvQHAVVvyYi+ofP5PYIwhVdRYdJAas+MDNm/mpt6g+KSWcf5GzHg3Wfw6ceXN9VdAA O59A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=s+0eyoF2IA7/iZzTtDBodGF4W/RxeJnnXr1f0bX3bC0=; fh=c5+GQ91u3JRR517bBBGKTync/hKvL/K+4U8gJ9WwRnQ=; b=LP/eNT1oezmhlEH4VAn8n0X/YrjLBeLViOQivIt76WkJMLXxMugg2PEy7LAigFp976 bhDRq/sqFyJggTWLCbmjnqqQOjVQ77bw3g3iqbcl9rygK3nudfctL6eaoOxI88+1RAX8 dz7a+QV+ygw042EOPv4UZ9+Z9qRtbUuHu+BZvdF2kqgfOLf12UjEe1BxYBeTU6+GZW9Z q7v1PcOD1CxCpfEM83Uo5p8KFTpnARZJNlEOnyy+SGToQOsUUw2XZCfZBmEjVhdkCwY8 vyU/JhjcWzyiJIIXhif+p6tgYObzOaqMkNcLZAAF8BsCaPKTJ2/TgowTaYQ12GYGe11B HBew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Fm6qLk5m; 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 z15-20020a1709027e8f00b001cfc048af27si39653pla.584.2023.12.06.08.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 08:46:32 -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=@infradead.org header.s=bombadil.20210309 header.b=Fm6qLk5m; 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 2435A82DC606; Wed, 6 Dec 2023 08:46:16 -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 S1378534AbjLFQp5 (ORCPT + 99 others); Wed, 6 Dec 2023 11:45:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378403AbjLFQp4 (ORCPT ); Wed, 6 Dec 2023 11:45:56 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0CDA1BD; Wed, 6 Dec 2023 08:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=s+0eyoF2IA7/iZzTtDBodGF4W/RxeJnnXr1f0bX3bC0=; b=Fm6qLk5mSRJ+EDcNikw8GwlHde gNdsq5LMcHSmlMx5drBt/xCoSJ58NDr9S/Cbkl/zyKj+ttMMJoL2PjZTugX7+MiH+RbNE/lDHxW4F 73OxKjWSEO/NAdi5QTDZ3kUsA3Ne7Qwtuapba4X+QA8b/8N8kEeJnD4MbleaUN3WflpK3/8QtWCS+ VGxM8y7cZE7P21AvbevWdrQThsNPsB4vw8O7aIN5/KMOHKn0fvkDoWK51lST/k/iM2hf11Pymw9Fe CQ01i1+MTnTx8aYcVQIfv7JXH05PhK9z8lTyARfLgrPv1YLsdqy//Ad8GDGQXqAVE4KC0vMMd2Ghv HLY1rYnQ==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rAv27-00AnaX-34; Wed, 06 Dec 2023 16:45:59 +0000 Message-ID: Date: Wed, 6 Dec 2023 08:45:59 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [ibm-acpi-devel] [PATCH] platform/x86: thinkpad_acpi: fix kernel-doc warnings Content-Language: en-US To: Mark Pearson , 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?= References: <20231206060144.8260-1-rdunlap@infradead.org> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 08:46:16 -0800 (PST) Hi Mark, On 12/6/23 07:30, Mark Pearson wrote: > 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 >> 'tpacpi_check_quirks' >> thinkpad_acpi.c:9307: warning: This comment starts with '/**', but >> isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst >> thinkpad_acpi.c:9307: warning: missing initial short description on >> 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ärvinen" >> 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 >> 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 > > Just being nosy - what does %0 do? > I assume it helps with the return value but was intrigued how it is used and where It causes the output to be formatted as a CONSTANT (probably monospaced font, but no guarantees on that). > >> 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? s/much/must/ > >> */ >> static unsigned long __init tpacpi_check_quirks( >> const struct tpacpi_quirk *qlist, >> @@ -9303,7 +9303,7 @@ static struct tpacpi_battery_driver_data >> >> /* ACPI helpers/functions/probes */ >> >> -/** >> +/* >> * 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 -- ~Randy