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 10 lines · On Thursday 01 October 2015 15:29:45 Shraddha Barke wrote:
drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-8-/** -* Environment to be used in debugger, contains all tags. -*/ -struct lu_env lu_debugging_env; - -/** -* Debugging printer function using printk(). -*/
drivers/staging/lustre/lustre/obdclass/lu_object.c static unsigned long lu_cache_shrink_scan(struct shrinker *sk, · line 1928
Quoted 10 lines
drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-10-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 ; -}
This was already removed from staging-testing on Monday. Please update your git tree to today's version.
arnd
Quoted 16 lines · Arnd Bergmann
Quoted 15 lines · On Thursday 01 October 2015 15:29:45 Shraddha Barke wrote:
drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-14-/** -* 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);
Quoted 9 lines
drivers/staging/lustre/lustre/obdclass/lu_object.c static unsigned long lu_cache_shrink_scan(struct shrinker *sk, · line 1928
Quoted 5 lines
drivers/staging/lustre/lustre/obdclass/lu_object.c +0
-4-vprintk (format, args); -va_end (args); -return 0 ; -}This was already removed from staging-testing on Monday. Please update your git tree to today's version.
Yes I'm sorry.
Shraddha
Quoted 2 lines
arnd