Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp578461pxj; Thu, 17 Jun 2021 09:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+vNjGDfnAYg/Yx4b76EGX9kv3j3qKr6zTka8tYGjhebK6vCA3mNl4pPpj2WEfWFGJWoQ0 X-Received: by 2002:a05:6402:42cb:: with SMTP id i11mr7396593edc.242.1623945912259; Thu, 17 Jun 2021 09:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623945912; cv=none; d=google.com; s=arc-20160816; b=UZfET/tgurdUtfx1ITWQLLXLSWud02evP8fIqC0/VjAsQsBO60VjSJwNLmbXI1+VVm Y/dkc2sCoQj0t7jX94k8cxntjCibCvAfHfbAUosww+Yz6NhckpXrD3F/Bd9d8wPC1fGO 7RnvC5TNQLdXPdPtFo0IuuCZ/C/lhvzERk6ZMW4ZrdlWUhWYvLG584zTLn+CYODkY1zW M+4UQa5KGUeuc+BAoz8SWUqBoI5Tu4LN7wG89EiZfFV073xpqn2Adnt6MM5sbK7z9Vzk BwZZtHjXOpvG8E3tfbDSnCHyOrRyzzYhwiP6kYb20NOhsxpEu65MErs5hEmRvwxGMP8u 3n4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=hdjslE2NTbvCF99t6OexeD1cWf6uCdtibYwpPkNsfxk=; b=aC7el0ebJNI8uPtbVF/5DhSJfHDuVFxshEr6EHz5zjD4mbpMG+0+ssMMIDjKJJbIaX bGOQcmy7tZWjBbcQZG76D5iMBeSVIu3kK+j9cGAmCFUw3iuzRfLAzYYRa9QWiGhy1i1t qrJTYJ503Aq0RWsrOXX5cCXU/qggnyUikl/FfTu9lkrhIJ8syd6H/oeCHMDnAHgDSkJ4 ZxM4JG60Co/lTFTvfyfzKCYCU3lFeH36OliZRRxLxJ/ipgGOCVpvQptzpMElx6u+z2qs IhMun1epqj2WtK/48OFSx1JBJYriqCoRG3Q4ksdXW6Q+IdaJetzV3h9HdNKpyH9hO/Xz JGqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si6041706edr.557.2021.06.17.09.04.46; Thu, 17 Jun 2021 09:05:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbhFQMhE (ORCPT + 99 others); Thu, 17 Jun 2021 08:37:04 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]:36656 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229887AbhFQMhD (ORCPT ); Thu, 17 Jun 2021 08:37:03 -0400 Received: by mail-oi1-f178.google.com with SMTP id r16so6362230oiw.3; Thu, 17 Jun 2021 05:34:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hdjslE2NTbvCF99t6OexeD1cWf6uCdtibYwpPkNsfxk=; b=M390srI7G1/3Sd0lah956f8qqkVZeZGfC/2MXHAn+jfk4oKYbMX0Ndr/2Q7KeoQfSl 7rpONfJw+/jVStWI5BHF2TpV8pI1Y1RK45H0saU18wrmBJF5kpmYBhw9BRvSvmvnNsmb XJx/TfRGSRhqRPSlLueSltLOgVmnhFzuzA31R/jT9/AFth1dCJd4RRVUMe9igZKEfYbN EJ2Oh8BZL+5Y2YABRJGprMeDSlkkwGJuSN8ZqRDULG6Yz8mc1mdViVtM95QkYnbXdnvG /95k3wSlnef9OWI1brFZQMPyF0vhHGtyvQ02U+LmD3gDp1Iniz2nnEch7lFLeqcWzgqV Zl6g== X-Gm-Message-State: AOAM531AKFqUBAwlir9V7GVsyBBgjqqz3nw6dTKj1gpPu/f9h7AvgBLJ KGTZaK2AW+ZPTszZio61pIwwKPT0bCpkVEAV+Fc= X-Received: by 2002:aca:49c7:: with SMTP id w190mr10701974oia.157.1623933294840; Thu, 17 Jun 2021 05:34:54 -0700 (PDT) MIME-Version: 1.0 References: <20210615071914.3067407-1-libaokun1@huawei.com> In-Reply-To: <20210615071914.3067407-1-libaokun1@huawei.com> From: "Rafael J. Wysocki" Date: Thu, 17 Jun 2021 14:34:43 +0200 Message-ID: Subject: Re: [PATCH -next v2] ACPI: sysfs: fix doc warnings in device_sysfs.c To: Baokun Li Cc: "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , Wei Yongjun , Yue Haibing , yangjihong1@huawei.com, yu kuai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 15, 2021 at 9:10 AM Baokun Li wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/acpi/device_sysfs.c:278: warning: Function parameter or > member 'dev' not described in 'acpi_device_uevent_modalias' > drivers/acpi/device_sysfs.c:278: warning: Function parameter or > member 'env' not described in 'acpi_device_uevent_modalias' > drivers/acpi/device_sysfs.c:323: warning: Function parameter or > member 'dev' not described in 'acpi_device_modalias' > drivers/acpi/device_sysfs.c:323: warning: Function parameter or > member 'buf' not described in 'acpi_device_modalias' > drivers/acpi/device_sysfs.c:323: warning: Function parameter or > member 'size' not described in 'acpi_device_modalias' > > Signed-off-by: Baokun Li > --- > V1->V2: > Make comments more appropriate > > drivers/acpi/device_sysfs.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c > index a393e0e09381..d96e38b2a0d1 100644 > --- a/drivers/acpi/device_sysfs.c > +++ b/drivers/acpi/device_sysfs.c > @@ -268,6 +268,8 @@ int __acpi_device_uevent_modalias(struct acpi_device *adev, > > /** > * acpi_device_uevent_modalias - uevent modalias for ACPI-enumerated devices. > + * @dev: Struct device to get acpi device node. > + * @env: Environment variables of the kobject uevent. > * > * Create the uevent modalias field for ACPI-enumerated devices. > * > @@ -313,6 +315,9 @@ static int __acpi_device_modalias(struct acpi_device *adev, char *buf, int size) > > /** > * acpi_device_modalias - modalias sysfs attribute for ACPI-enumerated devices. > + * @dev: Struct device to get acpi device node. > + * @buf: The buffer to save pnp_modalias and of_modalias. > + * @size: Size of buffer. > * > * Create the modalias sysfs attribute for ACPI-enumerated devices. > * > -- Applied as 5.14 material with fixed spelling ("acpi" -> "ACPI"). Please always spell ACPI in capitals in comments, patch changelogs, subjects and similar. Thanks!