Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp482644pxj; Thu, 17 Jun 2021 07:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVUUHe/R6fBgRd7VwJ9QcdUFoqG+l3b/TPtdNM9+9/c2y5gjm09zLaSkpLu9dBRQ7TE95+ X-Received: by 2002:a05:6402:10cc:: with SMTP id p12mr6855222edu.328.1623939151195; Thu, 17 Jun 2021 07:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623939151; cv=none; d=google.com; s=arc-20160816; b=S2mNwFB97PS5obJAVZCHP06A8r52XXz+ws0JqxbC5UXLDvwWbUK7oKRAF8TKzyXqvi 1s66t+r2XVn4WWfgknchpj7Ai0lgBod4MwG7Hgsw7agNd1QIBpR8baOmyS8Kc4FkA753 hkzg61MFkky8OZjIf+fsHfDfThz0vs5w+EmWolKTATU2+sMZ34558KdOQI5qTUVkCg2G 1+pAxoxNgxN9BdjdCR82DqgADlIdsCkydRdpx4OUnHLiPyKYLGHBycm660y08/6i6ZiU qCRw8LU8WELHXeDXZ+S5kPqDJ8WV3K3KuyQOuiTxFvi4R+W9TWgT4fcOo6J9QzIWldKr 1b0A== 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=1P7DCEbYUAjtTldljPm4oIfHPTe0XBETAKyVyMmQZyw=; b=Ej6wgVb9w6xcSggQBCF/zZxcflfvda213+k0E7T7Z58HFOM3ZN9xal0IFRoq6wzFKN Mp88z48tyxclhEjF0BT0p6wrSWuygpHO8IUmKqmWopdy8YHdr1muYoVg9v89w80fv6aO uGqKr/zQtaCCEGWobq0ci75scK7dqoEK7T+Qwt/iwYHdvWWLCrPe1Zzc1MDm8LWeSBpt QwYAchnDp/ajBGpLLF5qpEUNstSB7J1VrXVj2e5kfRReJMRm12PIT6Z8O3hIId3r91Jn A8DPRC/aIj69Vv2tc/wS55jO8LLZiC7SsSK6VyO3BSJ/52BVYpuVpAqk4Xaw2k3/fu2r hChA== 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 gn42si6378914ejc.717.2021.06.17.07.12.07; Thu, 17 Jun 2021 07:12:31 -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 S232085AbhFQNAc (ORCPT + 99 others); Thu, 17 Jun 2021 09:00:32 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:7473 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbhFQNAb (ORCPT ); Thu, 17 Jun 2021 09:00:31 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G5MV425MJzZjKX; Thu, 17 Jun 2021 20:55:24 +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; Thu, 17 Jun 2021 20:58:19 +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; Thu, 17 Jun 2021 20:58:19 +0800 Subject: Re: [PATCH -next v2] 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: <20210615071914.3067407-1-libaokun1@huawei.com> From: "libaokun (A)" Message-ID: <6e737a9a-72e9-509c-faa5-85a9f89da9ab@huawei.com> Date: Thu, 17 Jun 2021 20:58:18 +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: dggems702-chm.china.huawei.com (10.3.19.179) 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 Thank you for your advice. I'll follow your advice strictly. Best Regards. 在 2021/6/17 20:34, Rafael J. Wysocki 写道: > 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! > .