[LU-102] EXPORT_SYMBOL of static function breaks compile Created: 28/Feb/11  Updated: 28/Feb/11  Resolved: 28/Feb/11

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.1.0
Fix Version/s: Lustre 2.1.0

Type: Bug Priority: Minor
Reporter: Christopher Morrone Assignee: Oleg Drokin
Resolution: Fixed Votes: 0
Labels: None
Environment:

RHEL6, PPC64


Severity: 2
Rank (Obsolete): 10813

 Description   

I don't know exactly when gcc started catching this, but:

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

The fix is simply to remove the EXPORT_SYMBOL line, which I think is fine. I can't find anywhere else that references that symbol outside of that one file.

Patch is here:

http://review.whamcloud.com/262



 Comments   
Comment by Oleg Drokin [ 28/Feb/11 ]

Totally agree on this one. Patch approved.

Comment by Oleg Drokin [ 28/Feb/11 ]

Patch landed. resolving.

Generated at Sat Feb 10 01:03:46 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.