Whamcloud - gitweb
LU-5396 mdc: (and lmv, mgc, osc) make some functions static 22/12222/9
authorFrank Zago <fzago@cray.com>
Tue, 30 Sep 2014 03:10:50 +0000 (22:10 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Dec 2014 08:11:58 +0000 (08:11 +0000)
commit35fe4c696dd0faadc9405c19c68f0dd56aa5bb01
tree4aa797e2ffc6fb6d123cd0d10bd80acbe854f624
parent9c6d90191a7d7685d98aee7fb49ff6c23e3956ff
LU-5396 mdc: (and lmv, mgc, osc) 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: I8dcc5224c1da75cfb5ef7afb1fdb0f72422a3ac0
Reviewed-on: http://review.whamcloud.com/12222
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
29 files changed:
lustre/lmv/lmv_intent.c
lustre/lmv/lproc_lmv.c
lustre/mdc/lproc_mdc.c
lustre/mdc/mdc_request.c
lustre/mgc/mgc_request.c
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_obd.c
lustre/ofd/ofd_objects.c
lustre/osc/osc_cache.c
lustre/osc/osc_internal.h
lustre/osc/osc_object.c
lustre/osc/osc_page.c
lustre/osc/osc_request.c
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_dynlocks.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_iam.c
lustre/osd-ldiskfs/osd_iam_lfix.c
lustre/osd-ldiskfs/osd_iam_lvar.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-ldiskfs/osd_quota.c
lustre/osp/lwp_dev.c
lustre/osp/osp_dev.c
lustre/osp/osp_md_object.c
lustre/osp/osp_object.c
lustre/osp/osp_precreate.c
lustre/osp/osp_sync.c