Comments

Kernel – 5.11-rc1 Is Out – OK with (patched) VMware, Fails with NVIDIA.. — 6 Comments

    • Patch applied OK, but compile failed:
      CC [M] /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.o
      /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.c:510:21: error: initialization of ‘int (*)(struct drm_crtc *, struct drm_atomic_state *)’ from incompatible pointer type ‘int (*)(struct drm_crtc *, struct drm_crtc_state *)’ [-Werror=incompatible-pointer-types]
      510 | .atomic_check = nv_drm_crtc_atomic_check,
      | ^~~~~~~~~~~~~~~~~~~~~~~~
      /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.c:510:21: note: (near initialization for ‘nv_crtc_helper_funcs.atomic_check’)
      /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.c:514:22: error: initialization of ‘void (*)(struct drm_crtc *, struct drm_atomic_state *)’ from incompatible pointer type ‘void (*)(struct drm_crtc *, struct drm_crtc_state *)’ [-Werror=incompatible-pointer-types]
      514 | .atomic_enable = nv_drm_crtc_atomic_enable,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
      /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.c:514:22: note: (near initialization for ‘nv_crtc_helper_funcs.atomic_enable’)
      cc1: some warnings being treated as errors
      make[2]: *** [scripts/Makefile.build:279: /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.o] Error 1
      make[1]: *** [Makefile:1805: /home/rgadsdon/NVIDIA-Linux-x86_64-455.45.01/kernel] Error 2
      make[1]: Leaving directory ‘/usr/src/linux-5.11-rc1’
      make: *** [Makefile:81: modules] Error 2
      This is with GCC version 10.2.1 (Fedora 33)..
      RG

      • > NVIDIA-Linux-x86_64-455.45.01/kernel/nvidia-drm/nvidia-drm-crtc.c:510:21: error: initialization of ‘int (*)(struct drm_crtc *, struct drm_atomic_state *)’ from incompatible pointer type ‘int (*)(struct drm_crtc *, struct drm_crtc_state *)’ [-Werror=incompatible-pointer-types]
        510 | .atomic_check = nv_drm_crtc_atomic_check,

        Same issue here.

        Jeff.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.