Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E6B5C433FE for ; Tue, 8 Nov 2022 01:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232619AbiKHBSm (ORCPT ); Mon, 7 Nov 2022 20:18:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232075AbiKHBSl (ORCPT ); Mon, 7 Nov 2022 20:18:41 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1339313F69 for ; Mon, 7 Nov 2022 17:18:39 -0800 (PST) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4N5qx10rhBzRp6j; Tue, 8 Nov 2022 09:18:29 +0800 (CST) Received: from dggpemm500002.china.huawei.com (7.185.36.229) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 8 Nov 2022 09:18:23 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500002.china.huawei.com (7.185.36.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 8 Nov 2022 09:18:23 +0800 From: Xiongfeng Wang To: , , , CC: , , Subject: [PATCH] open: fix finish_open() and vfs_open() kernel-doc comment Date: Tue, 8 Nov 2022 09:37:08 +0800 Message-ID: <20221108013708.65767-1-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500002.china.huawei.com (7.185.36.229) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org commit be12af3ef5e6 ("getting rid of 'opened' argument of ->atomic_open() - part 1") remove the last parameter 'opened' but forgot update the kernel-doc. So is the commit ae2bb293a3e8 ("get rid of cred argument of vfs_open() and do_dentry_open()"). Let's remove the redundant parameter description. Fixes: be12af3ef5e6 ("getting rid of 'opened' argument of ->atomic_open() - part 1") Fixes: ae2bb293a3e8 ("get rid of cred argument of vfs_open() and do_dentry_open()") Signed-off-by: Xiongfeng Wang --- fs/open.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index a81319b6177f..d35965434f70 100644 --- a/fs/open.c +++ b/fs/open.c @@ -951,7 +951,6 @@ static int do_dentry_open(struct file *f, * @file: file pointer * @dentry: pointer to dentry * @open: open callback - * @opened: state of open * * This can be used to finish opening a file passed to i_op->atomic_open(). * @@ -1005,7 +1004,6 @@ EXPORT_SYMBOL(file_path); * vfs_open - open the file at the given path * @path: path to open * @file: newly allocated file with f_flag initialized - * @cred: credentials to use */ int vfs_open(const struct path *path, struct file *file) { -- 2.20.1