Re: [PATCH v2 0/3] drm/nouveau: Three fixes from Clang warning audit

From: Lyude Paul

Date: Fri Dec 04 2026 - 16:36:14 EST


For the whole series:

Reviewed-by: Lyude Paul <lyude.paul@xxxxxxxxxxxxx>

Will push to drm-misc-next in just a moment

On Thu, 2026-12-03 at 09:27 -0800, Ian Rogers wrote:
> Three fixes in drm/nouveau found while auditing Clang warnings
> (-Wswitch-enum and -Wconditional-uninitialized) on an x86_64
> allyesconfig build:
>
> 1. Map NVIF_CONN_TV to DCB_CONNECTOR_TV_0 in
> nouveau_connector_create().
> 2. Clean up nv_connector and return ERR_PTR(-EINVAL) instead of NULL
> on
>    the default branch in nouveau_connector_create().
> 3. Initialize primary_crc in crcca7d_set_src() for GB20x RG CRC
> capture.
>
> Changes in v2:
> - Split v1 patch 1/2 into two patches (NVIF_CONN_TV mapping and
> default
>   error-path cleanup) and aligned the NVIF_CONN_TV case with the
>   surrounding switch formatting (Lyude Paul).
> - Carried Reviewed-by from Lyude Paul on patch 3/3 (unchanged from v1
>   patch 2/2).
>
> v1: https://lore.kernel.org/r/cover.1795106937.git.irogers@xxxxxxxxxx
>
> Ian Rogers (3):
>   drm/nouveau: Handle NVIF_CONN_TV in nouveau_connector_create()
>   drm/nouveau: Fix error cleanup in nouveau_connector_create()
> default
>     case
>   drm/nouveau/kms: Initialize primary_crc for RG CRC capture on GB20x
>
>  drivers/gpu/drm/nouveau/dispnv50/crcca7d.c  | 1 +
>  drivers/gpu/drm/nouveau/nouveau_connector.c | 5 ++++-
>  2 files changed, 5 insertions(+), 1 deletion(-)