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

error: ‘ldiskfs_iget’ undeclared here (not in a function)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.14.0
    • Labels:
      None
    • Environment:
      Distro/Arch: RHEL8.1/x86_64
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      While building Lustre server on RHEL 8.1 with kernel 4.18.0-147.0.3.el8_1, the build failed as follows:

      make[3]: Entering directory '/root/kernel/rpmbuild/BUILD/kernel-4.18.0-147.0.3.el8_1/linux-4.18.0-147.0.3.el8_lustre.x86_64'
        CC [M]  /root/lustre-release/ldiskfs/inode.o
      In file included from include/linux/linkage.h:7,
                       from include/linux/fs.h:6,
                       from /root/lustre-release/ldiskfs/inode.c:22:
      /root/lustre-release/ldiskfs/inode.c:6294:15: error: ‘ldiskfs_iget’ undeclared here (not in a function); did you mean ‘ldiskfs_ioctl’?
       EXPORT_SYMBOL(ldiskfs_iget);
                     ^~~~~~~~~~~~
      include/linux/export.h:59:16: note: in definition of macro ‘___EXPORT_SYMBOL’
        extern typeof(sym) sym;      \
                      ^~~
      /root/lustre-release/ldiskfs/inode.c:6294:1: note: in expansion of macro ‘EXPORT_SYMBOL’
       EXPORT_SYMBOL(ldiskfs_iget);
       ^~~~~~~~~~~~~
      make[5]: *** [scripts/Makefile.build:313: /root/lustre-release/ldiskfs/inode.o] Error 1
      

      In kernel 4.18.0-147.0.3.el8_1:

      struct inode *__ext4_iget(struct super_block *sb, unsigned long ino,
                                ext4_iget_flags flags, const char *function,
                                unsigned int line);
      

      In previous kernel versions:

      struct inode *ext4_iget(struct super_block *sb, unsigned long ino);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ys Yang Sheng
                Reporter:
                yujian Jian Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: