Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2849265pxj; Mon, 14 Jun 2021 08:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9uK6t0MXcBIwll1fcchUwOofboHcA3BfNDKXv5AoBTWCk75IOVVn81brz41jaV0ol0ttp X-Received: by 2002:a17:907:948c:: with SMTP id dm12mr15881495ejc.484.1623684704625; Mon, 14 Jun 2021 08:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623684704; cv=none; d=google.com; s=arc-20160816; b=pEtxdOoeF1PAUFqbRxyQHcX6ACPLEC4ohRd/QQtSV8yw87VfzrYddu+gxlBRTPCuEb 6TWF/g+ICeNVhz3LfPj5poEbtHZUiGj0cqv/YSxbvRwWdTzxTAurLf0H+Ex54Sitvvk5 0KwSaZ2vEyWu8XwhHXzxWSu2YhE0yc9fHkbjfC4/8A7CeLnYcEA5XP4ks6LmF9p++2mS JPrVl+Trmd/NAwAYbr+3swAK+o4Ir2fyOp8mhiXESKz43A+9+A53VcMvOkrJWHfAEVxa xSYLX6l2Wg3FyKTyl8ANhDnzAam2JmWaPbywqnZ6KNNLFRTXSMGwzp5oRHjSo1vG9ovZ sHMg== 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=0sSq9ybaXLzcEnLmrkiwounRgSaQeLjSaCKta1cywKc=; b=v/3kP2H+Mrn0ufQ+jGV91PT/vkfBFE8uARU7lppgQfKDc63Lezu6v30dvrhoRrUyfa LNry52ZgsnORtGkU7oN8neLYkxnkAOWSzI+CrU1NbATijSrEZVyxwvlV3bK9T4uI4isW 6+MlrYNHlnPXn+GS5Z7xi94iXIQZUPRUxK+ZgcWgErr2ZVWZVMh03eGS7rLiTraG6q20 1wZYztdIQ20iboFe5PL7brq9nJPHqM+bi9ymoA5gUcF9sc/kdvLNixkmzutO4DBhMq88 jSJpCF6hQMBajBaRu4nZziu8FmUVXiqENosnZVKG8mDzD1jAQ6oQTixTtaE/x+OqYoxk 3XfQ== 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 t26si11603754edq.83.2021.06.14.08.31.22; Mon, 14 Jun 2021 08:31:44 -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 S234121AbhFNP3i (ORCPT + 99 others); Mon, 14 Jun 2021 11:29:38 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:39446 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232951AbhFNP2r (ORCPT ); Mon, 14 Jun 2021 11:28:47 -0400 Received: by mail-oi1-f175.google.com with SMTP id m137so14775404oig.6; Mon, 14 Jun 2021 08:26:45 -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=0sSq9ybaXLzcEnLmrkiwounRgSaQeLjSaCKta1cywKc=; b=nhkROyZKIv46j5Hb7csZUn3JjBRYap22btsUFkO50IFH8tOK4rUVHDroE6XY43Vr7a pGQ+cPzItXDvw6COpxN1p0Lm7wRIWD9Dz/cLEyRsqhFGwj++YGsmFoPz1XMUmtPPIqN+ ubVqZ1T9AajIgrDequosKwh81TanPGrU7Nk2qptFwRGYE0Txn3/b3yXJB477AAGo9doU tQyYtMAQqgOKDA0io+xhSADFLqw6IRcv+Y79Wgia6JhjnoJWdHE8Mt8j8ZW+QSC35lNJ 90ffyfgTHhTOm6sooNURVBi84rIiNNiqCoku/6VaEx4fRGN/lkyNFGgF7MQ4IoA8D+1a JxOw== X-Gm-Message-State: AOAM531+gzeclfxwiwdVKdYaeOGvgie2a57dyKzLk7bRadJ/Y3CfaqqI 5VGyFksj/La0w7P7KnR2VnxJ3UJFQRjnSW7VZSo= X-Received: by 2002:aca:49c7:: with SMTP id w190mr8999247oia.157.1623684404808; Mon, 14 Jun 2021 08:26:44 -0700 (PDT) MIME-Version: 1.0 References: <20210610113501.3439670-1-libaokun1@huawei.com> In-Reply-To: <20210610113501.3439670-1-libaokun1@huawei.com> From: "Rafael J. Wysocki" Date: Mon, 14 Jun 2021 17:26:33 +0200 Message-ID: Subject: Re: [PATCH -next] 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 Thu, Jun 10, 2021 at 1:25 PM 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 > --- > drivers/acpi/device_sysfs.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/acpi/device_sysfs.c b/drivers/acpi/device_sysfs.c > index fa2c1c93072c..3b08efa88ba5 100644 > --- a/drivers/acpi/device_sysfs.c > +++ b/drivers/acpi/device_sysfs.c > @@ -268,7 +268,8 @@ int __acpi_device_uevent_modalias(struct acpi_device *adev, > > /** > * acpi_device_uevent_modalias - uevent modalias for ACPI-enumerated devices. > - * > + * @dev: Struct device. > + * @env: Uevent kobject. This doesn't appear to be accurate. @env doesn't point to a kobject. > * Create the uevent modalias field for ACPI-enumerated devices. > * > * Because other buses do not support ACPI HIDs & CIDs, e.g. for a device with > @@ -313,7 +314,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. > + * @buf: The buffer. > + * @size: Size of the buffer. > * Create the modalias sysfs attribute for ACPI-enumerated devices. > * > * Because other buses do not support ACPI HIDs & CIDs, e.g. for a device with > -- > 2.31.1 >