From 33dc45c663d7fb356dac8228a09e913f7710ad08 Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Tue, 9 Oct 2018 11:49:47 -0500 Subject: [PATCH] mkfs.xfs: include full parser prototype in subopts definition Fixes sparse warnings about this. Signed-off-by: Eric Sandeen Reviewed-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- 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 092db00de..77eb5f0fc 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -1667,7 +1667,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 }, -- 2.47.2