1 From f0f694e4624f63ea58b2bf3d1774cc86917f39c7 Mon Sep 17 00:00:00 2001
2 From: Lee Jones <lee.jones@linaro.org>
3 Date: Mon, 16 Nov 2020 17:41:07 +0000
4 Subject: [PATCH] drm/vc4/vc4_hdmi_regs: Mark some data sets as
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
10 The alternative is to move them into the source file that uses then,
11 but they are large and intrusive, so that strategy is being avoided.
13 Fixes the following W=1 kernel build warning(s):
15 drivers/gpu/drm/vc4/vc4_hdmi_regs.h:282:39: warning: ‘vc5_hdmi_hdmi1_fields’ defined but not used [-Wunused-const-variable=]
16 drivers/gpu/drm/vc4/vc4_hdmi_regs.h:206:39: warning: ‘vc5_hdmi_hdmi0_fields’ defined but not used [-Wunused-const-variable=]
17 drivers/gpu/drm/vc4/vc4_hdmi_regs.h:145:39: warning: ‘vc4_hdmi_fields’ defined but not used [-Wunused-const-variable=]
19 Cc: Eric Anholt <eric@anholt.net>
20 Cc: Maxime Ripard <mripard@kernel.org>
21 Cc: David Airlie <airlied@linux.ie>
22 Cc: Daniel Vetter <daniel@ffwll.ch>
23 Cc: dri-devel@lists.freedesktop.org
24 Signed-off-by: Lee Jones <lee.jones@linaro.org>
25 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
26 Link: https://patchwork.freedesktop.org/patch/msgid/20201116174112.1833368-38-lee.jones@linaro.org
28 drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 6 +++---
29 1 file changed, 3 insertions(+), 3 deletions(-)
31 --- a/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
32 +++ b/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
33 @@ -149,7 +149,7 @@ struct vc4_hdmi_register {
34 #define VC5_RAM_REG(reg, offset) _VC4_REG(VC5_RAM, reg, offset)
35 #define VC5_RM_REG(reg, offset) _VC4_REG(VC5_RM, reg, offset)
37 -static const struct vc4_hdmi_register vc4_hdmi_fields[] = {
38 +static const struct vc4_hdmi_register __maybe_unused vc4_hdmi_fields[] = {
39 VC4_HD_REG(HDMI_M_CTL, 0x000c),
40 VC4_HD_REG(HDMI_MAI_CTL, 0x0014),
41 VC4_HD_REG(HDMI_MAI_THR, 0x0018),
42 @@ -211,7 +211,7 @@ static const struct vc4_hdmi_register vc
43 VC4_HDMI_REG(HDMI_RAM_PACKET_START, 0x0400),
46 -static const struct vc4_hdmi_register vc5_hdmi_hdmi0_fields[] = {
47 +static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi0_fields[] = {
48 VC4_HD_REG(HDMI_DVP_CTL, 0x0000),
49 VC4_HD_REG(HDMI_MAI_CTL, 0x0010),
50 VC4_HD_REG(HDMI_MAI_THR, 0x0014),
51 @@ -291,7 +291,7 @@ static const struct vc4_hdmi_register vc
52 VC5_CSC_REG(HDMI_CSC_34_33, 0x018),
55 -static const struct vc4_hdmi_register vc5_hdmi_hdmi1_fields[] = {
56 +static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi1_fields[] = {
57 VC4_HD_REG(HDMI_DVP_CTL, 0x0000),
58 VC4_HD_REG(HDMI_MAI_CTL, 0x0030),
59 VC4_HD_REG(HDMI_MAI_THR, 0x0034),