initialise_mount does not use mkfs_params, and initialise_ag_headers does not use the xfs_sb param, remove them. Signed-off-by: Anthony Iliopoulos <ailiop@xxxxxxxx> --- mkfs/xfs_mkfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 1f142f78e677..03bbe3b4697d 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -3243,7 +3243,6 @@ start_superblock_setup( static void initialise_mount( - struct mkfs_params *cfg, struct xfs_mount *mp, struct xfs_sb *sbp) { @@ -3431,7 +3430,6 @@ static void initialise_ag_headers( struct mkfs_params *cfg, struct xfs_mount *mp, - struct xfs_sb *sbp, xfs_agnumber_t agno, int *worst_freelist, struct list_head *buffer_list) @@ -3776,7 +3774,7 @@ main( * provided functions to determine on-disk format information. */ start_superblock_setup(&cfg, mp, sbp); - initialise_mount(&cfg, mp, sbp); + initialise_mount(mp, sbp); /* * With the mount set up, we can finally calculate the log size @@ -3829,7 +3827,7 @@ main( */ INIT_LIST_HEAD(&buffer_list); for (agno = 0; agno < cfg.agcount; agno++) { - initialise_ag_headers(&cfg, mp, sbp, agno, &worst_freelist, + initialise_ag_headers(&cfg, mp, agno, &worst_freelist, &buffer_list); if (agno % 16) -- 2.28.0