Skip to content

drm/nouveau: Two fixes from Clang warning audit

Ian Rogers dri-devel lkml llvm nouveau 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/nouveau: Handle NVIF_CONN_TV and fix error cleanup in nouveau_connector_create()drivers/gpu/drm/nouveau/nouveau_connector.c+6 -10 replies
2/2drm/nouveau/kms: Initialize primary_crc for RG CRC capture on GB20xdrivers/gpu/drm/nouveau/dispnv50/crcca7d.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drm/nouveau: Two fixes from Clang warning audit

Two independent fixes in drm/nouveau found while auditing Clang warnings (-Wswitch-enum and -Wconditional-uninitialized) on an x86_64 allyesconfig build:

1. Handle NVIF_CONN_TV and release nv_connector on error in nouveau_connector_create().
2. Initialize primary_crc before switching on src in crcca7d_get_crc() for GB20x RG CRC capture.

Build-tested with LLVM=1 W=1 (-Werror); not runtime-tested on Nouveau hardware.

Ian Rogers (2):
drm/nouveau: Handle NVIF_CONN_TV and fix error cleanup in
nouveau_connector_create()
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 | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 1 line
2.56.1.708.g77570a6a1d-goog