From: Frank Zago Date: Fri, 1 Aug 2014 14:59:20 +0000 (-0500) Subject: LU-5396: obd: make local functions static X-Git-Tag: 2.6.52~15 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=2e4d077611eebfbaa4ea8b7b75beb8afda8ca913 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 --- 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];