[RFC PATCH allisonhenderson-xfs_work] xfs: xfs_calc_namespace_reservations can be static

From: kernel test robot
Date: Mon Jul 19 2021 - 01:36:04 EST


fs/xfs/libxfs/xfs_trans_resv.c:854:1: warning: symbol 'xfs_calc_namespace_reservations' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---
xfs_trans_resv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/xfs/libxfs/xfs_trans_resv.c b/fs/xfs/libxfs/xfs_trans_resv.c
index 9cc18a9354525..f307275eb6368 100644
--- a/fs/xfs/libxfs/xfs_trans_resv.c
+++ b/fs/xfs/libxfs/xfs_trans_resv.c
@@ -850,7 +850,7 @@ xfs_calc_sb_reservation(
* addressed later when modifications are made to ensure parent attribute
* modifications can be done atomically with the rename operation.
*/
-void
+static void
xfs_calc_namespace_reservations(
struct xfs_mount *mp,
struct xfs_trans_resv *resp)