Staging: lustre: obdclass: Remove unused code
PATCH 1/1 Staging: lustre: obdclass: Remove unused code
Discard the functions as they are not used anywhere throughout the kernel
Problem found using sparse.
Signed-off-by Shraddha Barke <[email protected]>
--- drivers/staging/lustre/lustre/obdclass/lu_object.c | 19 ------------------- 1 file changed, 19 deletions(-)
drivers/staging/lustre/lustre/obdclass/lu_object.c +0 -19
@@ -1908,25 +1908,6 @@ static unsigned long lu_cache_shrink_scan(struct shrinker *sk,* Debugging stuff. */ -/** -* Environment to be used in debugger, contains all tags. -*/ -struct lu_env lu_debugging_env; - -/** -* Debugging printer function using printk(). -*/ -int lu_printk_printer (const struct lu_env *env, -void *unused,const char *format, ...) -{ -va_list args; - -va_start (args, format); -vprintk (format, args); -va_end (args); -return 0 ; -} -static struct shrinker lu_site_shrinker = { .count_objects = lu_cache_shrink_count, .scan_objects = lu_cache_shrink_scan,
Signature · 1 line
2.1.4
Quoted 5 lines · Shraddha Barke
Discard the functions as they are not used anywhere throughout the kernel
Problem found using sparse.
This also has been done by:709e280afae5 ("staging/lustre: Remove unused lu_object functions.").
Which tree you are using?
regards
sudip
Quoted 10 lines · Sudip Mukherjee
Quoted 5 lines · Shraddha Barke
Discard the functions as they are not used anywhere throughout the kernel
Problem found using sparse.
This also has been done by:
709e280afae5("staging/lustre: Remove unusedlu_objectfunctions.").Which tree you are using?
My bad. I was working against staging-next. Now I'm using staging-testing.
Quoted 4 lines
regards
sudip