[sheepdog] [PATCH v2 1/2] make: add 'check-ununsed' command

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Sep 2 07:43:52 CEST 2013


At Sun,  1 Sep 2013 18:19:12 +0800,
Liu Yuan wrote:
> 
> 'make check-unused' will try to find the possible unused functions that is
> defined but used functions.
> 
> E.g
> 
> yliu at ubuntu-precise:~/sheepdog$ make check-unused
> recalculate_vnodes
> object_cache_try_to_reclaim
> default_cleanup
> default_create_and_write
> default_exist
> default_format
> default_get_hash
> default_init
> default_link
> default_purge_obj
> default_read
> default_remove_object
> default_update_epoch
> default_write
> get_max_copy_number
> ...
> 
> functions listed above are either
> 1) defined but not used by other c files, indicating that we should define them
> static functions
> 2) defined but not used at all, indicating that we should remove them completely
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  Makefile.am |    8 ++++++++
>  1 file changed, 8 insertions(+)

Applied this series, thanks.

Kazutaka



More information about the sheepdog mailing list