drm-misc-fixes for v5.3 final: - Constify modes whitelist harder. - Fix lima driver gem_wait ioctl. Signed-off-by: Dave Airlie <airlied@redhat.com>
Unified · Split
| @@ -1677,7 +1677,7 @@ static int drm_mode_parse_cmdline_options(char *str, size_t len, · 1676 unmodified lines | |||
| 1677 | return 0; | 1677 | return 0; |
| 1678 | } | 1678 | } |
| 1679 | 1679 | ||
| 1680 | static const char *drm_named_modes_whitelist[] = { | 1680 | static const char * const drm_named_modes_whitelist[] = { |
| 1681 | "NTSC", | 1681 | "NTSC", |
| 1682 | "PAL", | 1682 | "PAL", |
| 1683 | }; | 1683 | }; |
| @@ -342,7 +342,7 @@ int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns) · 341 unmodified lines | |||
| 342 | timeout = drm_timeout_abs_to_jiffies(timeout_ns); | 342 | timeout = drm_timeout_abs_to_jiffies(timeout_ns); |
| 343 | 343 | ||
| 344 | ret = drm_gem_reservation_object_wait(file, handle, write, timeout); | 344 | ret = drm_gem_reservation_object_wait(file, handle, write, timeout); |
| 345 | if (ret == 0) | 345 | if (ret == -ETIME) |
| 346 | ret = timeout ? -ETIMEDOUT : -EBUSY; | 346 | ret = timeout ? -ETIMEDOUT : -EBUSY; |
| 347 | 347 | ||
| 348 | return ret; | 348 | return ret; |