Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp430132pxj; Thu, 10 Jun 2021 04:27:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsmO9fwPFKw6TL/umZ5f9WxyVUCsIz0LjZfLQ6Bqa19F1gmng+Hjszka5An+9/AfKpEIwA X-Received: by 2002:a17:907:e8d:: with SMTP id ho13mr4020717ejc.387.1623324471147; Thu, 10 Jun 2021 04:27:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623324471; cv=none; d=google.com; s=arc-20160816; b=Kc4qeQLRTGyRhviLdDj2JqgT7gP6UTOyX5i7YyNr3nVi7/VVN0kEOeq2HAcQSwryyE GP0JNbgxvjmuTsR6y82umB5GhSeMbAhjDZZVbM4lQQOjpFfIXUDLZj3ETr78TaI0B3Bn 5b2LGRYtG+suftljZ1kMDANX8l9aFV1NAOQvgqh4W1wGGkRpZ2A+UYEs/9PvN9Z6fjWI a3sg564H/lLMMl5GCm+9lG0X9nhDhjaZSYRMY76t8ALaSBQpWRZm8b0CQ/ZVqLU1A3D5 zska94Q6YIiRkzMS2KtLmxYkzRe/2mkyfDoxpUUIXDoZVEEEkS05VdISmifV0cKtTzCy 5BGw== 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; bh=6cwncTM/X/1Hl4fxsaFyNY0dKCAnlImE3c5WvkfbnIo=; b=cNTSoGPNf2yH6Qn+GluDNlPbJ/7VakFAdP1G+Cv/JZesw9y1tIJwZ1oV++sEY8SWUm PNjbzDpxX11o0MKg5ftskiWeN8PhdyCzI2wsw3v7nf0Nb0Et3FNyoimG2IhyWP6f86Ot 0TxkrFEozDQiBd6RyVUX03oO5ZK7FnZH7MbLFPZ4MrIjRX+OkJBPKNNX6jtVDXuwqrTr ZTcz8v3grqP8TTpzzmu5QTFgIK5zTCmJzfIYsz6TKbX986JRyblpi+wSkrDTSgfJmbPD D8XruDltOREJT1/HE2jHIeFZ9sk2gW1sFPk0BuuJTF4oKaoR/p2CCm1vdBdWXhGGkmgu qUbA== 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 m7si1808188edd.133.2021.06.10.04.27.26; Thu, 10 Jun 2021 04:27:51 -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 S230113AbhFJL1w (ORCPT + 99 others); Thu, 10 Jun 2021 07:27:52 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:5372 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbhFJL1w (ORCPT ); Thu, 10 Jun 2021 07:27:52 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4G11lY3RS1z6vFr; Thu, 10 Jun 2021 19:22:01 +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, 10 Jun 2021 19:25:54 +0800 Received: from huawei.com (10.175.127.227) 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, 10 Jun 2021 19:25:53 +0800 From: Baokun Li To: , , , CC: , , , , Subject: [PATCH -next] ACPI: sysfs: fix doc warnings in device_sysfs.c Date: Thu, 10 Jun 2021 19:35:01 +0800 Message-ID: <20210610113501.3439670-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 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. * 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