From nobody Mon Feb 9 07:55:00 2026 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 A1A333328E2; Wed, 21 Jan 2026 14:48:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769006938; cv=pass; b=JJlQecQ8iWttZr3qFFXk/HiiJKhKhi3mDUNEXdpUTfrlXT9rN0D2l+Yo3i3XoFbetnw09dZJ3cbjIwAiNJ5hQYI9hWPtVBBucH5OBIFlXDMkVKVy8gKPT3mhzQaPWfkT2ewgP3R6X0x6k+LmluDhUOUgSp6d5AmFkuy6hqi+n28= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769006938; c=relaxed/simple; bh=wK0bt4uLVPIfbrdSjJKXJvNUCVvthacLGX20kP24yZg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d7sLoFZyxMHExT0Yp7v/hTni66fPasa1y29m+e7j6sTwYt3VAX8wHmUdOQACsDTNxIX/pa35yvBnYNxf6FLqxkOjAe0VYMeNQIMwfb7z0yInY6ys/NCfJLyEgApTFGLwoRS4jh3eq01VLpCYV8pOL8CbySeQWIpgMcwhQ0qFwhI= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b=S5+ZkMcH; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=nicolas.frattaroli@collabora.com header.b="S5+ZkMcH" ARC-Seal: i=1; a=rsa-sha256; t=1769006892; cv=none; d=zohomail.com; s=zohoarc; b=GRAq2EuTac6Mq6i0t+LyJMc7NglhbkgdhY9zkk+h8JURXr8zLYMzbtvSxbITyjSkOhrZK4N3eOqNjWhZvTBbd9BvI8VN53b2tDzYrMRYd6NcC1t2pg3P7wNFhD9ToYo8Wx/btaGGKu7Ii5qw+TxV6a40tM57fia4fl6msBkjJVE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1769006892; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=RSXhbmC3n6qv4fmbrHo/VYnmC01w0SpCKpxl71nPUq4=; b=ccZcs+LpjWcyC0wPrr+pT6obmlIHpIht5naqvc0KJv2wNO8rBiHCHY+hhec7EjJDv2uMJJPlL+aEK+aSIOXUmLtWeeICoxMklEQWEOw58Ks5MDH4N9mz9tjcGKDZVz1RtvfsedgZTdsrlUSkb5BpbOKrf3yrAgyDN7J2937vjKU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=nicolas.frattaroli@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1769006892; s=zohomail; d=collabora.com; i=nicolas.frattaroli@collabora.com; h=From:From:Date:Date:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Message-Id:References:In-Reply-To:To:To:Cc:Cc:Reply-To; bh=RSXhbmC3n6qv4fmbrHo/VYnmC01w0SpCKpxl71nPUq4=; b=S5+ZkMcHjoohd3WfGKo9QzA0/sYp1/VYdj2z98zvmyqDNz9vmNPol7P68IKSExGM NMQ1yvUqnwhrEGG53K+IXzTOFii2rwj7uD+C1SPm/a/LC4Jy3ePBmZMeghMuqCLQg9T Vqe41P8HS0iWS2L8Zlyl6/vH9U2f8QE9vayouOqk= Received: by mx.zohomail.com with SMTPS id 1769006890778410.0564390583087; Wed, 21 Jan 2026 06:48:10 -0800 (PST) From: Nicolas Frattaroli Date: Wed, 21 Jan 2026 15:45:27 +0100 Subject: [PATCH v7 20/22] drm/tests: edid: Add __maybe_unused attribute to EDID definitions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260121-color-format-v7-20-ef790dae780c@collabora.com> References: <20260121-color-format-v7-0-ef790dae780c@collabora.com> In-Reply-To: <20260121-color-format-v7-0-ef790dae780c@collabora.com> To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , Dmitry Baryshkov , Sascha Hauer , Rob Herring , Jonathan Corbet Cc: kernel@collabora.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-doc@vger.kernel.org, Nicolas Frattaroli X-Mailer: b4 0.14.3 It's normal for a test suite to need an EDID, but not all EDIDs across every test. Silence compiler warnings caused by unused definitions by using the appropriate attribute. Signed-off-by: Nicolas Frattaroli --- drivers/gpu/drm/tests/drm_kunit_edid.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/tests/drm_kunit_edid.h b/drivers/gpu/drm/tests= /drm_kunit_edid.h index f4923157f5bf..18bb7043d7e8 100644 --- a/drivers/gpu/drm/tests/drm_kunit_edid.h +++ b/drivers/gpu/drm/tests/drm_kunit_edid.h @@ -54,7 +54,8 @@ * * EDID conformity: PASS */ -static const unsigned char test_edid_dvi_1080p[] =3D { +static const unsigned char __maybe_unused +test_edid_dvi_1080p[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -160,7 +161,8 @@ static const unsigned char test_edid_dvi_1080p[] =3D { * * EDID conformity: FAIL */ -static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_max_100mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, @@ -268,7 +270,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max= _100mhz[] =3D { * * EDID conformity: PASS */ -static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_max_200mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, @@ -387,7 +390,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max= _200mhz[] =3D { * * EDID conformity: PASS */ -static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz_hdr[] =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_max_200mhz_hdr[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, @@ -495,7 +499,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max= _200mhz_hdr[] =3D { * * EDID conformity: PASS */ -static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_max_340mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, @@ -609,7 +614,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max= _340mhz[] =3D { * * EDID conformity: PASS */ -static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x1a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, @@ -723,7 +729,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_yuv= _dc_max_200mhz[] =3D { * * EDID conformity: PASS */ -static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] = =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, @@ -841,7 +848,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_yuv= _dc_max_340mhz[] =3D { * VIC 95: 3840x2160 30.000000 Hz 16:9 67.500 kHz 297.0000= 00 MHz * Checksum: 0xca */ -static const unsigned char test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_2= 00mhz[] =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x23, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78, 0x0f, 0xee, 0x91, 0xa3, 0x54, 0x4c, 0x99, 0x26, 0x0f, 0x50, 0x54, 0x20, @@ -955,7 +963,8 @@ static const unsigned char test_edid_hdmi_1080p_rgb_yuv= _4k_yuv420_dc_max_200mhz[ * YCbCr 4:2:0 Video Data Block: * Checksum: 0x84 */ -static const unsigned char test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz[] = =3D { +static const unsigned char __maybe_unused +test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz[] =3D { 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x23, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78, 0x0f, 0xee, 0x91, 0xa3, 0x54, 0x4c, 0x99, 0x26, 0x0f, 0x50, 0x54, 0x20, --=20 2.52.0