From: Chen Wandun Date: Wed, 22 Jan 2020 16:29:46 +0000 (-0500) Subject: xfs: Make the symbol 'xfs_rtalloc_log_count' static X-Git-Tag: v5.5.0-rc0~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=44478d27cb7d7e2dd1b7410130037044162b72aa;p=thirdparty%2Fxfsprogs-dev.git xfs: Make the symbol 'xfs_rtalloc_log_count' static Source kernel commit: 5084bf6b2006fcd46f1e44e3c51b687507b362e2 Fix the following sparse warning: fs/xfs/libxfs/xfs_trans_resv.c:206:1: warning: symbol 'xfs_rtalloc_log_count' was not declared. Should it be static? Fixes: b1de6fc7520f ("xfs: fix log reservation overflows when allocating large rt extents") Signed-off-by: Chen Wandun Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- diff --git a/libxfs/xfs_trans_resv.c b/libxfs/xfs_trans_resv.c index dfad23ed0..f0b48a7df 100644 --- a/libxfs/xfs_trans_resv.c +++ b/libxfs/xfs_trans_resv.c @@ -200,7 +200,7 @@ xfs_calc_inode_chunk_res( * blocks as needed to mark inuse MAXEXTLEN blocks' worth of realtime extents, * as well as the realtime summary block. */ -unsigned int +static unsigned int xfs_rtalloc_log_count( struct xfs_mount *mp, unsigned int num_ops)