Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3736303pxj; Mon, 7 Jun 2021 19:36:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0mCOWCdjdyjq4jwYjBFUSOkN1rGevD54B8i2H42cgoG4lF97/F8tTRKNEEF9nQdQwpDcW X-Received: by 2002:aa7:cb92:: with SMTP id r18mr23607815edt.246.1623119813176; Mon, 07 Jun 2021 19:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623119813; cv=none; d=google.com; s=arc-20160816; b=IGG+8PLa0LX3Bg5o70eFh0inb8EGGX7oxYZwkXA7gQhNqX6iUTAn6GgqAsCV268VVh mdlynypc3L2cbjBgtJntKbbGYIEaPH/T10+8h2FxXQMbYfTJNPxPOzn/51fpaWxbj20h ASZ+UMchRjNoC37IFd9+xhCT1DiZklKA3UymRsayLBmu620jfOvPcaTJO+UTZiUK2f5r a6ymK2r1/MjU5dbeMwyVYCLHUWe0rhe/ZzK6BVasdhauKS9uZRkkkDeFIuhgzR0gXYuS iwQkK7p8IhSltHwJQwHTK9yJzASzSVKGGz16tLYV1Q4IlVPzFgsImqP/+EGjv3L/zNbr 9LNg== 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=s3SfOPoEdRrZRoT5cvrj6lX5/FbMefCnNuPgz7M1eUs=; b=xf56mxqwCKPFcxlZp7MylMF49U5IYdBphkcBN8s0l01qFRUAal11bGM8Euhxw1CLzs /WrlIPj0ADEi8koeVKtBd8OL9pCX7v/1cDCpPP583ATZ06ql1LI6qOnWp7nD7YnVgsyP IUp84g+lHRDrkQPW0THveJJevjwWTnfI4qKgPWIzR31BMqvox2W/6rEYkNsyXlL9CGBM NKoZ7JNIkksmj5VelMme4i8QD2kLZNDQhTzwSs57BQ2yrU5Pwyhxi4t9T8HCIPqgtkoX 3VSkGTYMtSX8E/7pwpqq8ZqbCJEpCB3NRJAJQC/uaAjCrP2vo0iqc8EOOPCj/MB9L7bp P61Q== 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 t14si14343948edq.26.2021.06.07.19.36.30; Mon, 07 Jun 2021 19:36:53 -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 S230329AbhFHChI (ORCPT + 99 others); Mon, 7 Jun 2021 22:37:08 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3091 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230269AbhFHChH (ORCPT ); Mon, 7 Jun 2021 22:37:07 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FzZ332D1PzWtjf; Tue, 8 Jun 2021 10:30:23 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 8 Jun 2021 10:35:12 +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; Tue, 8 Jun 2021 10:35:12 +0800 From: Baokun Li To: , , CC: , , , , Subject: [PATCH -next] fs/file: fix doc warnings in file.c Date: Tue, 8 Jun 2021 10:44:22 +0800 Message-ID: <20210608024422.2752247-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: dggems706-chm.china.huawei.com (10.3.19.183) 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): fs/file.c:655: warning: Function parameter or member 'fdt' not described in 'last_fd' fs/file.c:655: warning: Excess function parameter 'cur_fds' description in 'last_fd' fs/file.c:703: warning: Function parameter or member 'flags' not described in '__close_range' Signed-off-by: Baokun Li --- fs/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/file.c b/fs/file.c index d8afa8266859..c6d99c875dea 100644 --- a/fs/file.c +++ b/fs/file.c @@ -645,7 +645,7 @@ EXPORT_SYMBOL(close_fd); /* for ksys_close() */ /** * last_fd - return last valid index into fd table - * @cur_fds: files struct + * @fdt: fdtable struct * * Context: Either rcu read lock or files_lock must be held. * @@ -695,7 +695,7 @@ static inline void __range_close(struct files_struct *cur_fds, unsigned int fd, * * @fd: starting file descriptor to close * @max_fd: last file descriptor to close - * + * @flags: flags of starting file * This closes a range of file descriptors. All file descriptors * from @fd up to and including @max_fd are closed. */ -- 2.31.1