srcu: make srcu_size_state_name static
Subsystems (2)
PATCH 1/1 srcu: make srcu_size_state_name static
This symbol is not used outside of srcutree.c, so marks it static.
Fixes the following sparse warning:
kernel/rcu/srcutree.c:1426:12: warning: symbol 'srcu_size_state_name' was not declared. Should it be static?
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- kernel/rcu/srcutree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/rcu/srcutree.c +1 -1
@@ -1423,7 +1423,7 @@ void srcutorture_get_gp_data(enum rcutorture_type test_type, }EXPORT_SYMBOL_GPL (srcutorture_get_gp_data); -const char *const srcu_size_state_name[] = +static const char *const srcu_size_state_name[] = {"SRCU_SIZE_SMALL" ,"SRCU_SIZE_ALLOC" ,
Signature · 1 line
2.20.1.7.g153144c
Paul E. McKenney
maintainerQuoted 9 lines · Jiapeng Chong
This symbol is not used outside of
srcutree.c, so marks it static.Fixes the following sparse warning:
kernel/rcu/srcutree.c:1426:12: warning: symbol 'srcu_size_state_name' was not declared. Should it be static?Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
And I did queue and push this, good catch, thank you!
Thanx, Paul
Quoted 20 lines
--- kernel/rcu/srcutree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/rcu/srcutree.c +1
-1@@ -1423,7 +1423,7 @@ void srcutorture_get_gp_data(enum rcutorture_type test_type, }EXPORT_SYMBOL_GPL (srcutorture_get_gp_data); -const char *const srcu_size_state_name[] = +static const char *const srcu_size_state_name[] = {"SRCU_SIZE_SMALL" ,"SRCU_SIZE_ALLOC" ,Signature · 1 line
2.20.1.7.g153144c