Whamcloud - gitweb
Remove EXPORT_SYMBOL for static function. 62/262/1
authorChristopher J. Morrone <morrone2@llnl.gov>
Wed, 16 Feb 2011 21:13:17 +0000 (13:13 -0800)
committerChristopher J. Morrone <morrone2@llnl.gov>
Thu, 24 Feb 2011 00:55:27 +0000 (16:55 -0800)
gcc 4.4.4 in RHEL6 on ppc64 does not allow EXPORT_SYMBOL for
a static function (which seems reasonable).  The following error
is seen on the EXPORT_SYMBOL line:

error: __ksymtab_obd_device_alloc causes a section type conflict

Change-Id: I6ad5ae13346b82bd723e05545d1e2a765b7460a8
Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
lustre/obdclass/genops.c

index 51cd9b9..9a9adfa 100644 (file)
@@ -80,7 +80,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)
 {