Whamcloud - gitweb
LU-5396 libcfs: make some functions static 07/12207/7
authorFrank Zago <fzago@cray.com>
Sun, 7 Sep 2014 18:00:28 +0000 (13:00 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Dec 2014 08:11:06 +0000 (08:11 +0000)
commit336f628d5ea17cb0afe26cd966e333e40755b38b
treeddaefa53fd2fb58fb387b0b5e99f297cd43daa54
parent9dacbee7fe35e7dac5637c8ad5c62ece41d3c8ed
LU-5396 libcfs: make some functions static

Some functions and variables are only used in their C file, so reduce
their scope. This reduces the code size, and fixes sparse warnings
such as:

  warning: symbol 'proc_lnet_routes' was not declared.
      Should it be static?
  warning: symbol 'proc_lnet_routers' was not declared.
      Should it be static?

Some prototypes were removed from C files and added to the proper
header.

Signed-off-by: Frank Zago <fzago@cray.com>
Change-Id: I5bdf94633fb94e435d32691d521ad7c1234018aa
Reviewed-on: http://review.whamcloud.com/12207
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
15 files changed:
libcfs/include/libcfs/libcfs.h
libcfs/include/libcfs/libcfs_private.h
libcfs/libcfs/debug.c
libcfs/libcfs/linux/linux-crypto-adler.c
libcfs/libcfs/linux/linux-crypto-crc32.c
libcfs/libcfs/linux/linux-curproc.c
libcfs/libcfs/linux/linux-module.c
libcfs/libcfs/linux/linux-proc.c
libcfs/libcfs/linux/linux-tcpip.c
libcfs/libcfs/module.c
libcfs/libcfs/nidstrings.c
libcfs/libcfs/tracefile.c
libcfs/libcfs/tracefile.h
libcfs/libcfs/workitem.c
lnet/include/lnet/nidstr.h