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

Improve keyring_search confgure test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • Lustre 2.18.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      Checking the keyring_search compile test manually:

      shaun@plucky:~/lustre-wc-rel/_lpb/keyring_search_4args_pc$ make modules -C /usr/src/linux-headers-6.14.0-37-generic  M=/home/shaun/lustre-wc-rel/_lpb/keyring_search_4args_pc CONFIG_CC_VERSION_TEXT='gcc..Ubuntu.14.2.0-19ubuntu2..14.2.0'
      make: Entering directory '/usr/src/linux-headers-6.14.0-37-generic'
      make[1]: Entering directory '/home/shaun/lustre-wc-rel/_lpb/keyring_search_4args_pc'
      warning: the compiler differs from the one used to build the kernel
        The kernel was built by: gcc..Ubuntu.14.2.0-19ubuntu2..14.2.0
        You are using:           gcc-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0
        CC [M]  keyring_search_4args_pc.o
      keyring_search_4args_pc.c: In function ‘main’:
      keyring_search_4args_pc.c:77:17: warning: ‘keyring’ is used uninitialized [-Wuninitialized]
         77 |                 keyring_search(keyring, NULL, NULL, false);
            |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      keyring_search_4args_pc.c:76:27: note: ‘keyring’ was declared here
         76 |                 key_ref_t keyring;
            |                     ^~~~~~~
        MODPOST Module.symvers
        CC [M]  keyring_search_4args_pc.mod.o
        LD [M]  keyring_search_4args_pc.ko
        BTF [M] keyring_search_4args_pc.ko
      Skipping BTF generation for keyring_search_4args_pc.ko due to unavailability of vmlinux
      make[1]: Leaving directory '/home/shaun/lustre-wc-rel/_lpb/keyring_search_4args_pc'
      make: Leaving directory '/usr/src/linux-headers-6.14.0-37-generic'
      

      This should be improved to avoid the possible:
      warning: ‘keyring’ is used uninitialized [-Wuninitialized]
      being promoted to an error in the future.

      Attachments

        Activity

          People

            stancheff Shaun Tancheff
            stancheff Shaun Tancheff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: