summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDanish Khateeb <danishkhateeb03@gmail.com>2026-09-28 13:44:22 -0500
committerUwe Kleine-König <ukleinek@kernel.org>2026-09-29 16:06:42 +0200
commit45c3d07e3f18cff2b3ea8b797387451a3df9d421 (patch)
tree8a6a121fec90e1cb157d1772a0d82ac80187e647 /tools/perf/scripts/python
parent17dbb6938d3ab444cd6be1c95506450595a8800d (diff)
downloadlinux-next-45c3d07e3f18cff2b3ea8b797387451a3df9d421.tar.gz
linux-next-45c3d07e3f18cff2b3ea8b797387451a3df9d421.zip
pwm: Allow 32-bit tasks to use the character device
pwm_cdev_fileops has no .compat_ioctl, so every ioctl on /dev/pwmchipN fails with -ENOTTY for 32-bit tasks on a 64-bit kernel, e.g. armhf userspace on arm64. struct pwmchip_waveform has the same layout for 32-bit and 64-bit tasks, so compat_ptr_ioctl() is enough. PWM_IOCTL_REQUEST and PWM_IOCTL_FREE take an integer rather than a pointer, which is fine too: compat_ptr() only changed the value on s390, which dropped compat support in v6.19. Fixes: 9c06f26ba5f5 ("pwm: Add support for pwmchip devices for faster and easier userspace access") Assisted-by: LLM Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com> Link: https://patch.msgid.link/20260928184422.380520-1-danishkhateeb03@gmail.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions