2024-03-04 08:30:04

by Naresh Kamboju

[permalink] [raw]
Subject: include/linux/vmstat.h:508:43: error: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Werror,-Wenum-enum-conversion]

The x86 clang nightly defconfig builds failed on today's Linux next
tag next-20240304.

Reported-by: Linux Kernel Functional Testing <[email protected]>

Build log:
---------
In file included from include/linux/mm.h:2208:
include/linux/vmstat.h:508:43: error: arithmetic between different
enumeration types ('enum zone_stat_item' and 'enum numa_stat_item')
[-Werror,-Wenum-enum-conversion]
508 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
509 | item];
| ~~~~ ^~

Steps to reproduce:
# tuxmake --runtime podman --target-arch x86_64 --toolchain
clang-nightly --kconfig x86_64_defconfig LLVM=1 LLVM_IAS=1
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2dDE2PIbgOKyvV21FDe74HgYh8l/tuxmake_reproducer.sh


Links:
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240304/testrun/22918589/suite/build/test/clang-nightly-x86_64_defconfig/details/
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240304/testrun/22918589/suite/build/test/clang-nightly-x86_64_defconfig/log
- https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240304/testrun/22918589/suite/build/test/clang-nightly-x86_64_defconfig/history/


--
Linaro LKFT
https://lkft.linaro.org