From 2e4d077611eebfbaa4ea8b7b75beb8afda8ca913 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Fri, 1 Aug 2014 09:59:20 -0500 Subject: [PATCH] LU-5396: obd: make local functions static This decreases the code by 150 bytes. Change-Id: I517c53fe65d0b80f509b903a704eac8ef9f1130a Signed-off-by: frank zago Reviewed-on: http://review.whamcloud.com/11305 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: John L. Hammond Reviewed-by: Patrick Farrell Reviewed-by: Oleg Drokin --- lustre/obdclass/class_obd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/obdclass/class_obd.c b/lustre/obdclass/class_obd.c index da38c9a..afb0208 100644 --- a/lustre/obdclass/class_obd.c +++ b/lustre/obdclass/class_obd.c @@ -72,7 +72,7 @@ __u64 obd_max_alloc = 0; __u64 obd_alloc; __u64 obd_pages; #endif -DEFINE_SPINLOCK(obd_updatemax_lock); +static DEFINE_SPINLOCK(obd_updatemax_lock); /* The following are visible and mutable through /proc/sys/lustre/. */ unsigned int obd_alloc_fail_rate = 0; @@ -198,7 +198,7 @@ int obd_alloc_fail(const void *ptr, const char *name, const char *type, } EXPORT_SYMBOL(obd_alloc_fail); -int class_resolve_dev_name(__u32 len, const char *name) +static int class_resolve_dev_name(__u32 len, const char *name) { int rc; int dev; @@ -443,7 +443,7 @@ struct miscdevice obd_psdev; #define OBD_INIT_CHECK #ifdef OBD_INIT_CHECK -int obd_init_checks(void) +static int obd_init_checks(void) { __u64 u64val, div64val; char buf[64]; -- 1.8.3.1