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

Build failed with "error: conflicting types for ‘rhashtable_walk_enter’"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Minor
    • None
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Build fails with error: conflicting types for ‘rhashtable_walk_enter’

       

      make[3]: Entering directory '/usr/src/kernels/4.18.0-372.9.1.el8.x86_64'
        CC [M]  /root/lustre-release/lustre-release/libcfs/libcfs/linux/linux-hash.o
      In file included from /root/lustre-release/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:
      /root/lustre-release/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:70:12: error: conflicting types for ‘rhashtable_walk_enter’
       static int rhashtable_walk_enter(struct rhashtable *ht,
                  ^~~~~~~~~~~~~~~~~~~~~
      In file included from /root/lustre-release/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:27,
                       from /root/lustre-release/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:
      include/linux/rhashtable.h:248:6: note: previous declaration of ‘rhashtable_walk_enter’ was here
       void rhashtable_walk_enter(struct rhashtable *ht,
            ^~~~~~~~~~~~~~~~~~~~~
      In file included from /root/lustre-release/lustre-release/libcfs/libcfs/linux/linux-hash.c:33:
      /root/lustre-release/lustre-release/libcfs/include/libcfs/linux/linux-hash.h: In function ‘rhashtable_walk_enter’:
      /root/lustre-release/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:76:9: error: implicit declaration of function ‘rhashtable_walk_init’; did you mean ‘rhashtable_walk_exit’? [-Werror=implicit-function-declaration]
        return rhashtable_walk_init(ht, iter);
               ^~~~~~~~~~~~~~~~~~~~
               rhashtable_walk_exit
      At top level:
      /root/lustre-release/lustre-release/libcfs/include/libcfs/linux/linux-hash.h:70:12: error: ‘rhashtable_walk_enter’ defined but not used [-Werror=unused-function]
       static int rhashtable_walk_enter(struct rhashtable *ht,
                  ^~~~~~~~~~~~~~~~~~~~~

      rhashtable.h from kernel-devel

      $ rpm -q --whatprovides /usr/src/kernels/4.18.0-372.9.1.el8.x86_64/include/linux/rhashtable.h
      kernel-devel-4.18.0-372.9.1.el8.x86_64

      Kernel version

      $ uname -r
      4.18.0-372.9.1.el8.x86_64

      Steps to reproduce

      $ git pull
      $ sh autogen.sh
      $ ./configure
      $ make
      

      Master (Head) is pointing to...

       

      18e14c7099065891516b189467c0ff11ec7f470a (origin/master, origin/HEAD, master) LU-16216 tests: Update sanity-lnet for other LNDs
      

       

       

       

       

      Attachments

        Activity

          People

            wc-triage WC Triage
            arshad512 Arshad Hussain
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: