Since commit 1226cd7c7686aee9363ec39a8a80292e27216c6b it makes nvidia (nvidia-open-dkms-580.105.08) module fail to compile:
In file included from nvidia-drm/nvidia-drm-crtc.c:27:
nvidia-drm/nvidia-drm-crtc.c: In function '__nv_drm_cursor_atomic_check':
nvidia-drm/nvidia-drm-helper.h:226:49: error: 'struct __drm_crtcs_state' has no member named 'state'
226 | (crtc_state) = (__state)->crtcs[__i].state, 1); \
| ^
nvidia-drm/nvidia-drm-crtc.c:1562:5: note: in expansion of macro 'nv_drm_for_each_crtc_in_state'
1562 | nv_drm_for_each_crtc_in_state(plane_state->state, crtc, crtc_state, i) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nvidia-drm/nvidia-drm-helper.h:226:55: warning: left-hand operand of comma expression has no effect [-Wunused-value]
226 | (crtc_state) = (__state)->crtcs[__i].state, 1); \
[...]
It seems this naming change is made only from https://gitlab.freedesktop.org/drm/tip, not from the stable vanilla Linux kernel. (I didn't see how to put an issue on freedesktop gitlab)
Pinned Comments
yurikoles commented on 2019-06-07 08:08 (UTC) (edited on 2019-06-07 08:09 (UTC) by yurikoles)
PRs are welcome: https://github.com/yurikoles-aur/linux-drm-tip-git