From: Stephen Champion Date: Thu, 23 Jun 2011 02:40:16 +0000 (-0500) Subject: LU-452 : Don't export static functions X-Git-Tag: v1_8_6_81~25 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e69dc73bb416a7b0ea79b58b06d84921994963db;p=fs%2Flustre-release.git LU-452 : Don't export static functions 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 Change-Id: I784cfbe59f4685d0e975427c3095aa082de1a1c6 Reviewed-on: http://review.whamcloud.com/1007 Reviewed-by: Andreas Dilger Tested-by: Hudson --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index c66fab5..9406341 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -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) {