Hay
Date
April 8, 2025, 12:37 p.m.

Environment
arm
arm64
i386
x86_64

make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/2/build INSTALL_PATH=/home/tuxbuild/.cache/tuxmake/builds/2/build/kselftest_install ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=0 kselftest-install
In file included from protection_keys.c:47:
./pkey-helpers.h:205:7: warning: variable 'xstate_size' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:211:6: note: uninitialized use occurs here
  211 |         if (xstate_size == 0) {
      |             ^~~~~~~~~~~
./pkey-helpers.h:205:3: note: remove the 'if' if its condition is always true
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:194:17: note: initialize the variable 'xstate_size' to silence this warning
  194 |         int xstate_size;
      |                        ^
      |                         = 0


make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build INSTALL_PATH=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest_install ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=1 kselftest-install
In file included from protection_keys.c:47:
./pkey-helpers.h:205:7: warning: variable 'xstate_size' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:211:6: note: uninitialized use occurs here
  211 |         if (xstate_size == 0) {
      |             ^~~~~~~~~~~
./pkey-helpers.h:205:3: note: remove the 'if' if its condition is always true
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:194:17: note: initialize the variable 'xstate_size' to silence this warning
  194 |         int xstate_size;
      |                        ^
      |                         = 0


make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build INSTALL_PATH=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest_install ARCH=i386 SRCARCH=x86 CROSS_COMPILE=i686-linux-gnu- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=1 kselftest-install
In file included from protection_keys.c:47:
./pkey-helpers.h:205:7: warning: variable 'xstate_size' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:211:6: note: uninitialized use occurs here
  211 |         if (xstate_size == 0) {
      |             ^~~~~~~~~~~
./pkey-helpers.h:205:3: note: remove the 'if' if its condition is always true
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:194:17: note: initialize the variable 'xstate_size' to silence this warning
  194 |         int xstate_size;
      |                        ^
      |                         = 0


make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/build INSTALL_PATH=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest_install ARCH=x86_64 SRCARCH=x86 CROSS_COMPILE=x86_64-linux-gnu- HOSTCC=clang CC=clang LLVM=1 LLVM_IAS=1 kselftest-install
In file included from protection_keys.c:47:
./pkey-helpers.h:205:7: warning: variable 'xstate_size' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:211:6: note: uninitialized use occurs here
  211 |         if (xstate_size == 0) {
      |             ^~~~~~~~~~~
./pkey-helpers.h:205:3: note: remove the 'if' if its condition is always true
  205 |                 if (leaf == XSTATE_PKRU_BIT) {
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./pkey-helpers.h:194:17: note: initialize the variable 'xstate_size' to silence this warning
  194 |         int xstate_size;
      |                        ^
      |                         = 0