aboutsummaryrefslogtreecommitdiffstats
path: root/lib/timerqueue.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2021-09-08 19:08:17 +0000
committerLinus Torvalds <[email protected]>2021-09-20 18:05:49 +0000
commite8f71f89236ef82d449991bfbc237e3cb6ea584f (patch)
treea1fc1704bd77c604a186055bd439be02fffcba70 /lib/timerqueue.c
parentsparc64: fix pci_iounmap() when CONFIG_PCI is not set (diff)
downloadkernel-e8f71f89236ef82d449991bfbc237e3cb6ea584f.tar.gz
kernel-e8f71f89236ef82d449991bfbc237e3cb6ea584f.zip
drm/nouveau/nvkm: Replace -ENOSYS with -ENODEV
nvkm test builds fail with the following error. drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c: In function 'nvkm_control_mthd_pstate_info': drivers/gpu/drm/nouveau/nvkm/engine/device/ctrl.c:60:35: error: overflow in conversion from 'int' to '__s8' {aka 'signed char'} changes value from '-251' to '5' The code builds on most architectures, but fails on parisc where ENOSYS is defined as 251. Replace the error code with -ENODEV (-19). The actual error code does not really matter and is not passed to userspace - it just has to be negative. Fixes: 7238eca4cf18 ("drm/nouveau: expose pstate selection per-power source in sysfs") Signed-off-by: Guenter Roeck <[email protected]> Cc: Ben Skeggs <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions