Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1783524pxk; Fri, 4 Sep 2020 20:43:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEbLUr1ELSTshoQ9VoTNzZhCH+S/I/11z3jCr3BDWyRtIJLR1ciYP5qwhLOAMooipgclMW X-Received: by 2002:a17:906:e08f:: with SMTP id gh15mr10505796ejb.443.1599277431344; Fri, 04 Sep 2020 20:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599277431; cv=none; d=google.com; s=arc-20160816; b=zLjI3LajBegsBeIukS9ON13xoEVmFwCdu9elI7qyvZwX0v4aNyfq1R8cUeZcnzeSmO HYFb7UhoXfee7IVwRvbeIVUYQbUwWDAvv6Nx+PIUgKUEMrmovE7s9Dbo6OVhs/Mzsz+Q TqU38C9X2N/Pn/GMRFSKH84OhmMpWYczB4kD96I8DyPsa6EkuTVu/En4axqcdxIUrXee D7JkdJCwDoytfsZpMxARFRPksaBVVxGwOOEDH/+oYjjNwd75VgKqG2QHTxWptY8EbI9K T2JCDzwYLiCVdrT2GFqXrtW191aXTDp+PCVaD+rmilZtMlJquvGF992uP/aHxme9V2GU lwOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=5EFqQtSppAnk4IUTWmaXJVQYaVpxzE7plISlrSDwbXs=; b=afRzweQ/gxxhgOV8xMyM8X4Fvj9LMY2Gy2lvA2yG0ZwEuXFNQ74ffE3Q9Gd/ucIINo TOJRlrEGJ1VMUapPvPdTtkP6xRQALOPAi1RyiYB8RygLwp7mmlTp+JSVe8+LtjqKJEkv JNNjxlZypdRsjRxGje81T2vJMXsaCK/5sY9bxnceGhzwc5rfSXq/PstAGubuVA+wmydn 9L+PvfC5+dhSVGcoxsxh4dMvEL+9ERbdLeFj4yDF01jn2cvw+/yyNRXPLihchtZgei4R 6CT4tQQ1PmopWUKPAE/nmbv78zziwaj7nKD5Evo2tzV/GQAcY+gpZeb93HIFjEVYIrSU v4Gg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zn8si6284177ejb.70.2020.09.04.20.43.08; Fri, 04 Sep 2020 20:43: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727954AbgIEDib (ORCPT + 99 others); Fri, 4 Sep 2020 23:38:31 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:10817 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726329AbgIEDia (ORCPT ); Fri, 4 Sep 2020 23:38:30 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A62FE94E9224D464644F; Sat, 5 Sep 2020 11:38:27 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Sat, 5 Sep 2020 11:38:19 +0800 From: Xiaofei Tan To: , , CC: , Xiaofei Tan Subject: [PATCH] fs: get rid of warnings when built with W=1 Date: Sat, 5 Sep 2020 11:37:08 +0800 Message-ID: <1599277028-12723-1-git-send-email-tanxiaofei@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are two warnings when built with W=1: fs/open.c:887: warning: Excess function parameter 'opened' description in 'finish_open' fs/open.c:929: warning: Excess function parameter 'cred' description in 'vfs_open' As there are two comments for deleted parameters, remove them. Signed-off-by: Xiaofei Tan --- fs/open.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/open.c b/fs/open.c index 9af548f..3f6df10 100644 --- a/fs/open.c +++ b/fs/open.c @@ -869,7 +869,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(). * @@ -923,7 +922,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.8.1