From: Dave Chinner Date: Tue, 23 Sep 2014 06:15:45 +0000 (+1000) Subject: xfs: xfs_buf_write_fail_rl_state can be static X-Git-Tag: v3.18-rc1~75^2~4^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=02cc18764c753befcdc163d1bc668a6599a54585;p=~emulex%2Finfiniband.git xfs: xfs_buf_write_fail_rl_state can be static Fix sparse warning introduced by commit ac8809f9 ("xfs: abort metadata writeback on permanent errors"). Signed-off-by: Fengguang Wu Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- diff --git a/fs/xfs/xfs_buf_item.c b/fs/xfs/xfs_buf_item.c index 76007deed31..30fa5db9aea 100644 --- a/fs/xfs/xfs_buf_item.c +++ b/fs/xfs/xfs_buf_item.c @@ -501,7 +501,7 @@ xfs_buf_item_unpin( * buffer being bad.. */ -DEFINE_RATELIMIT_STATE(xfs_buf_write_fail_rl_state, 30 * HZ, 10); +static DEFINE_RATELIMIT_STATE(xfs_buf_write_fail_rl_state, 30 * HZ, 10); STATIC uint xfs_buf_item_push(