Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-102

EXPORT_SYMBOL of static function breaks compile

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.1.0
    • Lustre 2.1.0
    • None
    • RHEL6, PPC64
    • 2
    • 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

      Attachments

        Activity

          People

            green Oleg Drokin
            morrone Christopher Morrone (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: