From: Christopher J. Morrone Date: Wed, 16 Feb 2011 21:13:17 +0000 (-0800) Subject: Remove EXPORT_SYMBOL for static function. X-Git-Tag: 2.0.59-llnl2-base~22^2 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=26e4f705e013c6257330ce3456fcb70b0bad12cf Remove EXPORT_SYMBOL for static function. 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 --- diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 51cd9b9..9a9adfa 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -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) {