From patchwork Tue Jun 8 02:45:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baokun Li X-Patchwork-Id: 12305121 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE078C47082 for ; Tue, 8 Jun 2021 02:36:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B2D8C60C41 for ; Tue, 8 Jun 2021 02:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbhFHCid (ORCPT ); Mon, 7 Jun 2021 22:38:33 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:8069 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbhFHCid (ORCPT ); Mon, 7 Jun 2021 22:38:33 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4FzZ730fx9zYsT3; Tue, 8 Jun 2021 10:33:51 +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:36:39 +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:36:39 +0800 From: Baokun Li To: , , CC: , , , , Subject: [PATCH -next] fs: fix doc warnings in ioctl.c Date: Tue, 8 Jun 2021 10:45:48 +0800 Message-ID: <20210608024548.2753635-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Fixes the following W=1 kernel build warning(s): fs/ioctl.c:1101: warning: Function parameter or member 'file' not described in 'compat_ptr_ioctl' fs/ioctl.c:1101: warning: Function parameter or member 'cmd' not described in 'compat_ptr_ioctl' fs/ioctl.c:1101: warning: Function parameter or member 'arg' not described in 'compat_ptr_ioctl' Signed-off-by: Baokun Li --- fs/ioctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/ioctl.c b/fs/ioctl.c index 1e2204fa9963..b0ef5089ff29 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -1076,7 +1076,9 @@ SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) #ifdef CONFIG_COMPAT /** * compat_ptr_ioctl - generic implementation of .compat_ioctl file operation - * + * @file: open file to invoke ioctl method on + * @cmd: ioctl command to execute + * @arg: command-specific argument for ioctl * This is not normally called as a function, but instead set in struct * file_operations as *