From: Chennaiah Palla Date: Thu, 3 Dec 2015 10:57:16 +0000 (+0530) Subject: LU-7515 obdclass: add export for lprocfs_stats_alloc_one() X-Git-Tag: 2.7.65~82 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F17443%2F5;p=fs%2Flustre-release.git LU-7515 obdclass: add export for lprocfs_stats_alloc_one() When compiling Lustre without optimization, when using GCOV, the lprocfs_stats_alloc_one() symbol is not properly exported to other modules and causes the ptlrpc module to fail loading with an unknown symbol. Added EXPORT_SYMBOL(lprocfs_stats_alloc_one) so that this works properly. Seagate-bug-id: MRP-3188 Signed-off-by: Chennaiah Palla Change-Id: I8ef02a0e0bf519fa93f85cb162a6340e3feeb736 Reviewed-on: http://review.whamcloud.com/17443 Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/obdclass/lprocfs_status.c b/lustre/obdclass/lprocfs_status.c index 01367d5..d4e0392 100644 --- a/lustre/obdclass/lprocfs_status.c +++ b/lustre/obdclass/lprocfs_status.c @@ -1063,6 +1063,7 @@ int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid) } return rc; } +EXPORT_SYMBOL(lprocfs_stats_alloc_one); struct lprocfs_stats *lprocfs_alloc_stats(unsigned int num, enum lprocfs_stats_flags flags)