Following build warnings/ errors noticed while building linux mainline master branch with gcc-11 for arm architecture with clps711x_defconfig config file.
block/mq-deadline.c:274:12: error: 'dd_queued' defined but not used [-Werror=unused-function] 274 | static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio) | ^~~~~~~~~ cc1: all warnings being treated as errors make[2]: *** [/builds/linux/scripts/Makefile.build:277: block/mq-deadline.o] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [/builds/linux/Makefile:1872: block] Error 2 make[1]: Target '__all' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target '__all' not remade because of errors.
Build config: https://builds.tuxbuild.com/1xjZuKPY0IygLQHFkTFMY9TPQh4/config
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
meta data: ----------- git_describe: v5.14-9687-g27151f177827 git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline git_sha: 27151f177827d478508e756c7657273261aaf8a9 git_short_log: 27151f177827 (\Merge tag 'perf-tools-for-v5.15-2021-09-04' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux) kconfig: [ clps711x_defconfig ] kernel_version: 5.14.0 target_arch: arm toolchain: gcc-11
steps to reproduce: https://builds.tuxbuild.com/1xjZuKPY0IygLQHFkTFMY9TPQh4/tuxmake_reproducer.s...
-- Linaro LKFT https://lkft.linaro.org