mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ian Rogers <irogers@google.com>
To: Lyude Paul <lyude@redhat.com>, Danilo Krummrich <dakr@kernel.org>,
	 Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	 Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>
Cc: Lyude Paul <lyude.paul@maintainer.cc>,
	dri-devel@lists.freedesktop.org,  nouveau@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,  llvm@lists.linux.dev,
	Elkin Cruz <elkin@google.com>, Ian Rogers <irogers@google.com>
Subject: [PATCH v2 0/3] drm/nouveau: Three fixes from Clang warning audit
Date: Thu,  3 Dec 2026 09:27:39 -0800	[thread overview]
Message-ID: <20261203172742.470932-1-irogers@google.com> (raw)

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@google.com

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


             reply	other threads:[~2026-12-03 17:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 17:27 Ian Rogers [this message]
2026-12-03 17:27 ` [PATCH v2 1/3] drm/nouveau: Handle NVIF_CONN_TV in nouveau_connector_create() Ian Rogers
2026-12-03 17:27 ` [PATCH v2 2/3] drm/nouveau: Fix error cleanup in nouveau_connector_create() default case Ian Rogers
2026-12-03 17:27 ` [PATCH v2 3/3] drm/nouveau/kms: Initialize primary_crc for RG CRC capture on GB20x Ian Rogers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203172742.470932-1-irogers@google.com \
    --to=irogers@google.com \
    --cc=airlied@gmail.com \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=elkin@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=lyude.paul@maintainer.cc \
    --cc=lyude@redhat.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=nouveau@lists.freedesktop.org \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®