Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3314841pxj; Mon, 14 Jun 2021 20:52:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG4jwSsQuIlWVbCsMFlB9K7He7qWOHNt3S0YH2lKQcAKl8CxM34usnEqHbpzAakq8Qlmoh X-Received: by 2002:a02:6f5e:: with SMTP id b30mr19952527jae.94.1623729159722; Mon, 14 Jun 2021 20:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623729159; cv=none; d=google.com; s=arc-20160816; b=ZY67lZdl/lr1WgfO4sUQPoHUZ0gaJdENTr6ilhHyzdNpTwk7ByClpuuf4woHaeXA3b p6QJ6soG9EtpPcZmuTz9Yeu44m20zJ7sOtCjznynsuNp9rM6XpGeiIsuTfil6GToWs4Z t4t7bb7wKvRg9VmMvuQDpkzXf53rKQyjTfBeIFSwuYe1CJ0e9ltLuYDF0hF3DLcu6/JS YKwKfQeGMsLpGaI7dQ55hCXcGGohCcxRBW7MTgwF+DkropzanXszLpR7caSgwRsiizKA BbSPY2ayo5l67pYr+sKWWgTnunUrnA1bsmg9BJu06yka90jhpLEdHvFZnDnlzWnEkdT8 2xzw== 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 :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=MIYEnOQ2KDg0bG72X2dMpCMVx47Doj5JnR7hMJYGJhU=; b=TNRN6XyJyoko31HfOqoPf/Pfhxiq+eV/6yeCW7VFzwWwgmchbFxQV+EXbEVgEwL2NV VP+TmLJ9qJ6vv/wUUgqMFvQCIG8vHBabqAImw3GZi+kXl22JzFs+4JQig21jyMhO7xnn Rt79AQFhOC2ul2hz7qrEzMjxZ1r5RDOUu/7BjGvu1ARjPbqN7xYtoYlf+8s1Zgg9NSah Q7nTHYUozcrWWH/Apa679ZyLhIiqCKBnA69p1lfdLhOkxVeF5XuGo9rzPC5ww6X0I8ig 8E3lQcjJdDUzKZh7N9+7JKiGbXYqcGDT3JCtqGVPSwxPc4OD+EEavnJEFGx1OifuhvVv allA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si17916119jak.4.2021.06.14.20.52.17; Mon, 14 Jun 2021 20:52:39 -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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbhFODwV (ORCPT + 99 others); Mon, 14 Jun 2021 23:52:21 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:10067 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230425AbhFODwV (ORCPT ); Mon, 14 Jun 2021 23:52:21 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G3vQd02WFzZf1J; Tue, 15 Jun 2021 11:47:21 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 11:50:01 +0800 Received: from [10.174.177.174] (10.174.177.174) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 15 Jun 2021 11:50:01 +0800 Subject: Re: [PATCH -next] ACPI: sysfs: fix doc warnings in device_sysfs.c To: "Rafael J. Wysocki" CC: "Rafael J. Wysocki" , Len Brown , "ACPI Devel Maling List" , Linux Kernel Mailing List , Wei Yongjun , "Yue Haibing" , , yu kuai References: <20210610113501.3439670-1-libaokun1@huawei.com> From: "libaokun (A)" Message-ID: <02304aec-c4d5-a9d8-ae8e-6803b6dee602@huawei.com> Date: Tue, 15 Jun 2021 11:50:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.177.174] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/6/14 23:26, Rafael J. Wysocki 写道: > 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. I didn't quite understand that variable. But I saw the same paramter in  'drivers/misc/mei/bus.c +1001' where has comments. So I copied that comments here.  997 /**  998  * mei_cl_device_uevent - me client bus uevent handler  999  * 1000  * @dev: device 1001  * @env: uevent kobject 1002  * 1003  * Return: 0 on success -ENOMEM on when add_uevent_var fails 1004  */ 1005 static int mei_cl_device_uevent(struct device *dev, struct kobj_uevent_env *env) Thank you for your advice. I'm about to send a patch v2 with the changes suggested by you. Best Regards. > >> * 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 >> > .