← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2129844] [NEW] powerpc-build in ubuntu_kernel_selftests fails to build due to uninitialized value

 

Public bug reported:

in questing the test fails to build for powerpc architectures.
tools/testing/selftests/powerpc/vphn/vphn.c uses field which points to uninitialized array be_packed.

relevant part of the log:
3920   CC test-vphn
3921   make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/powerpc'
3922   make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
3923   stderr:
3924   fatal: not a git repository (or any of the parent directories): .git
3925   Makefile:60: warning: overriding recipe for target 'emit_tests'
3926   ../lib.mk:182: warning: ignoring old recipe for target 'emit_tests'
3927   Makefile:41: warning: overriding recipe for target 'emit_tests'
3928   ../../lib.mk:182: warning: ignoring old recipe for target 'emit_tests'
3929   In file included from test-vphn.c:3:
3930   In function ‘vphn_unpack_associativity’,
3931   inlined from ‘test_one’ at test-vphn.c:371:2,
3932   inlined from ‘test_vphn’ at test-vphn.c:399:9:
3933   test-vphn.c:10:33: error: ‘be_packed’ may be used uninitialized [-Werror=maybe-uninitialized]
3934   10 | #define be16_to_cpup(x) bswap_16(*x)
3935   | ^~~~~~~~
3936   vphn.c:42:27: note: in expansion of macro ‘be16_to_cpup’
3937   42 | u16 new = be16_to_cpup(field++);
3938   | ^~~~~~~~~~~~
3939   In file included from test-vphn.c:19:
3940   vphn.c: In function ‘test_vphn’:
3941   vphn.c:27:16: note: ‘be_packed’ declared here
3942   27 | __be64 be_packed[VPHN_REGISTER_COUNT];
3943   | ^~~~~~~~~
3944   cc1: all warnings being treated as errors
3945   make[2]: *** [../../lib.mk:222: /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/powerpc/vphn/test-vphn] Error 1
3946   make[2]: Target 'all' not remade because of errors.
3947   make[1]: *** [Makefile:40: vphn] Error 2
3948   make: *** [Makefile:208: all] Error 2

** Affects: ubuntu-kernel-tests
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2129844

Title:
  powerpc-build in ubuntu_kernel_selftests fails to build due to
  uninitialized value

Status in ubuntu-kernel-tests:
  New

Bug description:
  in questing the test fails to build for powerpc architectures.
  tools/testing/selftests/powerpc/vphn/vphn.c uses field which points to uninitialized array be_packed.

  relevant part of the log:
  3920   CC test-vphn
  3921   make[1]: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/powerpc'
  3922   make: Leaving directory '/home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests'
  3923   stderr:
  3924   fatal: not a git repository (or any of the parent directories): .git
  3925   Makefile:60: warning: overriding recipe for target 'emit_tests'
  3926   ../lib.mk:182: warning: ignoring old recipe for target 'emit_tests'
  3927   Makefile:41: warning: overriding recipe for target 'emit_tests'
  3928   ../../lib.mk:182: warning: ignoring old recipe for target 'emit_tests'
  3929   In file included from test-vphn.c:3:
  3930   In function ‘vphn_unpack_associativity’,
  3931   inlined from ‘test_one’ at test-vphn.c:371:2,
  3932   inlined from ‘test_vphn’ at test-vphn.c:399:9:
  3933   test-vphn.c:10:33: error: ‘be_packed’ may be used uninitialized [-Werror=maybe-uninitialized]
  3934   10 | #define be16_to_cpup(x) bswap_16(*x)
  3935   | ^~~~~~~~
  3936   vphn.c:42:27: note: in expansion of macro ‘be16_to_cpup’
  3937   42 | u16 new = be16_to_cpup(field++);
  3938   | ^~~~~~~~~~~~
  3939   In file included from test-vphn.c:19:
  3940   vphn.c: In function ‘test_vphn’:
  3941   vphn.c:27:16: note: ‘be_packed’ declared here
  3942   27 | __be64 be_packed[VPHN_REGISTER_COUNT];
  3943   | ^~~~~~~~~
  3944   cc1: all warnings being treated as errors
  3945   make[2]: *** [../../lib.mk:222: /home/ubuntu/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/powerpc/vphn/test-vphn] Error 1
  3946   make[2]: Target 'all' not remade because of errors.
  3947   make[1]: *** [Makefile:40: vphn] Error 2
  3948   make: *** [Makefile:208: all] Error 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2129844/+subscriptions