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

fail to build lustre client due to macros 'HAVE_HOTPLUG_STATE_MACHINE'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Critical
    • None
    • Lustre 2.15.4, Lustre 2.15.5
    • OS:
      AlmaLinux release 8.9

      kernel:
      4.18.0-513.5.1.el8_9.x86_64

      lustre:
      2.15.4
    • 1
    • 9223372036854775807

    Description

      compile error:
      libcfs/libcfs/libcfs_cpu.c:1162:7: error: 'CPU_ONLINE_FROZEN' undeclared
      libcfs/libcfs/libcfs_cpu.c:1194:2: error: implicit declaration of function 'unregister_hotcpu_notifier';

      person analysis:
      starting from Linux kernel 4.10, support for 'HAVE_HOTPLUG_STATE_MACHINE' related functions has been removed. However, when compiling libcfs/libcfs/libcfs_cpu. c, the old functions are still used:

      void cfs_cpu_fini(void)
      {
              if (!IS_ERR_OR_NULL(cfs_cpt_tab))
                      cfs_cpt_table_free(cfs_cpt_tab);#ifdef CONFIG_HOTPLUG_CPU
      #ifdef HAVE_HOTPLUG_STATE_MACHINE
              if (cstorpfs_cpu_online > 0)
                      cpuhp_remove_state_nocalls(cstorpfs_cpu_online);
              cpuhp_remove_state_nocalls(CPUHP_CSTORPFS_CFS_DEAD);
      #else
              unregister_hotcpu_notifier(&cfs_cpu_notifier);
      #endif /* !HAVE_HOTPLUG_STATE_MACHINE */
      #endif /* CONFIG_HOTPLUG_CPU */
      } 

       

      Attachments

        Activity

          People

            wc-triage WC Triage
            fugen Fu Gen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: