lustre: obdclass: fix sparse warning
PATCH 1/1 lustre: obdclass: fix sparse warning
Fix the following warning given by sparse:
drivers/staging/lustre/lustre/obdclass/cl_lock.c:690:5: warning: symbol 'cl_lock_mutex_try' was not declared. Should it be static?
Signed-off-by Paul Davies C <[email protected]>
--- drivers/staging/lustre/lustre/obdclass/cl_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/obdclass/cl_lock.c +1 -1
@@ -687,7 +687,7 @@ EXPORT_SYMBOL(cl_lock_mutex_get);* * \see cl_lock_mutex_get() */ -int cl_lock_mutex_try (const struct lu_env *env,struct cl_lock *lock) +static int cl_lock_mutex_try (const struct lu_env *env,struct cl_lock *lock) {int result;
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 14 lines · Paul Davies C
Fix the following warning given by sparse:
drivers/staging/lustre/lustre/obdclass/cl_lock.c:690:5: warning: symbol 'cl_lock_mutex_try' was not declared. Should it be static?Signed-off-by Paul Davies C <[email protected]>--- drivers/staging/lustre/lustre/obdclass/cl_lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/lustre/lustre/obdclass/cl_lock.c +0
-0
drivers/staging/lustre/lustre/obdclass/cl_lock.c EXPORT_SYMBOL(cl_lock_mutex_get); · line 693
Quoted 8 lines
drivers/staging/lustre/lustre/obdclass/cl_lock.c +1
-1@@ -687,7 +687,7 @@ EXPORT_SYMBOL(cl_lock_mutex_get);* * \see cl_lock_mutex_get() */ -int cl_lock_mutex_try (const struct lu_env *env,struct cl_lock *lock) +static int cl_lock_mutex_try (const struct lu_env *env,struct cl_lock *lock) {int result;
Someone did this before you did, sorry :(