Details
-
Bug
-
Resolution: Fixed
-
Medium
-
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.