Skip to contentSkip to conversation

./../../../../include/nolibc/types.h:122:39: warning: 'status' may be used uninitialized

PATCH kernel test robot 1 participant 1 message Sep 24

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

::::::
:::::: Manual check reason: "likely FALSE maybe-used-uninitialized warning on old compiler" ::::::

BCC: [email protected]
CC: [email protected]
TO: Danish Khateeb <[email protected]>
CC: "Thomas Weißschuh" <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/nolibc/linux-nolibc.git for-next
head:   6f114ae7b6006ca7cf72e3e3348d263bbfec4525
commit: 368fae47c6cae28a312c5dc86e5bdb8f9369fd26 [12/14] tools/nolibc: fix WIFSIGNALED() for status 0

:::::: branch date: 3 hours ago
:::::: commit date: 14 hours ago
config: riscv-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260925/[email protected]/config)
compiler: riscv64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

All warnings (new ones prefixed by >>):

In file included from ./../../../../include/nolibc/nolibc.h:97,
from <command-line>:
vstate_exec_nolibc.c: In function 'main':

>> ./../../../../include/nolibc/types.h:122:39: warning: 'status' may be used uninitialized [-Wmaybe-uninitialized]
     122 | #define WIFSIGNALED(status) ((status) - 1U < 0xff)
         |                              ~~~~~~~~~^~~~
   vstate_exec_nolibc.c:78:13: note: in expansion of macro 'WIFSIGNALED'
      78 |         if (WIFSIGNALED(status)) {
         |             ^~~~~~~~~~~
   vstate_exec_nolibc.c:9:22: note: 'status' was declared here
       9 |         int rc, pid, status, test_inherit = 0, xtheadvector = 0;
         |                      ^~~~~~

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki