Following build errors noticed on arm64 and arm while building stable-rc 5.4.
Reported-by: Linux Kernel Functional Testing lkft@linaro.org
Build error: ----------- drivers/pwm/pwm-meson.c: In function 'meson_pwm_apply': drivers/pwm/pwm-meson.c:313:25: error: assignment of member 'polarity' in read-only object 313 | state->polarity = PWM_POLARITY_NORMAL; | ^ make[3]: *** [scripts/Makefile.build:262: drivers/pwm/pwm-meson.o] Error 1 make[3]: Target '__build' not remade because of errors. make[2]: *** [scripts/Makefile.build:497: drivers/pwm] Error 2
Suspected commit: ------------ pwm: meson: Explicitly set .polarity in .get_state() commit 8caa81eb950cb2e9d2d6959b37d853162d197f57 upstream.
Steps to reproduce: --------------- # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. # Original tuxmake command with fragments listed below. # tuxmake \ --runtime podman \ --target-arch arm64 \ --toolchain gcc-11 \ --kconfig defconfig \ --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-ke... \ --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-ke... \ --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-ke... \ --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-ke... \ --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-ke... \ --kconfig-add CONFIG_ARM64_MODULE_PLTS=y \ --kconfig-add CONFIG_SYN_COOKIES=y \ --kconfig-add CONFIG_SCHEDSTATS=y \ --kconfig-add CONFIG_GENERIC_COMPAT_VDSO=n \ --kconfig-add CONFIG_COMPAT_VDSO=n
-- Linaro LKFT https://lkft.linaro.org