Whamcloud - gitweb
LU-452 : Don't export static functions
authorStephen Champion <schamp@sgi.com>
Thu, 23 Jun 2011 02:40:16 +0000 (21:40 -0500)
committerJohann Lombardi <johann@whamcloud.com>
Fri, 15 Jul 2011 06:14:11 +0000 (23:14 -0700)
As with LU-102 in the master branch, recent versions of GCC on ia64
sensibly refuse to export static functions.  obd_device_alloc and
obd_device_free are not referenced externally, so resolve this error
by not exporting them.

Signed-off-by: Stephen Champion <schamp@sgi.com>
Change-Id: I784cfbe59f4685d0e975427c3095aa082de1a1c6
Reviewed-on: http://review.whamcloud.com/1007
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
lustre/obdclass/genops.c

index c66fab5..9406341 100644 (file)
@@ -78,7 +78,6 @@ static struct obd_device *obd_device_alloc(void)
         }
         return obd;
 }
-EXPORT_SYMBOL(obd_device_alloc);
 
 static void obd_device_free(struct obd_device *obd)
 {
@@ -93,7 +92,6 @@ static void obd_device_free(struct obd_device *obd)
         }
         OBD_SLAB_FREE_PTR(obd, obd_device_cachep);
 }
-EXPORT_SYMBOL(obd_device_free);
 
 struct obd_type *class_search_type(const char *name)
 {