stable-rc: 5.4: drivers/pwm/pwm-meson.c:313:25: error: assignment of member 'polarity' in read-only object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Following build errors noticed on arm64 and arm while building stable-rc 5.4.

Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

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-kernel/linux/files/lkft.config
  \
 --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/lkft-crypto.config
  \
 --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/distro-overrides.config
  \
 --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/systemd.config
  \
 --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/kirkstone/meta/recipes-kernel/linux/files/virtio.config
  \
 --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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux