Whamcloud - gitweb
LU-5396 lnet: make some functions static 06/12206/15
authorFrank Zago <fzago@cray.com>
Sun, 7 Sep 2014 15:50:03 +0000 (10:50 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 9 Jan 2015 03:11:23 +0000 (03:11 +0000)
commit33984c012883a7c714429d2c612cf6dcda191974
tree44bc8e471447c61652d85bf475507e46ef78e451
parentbfaadd73b74da2aca82007ca78a6baf15ea2790c
LU-5396 lnet: 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.

Change-Id: I6b0c527d64ea9e3394cc686699d2e75eec5c16a2
Signed-off-by: Frank Zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/12206
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
29 files changed:
libcfs/include/libcfs/libcfs_ioctl.h
libcfs/libcfs/debug.c
lnet/include/lnet/lib-lnet.h
lnet/klnds/o2iblnd/o2iblnd_modparams.c
lnet/klnds/socklnd/socklnd.c
lnet/klnds/socklnd/socklnd_cb.c
lnet/lnet/acceptor.c
lnet/lnet/api-ni.c
lnet/lnet/config.c
lnet/lnet/lib-eq.c
lnet/lnet/lib-md.c
lnet/lnet/lib-move.c
lnet/lnet/lib-ptl.c
lnet/lnet/lo.c
lnet/lnet/module.c
lnet/lnet/router.c
lnet/lnet/router_proc.c
lnet/selftest/brw_test.c
lnet/selftest/conctl.c
lnet/selftest/conrpc.c
lnet/selftest/console.c
lnet/selftest/console.h
lnet/selftest/framework.c
lnet/selftest/module.c
lnet/selftest/ping_test.c
lnet/selftest/rpc.c
lnet/selftest/selftest.h
lnet/selftest/timer.c
lustre/obdclass/llog_cat.c