Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1109204rdb; Wed, 6 Dec 2023 08:49:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7JTaRNo988671i/AnBsPwVYskgqt/MCCbF89UM3fE58cFmKQsHSF45yiWcTWe4heNOeBW X-Received: by 2002:a05:6a20:261d:b0:18f:afc:4e03 with SMTP id i29-20020a056a20261d00b0018f0afc4e03mr688907pze.91.1701881369811; Wed, 06 Dec 2023 08:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701881369; cv=none; d=google.com; s=arc-20160816; b=maEQiq/dKa4xvW/tzFBno1I0wSSGIDmTARnVHOueYOAOkSvcWu39ydvNPbNtPFC2Qn bMUSja9Pr6MXbLleSNAJ2HDIa9fAyMrlzcBFp0aoGWH8ZyqKrJrgo6P7slf05J4UbWGg gGLjTvrXjlleZB1f3XTOsaL+S+RdVgM0/gqyt0il8gdZ6+Qz/kCRBR3p/ZL5LjOn55FE r+RRBG2Vp1t3FYZYXcOf3b1wh0UDAfIrQMbbNPDUTpOPNNPkZkcAfl2pwoIIVIa351Al 5mJuhuys77reQG2ZT3OTFNMe22vVqfcxXCXP8TbRHsVSgzAY89dJSJuYOsFM7J1OTwwZ Qclg== 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=7aSOj3X2VbHYlfk00jEHrfDd+wxD+4TJMdmEbRvMRgI=; fh=evt3ZqZtnXeT/kVtPSf+2aETWCWXh4kv7VZmwwfZyj0=; b=w6AilY6640HDOErt+65pk221gaMAWS1SN3gcHe3IrHGBKAg9II4vdgd5da6m5Xm8fn VdjwPhW1ZqDgohP4d8tGVL14yz6JyExDdI1icF0Bk92/e/dMLOX6Kel3GkffZy/jl4W+ Ah9MuzMxK6ZEN6AhrgLAK97Lo0q8hoim1zUqGY3yTom1agu1l6qonWC3rlUmXTppJnp3 DYIqPWBlIP2LnKerpmyo5eC03/nQCOWXZT3v68jfKK6G1wg+p/k6KponJ+iZSxYGW122 4aL/gF3MAe0LCnHUfgTrpkok5qR2vvm0150YhyzdS5e3WSYVMw9UfkchDZqc8smf8DKq DuGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=vbvt0mvF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=YkoQOY4r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id cm3-20020a056a020a0300b005be1e555473si154223pgb.574.2023.12.06.08.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 08:49:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@squebb.ca header.s=fm2 header.b=vbvt0mvF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=YkoQOY4r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 18F59808EDEE; Wed, 6 Dec 2023 08:49:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442602AbjLFQtI (ORCPT + 99 others); Wed, 6 Dec 2023 11:49:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379718AbjLFQtG (ORCPT ); Wed, 6 Dec 2023 11:49:06 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B24BFA; Wed, 6 Dec 2023 08:49:12 -0800 (PST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 06AB05C02A6; Wed, 6 Dec 2023 11:49:09 -0500 (EST) Received: from imap52 ([10.202.2.102]) by compute3.internal (MEProxy); Wed, 06 Dec 2023 11:49:09 -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= 1701881349; x=1701967749; bh=7aSOj3X2VbHYlfk00jEHrfDd+wxD+4TJMdm EbRvMRgI=; b=vbvt0mvFqhAdQ50sUdsgJxlqEus0ZX9rvJkQEVzN5690fPeDo6v wZ7maIKIbTvI+Pu7N2qcayfrQjG415Rudv71DXP8eZwXdDY9ea+O7CL5vGhdReef xd4sIaG48U0PvP9SYM1XH49B/ixAkpN1MxzSrR512gsy3PHJNc/9XuXRzGeWx/wj RDW/giPGaEKkcjkvN+xZU8Hi1+Y5Y5mxi1zUSKlWqAH0C/5wcLpbO4zvty043P8R qBKVc1JsoXwMXaiznhlo/pJm0IRZf4qpQ0LOXSSyWQc5UxNPP+kVkxJqwg1P4XvU hIF0yi+/KRpfqU95+RmnFUC5CPtieX+FPPA== 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= 1701881349; x=1701967749; bh=7aSOj3X2VbHYlfk00jEHrfDd+wxD+4TJMdm EbRvMRgI=; b=YkoQOY4rhF2/BK5kUSvkkjgZ3ul3mb1TNJUwCTQKbHkS+QvFDkx eJ8vkxQ6EQHTtpg+Z5ho29jKdtjcsgH6FuE5DOen7wn+80CYiJ/3NQTm/DGSMTfn 8Ehe+d3lCWz61O032jZkwHj8pyYDTkkpoa7hmK2/IMg2BpDlz7Zc6q/wk2TaWUxr 2HW9ts7hIGNFExRb1XKE93YKvlZpTxMDuaw9jRLej1PNpXnszX6IRlajop0sKCwD zXI215F72ybQ9mT5Ym1pGYkSScja69ONag/0gOtJqjG5+wwZlkTy6MhAhLn/wbvA ciLx2LznH+BfyRVLFYCo9TEHDVwTRSe44Fw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudektddgleeiucetufdoteggodetrfdotf 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 7AC07C6008B; Wed, 6 Dec 2023 11:49:08 -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: <90220e8f-12e1-4b76-a438-f333fdedce9e@app.fastmail.com> In-Reply-To: References: <20231206060144.8260-1-rdunlap@infradead.org> Date: Wed, 06 Dec 2023 11:48:44 -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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 08:49:26 -0800 (PST) On Wed, Dec 6, 2023, at 11:45 AM, Randy Dunlap wrote: > Hi Mark, > > On 12/6/23 07:30, Mark Pearson wrote: >> Hi Randy >>=20 >> 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= .rst >>> 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 fie= ld=20 >>=20 >> Just being nosy - what does %0 do? >> I assume it helps with the return value but was intrigued how it is u= sed and where > > It causes the output to be formatted as a CONSTANT (probably monospace= d font, > but no guarantees on that). Ah - cool. Thanks! > >>=20 >>> 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 miss= ing?=20 > > s/much/must/ Man....I need to go to the opticians :) > >>=20 >>> */ >>> 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 >>=20 >> Thanks >> Mark > > --=20 > ~Randy Looks good to me!=20 Reviewed-by: mpearson-lenovo@squebb.ca Mark