From nobody Tue Jun 16 08:56:47 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 715E82253B0 for ; Fri, 17 Apr 2026 15:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776441321; cv=none; b=WWyozHHohY5qj61IyoEWlUSEAuiuy8pGE9iSPwjQbLhKWs+fTIv77bE+Y+MyHXChEiSyO24d364TPsQPX7CRFlDiK8kTwQyf1tVzpLb8OJ5QFvIbXcd/ZD0+ffm4eg6CpxoJeVbbQWyhbXhwf7+QbENasdwXzg9FatmYFVCvYTE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776441321; c=relaxed/simple; bh=HeetwJ/meEGIUCbUJcq+90eEadtIvegv7d8XY1Vaa9s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ctKx04OigY4C0LZneDSwvs3NNFefNMOQPHq+RY3asMMslMnag/fDGLz0/CVGuW3F03PR6L4UUnT7l6UmcV7GE4GEuWmG30xf9bRA9T5vdlV1iDd3Ci81sxjYoWqvVtygaYvqKklzqBJYu4P/p/qxu1EODxb0dKcx6ZERXxhdk6Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ZvuU6N9B; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ZvuU6N9B" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 8F490C5C3E8; Fri, 17 Apr 2026 15:55:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 00AA760497; Fri, 17 Apr 2026 15:55:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8EB63104608CF; Fri, 17 Apr 2026 17:55:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1776441310; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=GTy9tX8Vw514cPMJIpx3/eyD9ty9G5fF7pNizIfxcbA=; b=ZvuU6N9Byz4Noq7oyAQL9DepHFWFaG/0ewv/P/+q/Ro+fyZAUuxxMToRQuLKBH7cX7JK39 g6NDrzvrwEKW1ClpZdDmWQ+tiRJcsD4bweg9/NisQ0HVLHyhY7tbtvh4Kkhy/mjrgeeryg lY36M8qLlDUn8uLJh5eNZzmtPN4/1sWnhj6BbvtiUu5o793FGOOLC2fw9hKAlyM7xBywGX PVtWJZx0ibI1AmV1wMYB6ri9dEgzy230XvZTTveIGsLPnJk/LU+fSvAnECN1UMgaGozSyo HrOVtKfvX0AxUzAJP/R0oKq+OHpDvC4m0AnzGVJYzD8n8sEyj5zhUx0nXTwo0A== From: Kory Maincent To: Luca Ceresoli , "Kory Maincent (TI.com)" , Jyri Sarha , Russell King , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Bajjuri Praneeth , kernel test robot , thomas.petazzoni@bootlin.com, Russell King , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Subject: [PATCH] drm/bridge: tda998x: Return NULL instead of 0 in tda998x_edid_read() Date: Fri, 17 Apr 2026 17:54:45 +0200 Message-ID: <20260417155446.1068893-1-kory.maincent@bootlin.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" From: "Kory Maincent (TI)" tda998x_edid_read() returns a const struct drm_edid pointer, but when tda998x_edid_delay_wait() fails (process killed while waiting for the HPD timeout), the integer literal 0 is returned instead of NULL, triggering a sparse warning: "Using plain integer as NULL pointer" Replace 0 with NULL to fix the sparse warning. Fixes: c76a8be4feec ("drm/bridge: tda998x: Add support for DRM_BRIDGE_ATTAC= H_NO_CONNECTOR") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202604172257.Imo6GOH9-lkp@int= el.com/ Signed-off-by: Kory Maincent (TI) Reviewed-by: Luca Ceresoli --- drivers/gpu/drm/bridge/tda998x_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tda998x_drv.c b/drivers/gpu/drm/bridge/= tda998x_drv.c index 779b976f601c1..6c427bc75896b 100644 --- a/drivers/gpu/drm/bridge/tda998x_drv.c +++ b/drivers/gpu/drm/bridge/tda998x_drv.c @@ -1293,7 +1293,7 @@ static const struct drm_edid *tda998x_edid_read(struc= t tda998x_priv *priv, * can't handle signals gracefully. */ if (tda998x_edid_delay_wait(priv)) - return 0; + return NULL; =20 if (priv->rev =3D=3D TDA19988) reg_clear(priv, REG_TX4, TX4_PD_RAM); --=20 2.43.0