Whamcloud - gitweb
LU-5396: obd: make local functions static 05/11305/2
authorFrank Zago <fzago@cray.com>
Fri, 1 Aug 2014 14:59:20 +0000 (09:59 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Aug 2014 16:00:12 +0000 (16:00 +0000)
This decreases the code by 150 bytes.

Change-Id: I517c53fe65d0b80f509b903a704eac8ef9f1130a
Signed-off-by: frank zago <fzago@cray.com>
Reviewed-on: http://review.whamcloud.com/11305
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/class_obd.c

index da38c9a..afb0208 100644 (file)
@@ -72,7 +72,7 @@ __u64 obd_max_alloc = 0;
 __u64 obd_alloc;
 __u64 obd_pages;
 #endif
 __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;
 
 /* 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);
 
 }
 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;
 {
         int rc;
         int dev;
@@ -443,7 +443,7 @@ struct miscdevice obd_psdev;
 
 #define OBD_INIT_CHECK
 #ifdef OBD_INIT_CHECK
 
 #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];
 {
         __u64 u64val, div64val;
         char buf[64];