From patchwork Fri Oct 5 04:03:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Sandeen X-Patchwork-Id: 10627337 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 326711926 for ; Fri, 5 Oct 2018 04:03:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22B082881E for ; Fri, 5 Oct 2018 04:03:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EB662925D; Fri, 5 Oct 2018 04:03:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C673A28884 for ; Fri, 5 Oct 2018 04:03:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727134AbeJELAN (ORCPT ); Fri, 5 Oct 2018 07:00:13 -0400 Received: from sandeen.net ([63.231.237.45]:48092 "EHLO sandeen.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727456AbeJELAM (ORCPT ); Fri, 5 Oct 2018 07:00:12 -0400 Received: by sandeen.net (Postfix, from userid 500) id 0FF50559; Thu, 4 Oct 2018 23:03:18 -0500 (CDT) From: Eric Sandeen To: linux-xfs@vger.kernel.org Subject: [PATCH 03/15] mkfs.xfs: include full parser prototype in subopts definition Date: Thu, 4 Oct 2018 23:03:04 -0500 Message-Id: <1538712196-13625-4-git-send-email-sandeen@sandeen.net> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1538712196-13625-1-git-send-email-sandeen@sandeen.net> References: <1538712196-13625-1-git-send-email-sandeen@sandeen.net> Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Sandeen Fixes sparse warnings about this. Signed-off-by: Eric Sandeen Signed-off-by: Eric Sandeen Reviewed-by: Christoph Hellwig --- mkfs/xfs_mkfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 7c05c6f..2eec005 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1661,7 +1661,10 @@ sector_opts_parser( struct subopts { char opt; struct opt_params *opts; - int (*parser)(); + int (*parser)(struct opt_params *opts, + int subopt, + char *value, + struct cli_params *cli); } subopt_tab[] = { { 'b', &bopts, block_opts_parser }, { 'd', &dopts, data_opts_parser },