mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
3825263486
commit e8f71f89236ef82d449991bfbc237e3cb6ea584f upstream.
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:
|
||
---|---|---|
.. | ||
bsp | ||
ce | ||
cipher | ||
device | ||
disp | ||
dma | ||
fifo | ||
gr | ||
mpeg | ||
msenc | ||
mspdec | ||
msppp | ||
msvld | ||
nvdec | ||
nvenc | ||
pm | ||
sec | ||
sec2 | ||
sw | ||
vic | ||
vp | ||
falcon.c | ||
Kbuild | ||
xtensa.c |