Public bug reported:

Powepc tests in kselftest failed with following error

log:

In file included from test-vphn.c:3:
In function ?vphn_unpack_associativity?,
    inlined from ?test_one? at test-vphn.c:371:2,
    inlined from ?test_vphn? at test-vphn.c:399:9:
test-vphn.c:10:33: error: ?be_packed? may be used uninitialized 
[-Werror=maybe-uninitialized]
   10 | #define be16_to_cpup(x)         bswap_16(*x)
      |                                 ^~~~~~~~
vphn.c:42:27: note: in expansion of macro ?be16_to_cpup?
   42 |                 u16 new = be16_to_cpup(field++);
      |                           ^~~~~~~~~~~~
In file included from test-vphn.c:19:
vphn.c: In function ?test_vphn?:
vphn.c:27:16: note: ?be_packed? declared here
   27 |         __be64 be_packed[VPHN_REGISTER_COUNT];
      |                ^~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [../../lib.mk:222: 
/root/linux/tools/testing/selftests/powerpc/vphn/test-vphn] Error 1
make[2]: Target 'all' not remade because of errors.
make[1]: *** [Makefile:40: vphn] Error 2
make[1]: Leaving directory '/root/linux/tools/testing/selftests/powerpc'
make: *** [Makefile:203: all] Error 2
make: Leaving directory '/root/linux/tools/testing/selftests'


Command used :
make -C tools/testing/selftests TARGETS="powerpc" run_tests


With the following patch issue is fixed:-

The patch is in upstream Linux now:

6e65886fceb2 ("selftests/powerpc: Suppress -Wmaybe-uninitialized with
GCC 15")

~Amit

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Ubuntu on IBM Power Systems Bug Triage (ubuntu-power-triage)
         Status: New


** Tags: architecture-ppc64le bugnameltc-217628 severity-medium 
targetmilestone-inin2610

** Tags added: architecture-ppc64le bugnameltc-217628 severity-medium
targetmilestone-inin2610

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2151303

Title:
  [Ubuntu 26.04]  kselftest failed on Guest

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2151303/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to