Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp768443rdb; Tue, 5 Dec 2023 22:02:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrxEQCQnpmIWz153J290+1iiDn5tipDYfH/fehqX4WQwSBZdU+6rh9kqTh6Wh9QKoXXfMn X-Received: by 2002:a05:6a20:54a6:b0:18f:97c:6144 with SMTP id i38-20020a056a2054a600b0018f097c6144mr467307pzk.65.1701842521271; Tue, 05 Dec 2023 22:02:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701842521; cv=none; d=google.com; s=arc-20160816; b=eENoZ6YCCgdqBHvjBlp5XwAhQO5a3/pIl1QAFIIFft2G3+dGFBbZDQioMZS8PIq/ZK SCVAr9GInWVsa5yxWgyR2w5Mf/cBRb5Rv+XAkvoh1Xgp+vy+Luh2HZCzySIP5uVgLvYJ M308xOI8ZFzlGyoD8r9gzS4Ofox9eKbFdRKGJDVIX9Onv5hZ0nqDiGjjKBghOMJspSUl SzRmsBrwI4ooPSETSjqqsv2AyXFdID3ICJ9PO9JYyXjinmZq4g0jKfis/h0azfP0Mzk/ zWm8TtRcuDEeKk+Wk7lcM5aktOIiAEzK3sLpsoW1foWkRLbLwCZIfhZTK4pX7tG7FiAa rlvw== 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=P8Ri5BuO2beZsqvWzjOyFCIGgTJgQtvxQqM7x0tBVTQ=; fh=HMM19/uElWrrWx775TSmzJtCesVWpxkFNRBy0/G/fiA=; b=RmQexZ8hH7k+L6PXz++gcF/PIIr5Xh59OwDEj3+zfQVD5g8/z/KNZdi5hpnvnHEq30 PJRtJeCQhE7O7oeRuASDUtbCSOCZA7pHr2oVAgqAkqjIVYOq4DNvFg6rbTJvS+Xamw/9 zkBdqeBogMt4z5RwpuvxJO53fEyfD9XoEBjgbWiF5Iy2hHFnqD/PVwIYAMjtipVCI3ZZ wv3ycncSozEdo0+pJDbgo0SqdGHCrZYmCNf1fNb9wq89ELC2EHtt38qgBItwSXRTaw3+ 3F5FT9tZpA5DAydmkhXqPRIy6uZuYPAYToq7wNV2OZ9b5GclwFxhE+/0dbnmBhNKdEfj XqGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="sgPl/KKT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id jb12-20020a170903258c00b001d07b6a0ae9si6159161plb.203.2023.12.05.22.02.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 22:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="sgPl/KKT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 45C68805B2E4; Tue, 5 Dec 2023 22:01:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376871AbjLFGBl (ORCPT + 99 others); Wed, 6 Dec 2023 01:01:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376867AbjLFGBj (ORCPT ); Wed, 6 Dec 2023 01:01:39 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0555918F; Tue, 5 Dec 2023 22:01:46 -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:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=P8Ri5BuO2beZsqvWzjOyFCIGgTJgQtvxQqM7x0tBVTQ=; b=sgPl/KKTIgdUP1+4pbSQbWO1+W gkl8XSm1+BQNzWPCudS7OmqaD2Q2AVTKAH+9B29dqgXkJfwKsrqE9SEpWsxxgkBBeG9tbNIMy+Lnp ONn8FUk88oBiwE69CUWtTgva7ki2zfyLIUw0AynHmGPe7yQfvHlz9//D6JKzTMfTC6BTOai5HwvgG /+HXYsDDox8/EY4Ey1512snlC327mNLvhiP+XeD5tJwHLya6sP5gfuqrBVD3CPaaRxX7rpeZijQ2B ++f0uq3f+Z/ePPfAnJHuvnmDjnlF0uiVtkm4trKQ0EvBR9nNDBoX7xXTyhmeJeammcTNZ6M2a6bhk 0Mbfr2lg==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rAkyf-0099Gc-1Y; Wed, 06 Dec 2023 06:01:45 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Henrique de Moraes Holschuh , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org Subject: [PATCH] platform/x86: thinkpad_acpi: fix kernel-doc warnings Date: Tue, 5 Dec 2023 22:01:43 -0800 Message-ID: <20231206060144.8260-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 05 Dec 2023 22:01:58 -0800 (PST) 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 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. */ 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.