[Please ignore this email if it is already reported]
Linux next-20220224 arch mips build errors / warnings noticed [1].
Build configs:
- mips-gcc-8-malta_defconfig
- mips-gcc-10-malta_defconfig
- mips-gcc-8-defconfig
- mips-gcc-10-defconfig
metadata:
git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
git_sha: 44948bd49d878dad6c9707e34f4a06df73c3a800
git_short_log: 44948bd49d87 (\Add linux-next specific files for 20220224\)
kconfig: defconfig
target_arch: mips
toolchain: gcc-10
Build errors / warnings:
arch/mips/kernel/mips-mt.c:233:19: error: conflicting types for 'mt_init'
233 | static int __init mt_init(void)
| ^~~~~~~
In file included from include/linux/mm_types.h:12,
from include/linux/mmzone.h:21,
from include/linux/gfp.h:6,
from include/linux/radix-tree.h:12,
from include/linux/idr.h:15,
from include/linux/kernfs.h:12,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/energy_model.h:7,
from include/linux/device.h:16,
from arch/mips/kernel/mips-mt.c:7:
include/linux/maple_tree.h:589:20: note: previous definition of
'mt_init' was here
589 | static inline void mt_init(struct maple_tree *mt)
| ^~~~~~~
make[3]: *** [scripts/Makefile.build:288: arch/mips/kernel/mips-mt.o] Error 1
Reported-by: Linux Kernel Functional Testing <lkft(a)linaro.org>
Steps to reproduce:
------------------
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
tuxmake --runtime podman --target-arch mips --toolchain gcc-10
--kconfig defconfig
--
Linaro LKFT
https://lkft.linaro.org
[1] https://builds.tuxbuild.com/25aFF2X7uoyebURaYzNHW9FVEmN/
Following build regressions errors/warnings noticed on mips architecture on
linux next-20220307 build.
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/1/build ARCH=mips
CROSS_COMPILE=mips-linux-gnu- 'CC=sccache mips-linux-gnu-gcc'
'HOSTCC=sccache gcc'
mm/madvise.c: In function 'madvise_need_mmap_write':
mm/madvise.c:55:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first use
in this function); did you mean 'MADV_DONTNEED'?
55 | case MADV_DONTNEED_LOCKED:
| ^~~~~~~~~~~~~~~~~~~~
| MADV_DONTNEED
mm/madvise.c:55:7: note: each undeclared identifier is reported only
once for each function it appears in
mm/madvise.c: In function 'madvise_dontneed_free_valid_vma':
mm/madvise.c:789:19: error: 'MADV_DONTNEED_LOCKED' undeclared (first
use in this function); did you mean 'MADV_DONTNEED'?
789 | if (behavior != MADV_DONTNEED_LOCKED)
| ^~~~~~~~~~~~~~~~~~~~
| MADV_DONTNEED
mm/madvise.c: In function 'madvise_dontneed_free':
mm/madvise.c:859:47: error: 'MADV_DONTNEED_LOCKED' undeclared (first
use in this function); did you mean 'MADV_DONTNEED'?
859 | if (behavior == MADV_DONTNEED || behavior == MADV_DONTNEED_LOCKED)
| ^~~~~~~~~~~~~~~~~~~~
| MADV_DONTNEED
mm/madvise.c: In function 'madvise_vma_behavior':
mm/madvise.c:998:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first
use in this function); did you mean 'MADV_DONTNEED'?
998 | case MADV_DONTNEED_LOCKED:
| ^~~~~~~~~~~~~~~~~~~~
| MADV_DONTNEED
mm/madvise.c: In function 'madvise_behavior_valid':
mm/madvise.c:1129:7: error: 'MADV_DONTNEED_LOCKED' undeclared (first
use in this function); did you mean 'MADV_DONTNEED'?
1129 | case MADV_DONTNEED_LOCKED:
| ^~~~~~~~~~~~~~~~~~~~
| MADV_DONTNEED
mm/madvise.c: In function 'madvise_dontneed_free':
mm/madvise.c:865:1: error: control reaches end of non-void function
[-Werror=return-type]
865 | }
| ^
cc1: some warnings being treated as errors
Reported-by: Linux Kernel Functional Testing <lkft(a)linaro.org>
steps to reproduce:
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
tuxmake --runtime podman --target-arch mips --toolchain gcc-10
--kconfig rt305x_defconfig
Build log [1].
--
Linaro LKFT
https://lkft.linaro.org
[1] https://builds.tuxbuild.com/2639g1Qugd13m3pgWwKp4I34Cb1/