Hay
Date
Feb. 5, 2025, 2:09 p.m.

Environment
arm
arm64
i386
x86_64

make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/2/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0


make  -C /builds/linux/tools/lib/bpf OUTPUT=/home/tuxbuild/.cache/tuxmake/builds/1/build/kselftest/net/tools/build/libbpf/     \
make[4]: Entering directory '/builds/linux/tools/testing/selftests/timens'
In file included from timens.c:16:
In file included from ./timens.h:10:
./../kselftest.h:355:6: error: variable 'major' is used uninitialized whenever '||' condition is true [-Werror,-Wsometimes-uninitialized]
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~
./../kselftest.h:358:9: note: uninitialized use occurs here
  358 |         return major > min_major || (major == min_major && minor >= min_minor);
      |                ^~~~~
./../kselftest.h:355:6: note: remove the '||' if its condition is always false
  355 |         if (uname(&info) || sscanf(info.release, "%u.%u.", &major, &minor) != 2)
      |             ^~~~~~~~~~~~~~~
./../kselftest.h:352:20: note: initialize the variable 'major' to silence this warning
  352 |         unsigned int major, minor;
      |                           ^
      |                            = 0