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/[email protected] 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(-) -- 2.56.1.911.g883d8bcb20-goog
