aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2021-08-21 10:54:34 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2021-08-21 19:07:07 +0200
commit8299d1f057439f94c6a4412e2e5c5082b82a30c9 (patch)
tree1bf678d61f11f7394493be464c7876e496f7faed /target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch
parent33b6885975ce376ff075362b7f0890326043111b (diff)
downloadupstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.gz
upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.tar.bz2
upstream-8299d1f057439f94c6a4412e2e5c5082b82a30c9.zip
bcm27xx: add kernel 5.10 support
Rebased RPi foundation patches on linux 5.10.59, removed applied and reverted patches, wireless patches and defconfig patches. bcm2708: boot tested on RPi B+ v1.2 bcm2709: boot tested on RPi 4B v1.1 4G bcm2711: boot tested on RPi 4B v1.1 4G Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch b/target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch
new file mode 100644
index 0000000000..bb6f742b48
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.10/950-0692-drm-vc4-vc4_hdmi_regs-Mark-some-data-sets-as-__maybe.patch
@@ -0,0 +1,59 @@
+From f0f694e4624f63ea58b2bf3d1774cc86917f39c7 Mon Sep 17 00:00:00 2001
+From: Lee Jones <lee.jones@linaro.org>
+Date: Mon, 16 Nov 2020 17:41:07 +0000
+Subject: [PATCH] drm/vc4/vc4_hdmi_regs: Mark some data sets as
+ __maybe_unused
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The alternative is to move them into the source file that uses then,
+but they are large and intrusive, so that strategy is being avoided.
+
+Fixes the following W=1 kernel build warning(s):
+
+ drivers/gpu/drm/vc4/vc4_hdmi_regs.h:282:39: warning: ‘vc5_hdmi_hdmi1_fields’ defined but not used [-Wunused-const-variable=]
+ drivers/gpu/drm/vc4/vc4_hdmi_regs.h:206:39: warning: ‘vc5_hdmi_hdmi0_fields’ defined but not used [-Wunused-const-variable=]
+ drivers/gpu/drm/vc4/vc4_hdmi_regs.h:145:39: warning: ‘vc4_hdmi_fields’ defined but not used [-Wunused-const-variable=]
+
+Cc: Eric Anholt <eric@anholt.net>
+Cc: Maxime Ripard <mripard@kernel.org>
+Cc: David Airlie <airlied@linux.ie>
+Cc: Daniel Vetter <daniel@ffwll.ch>
+Cc: dri-devel@lists.freedesktop.org
+Signed-off-by: Lee Jones <lee.jones@linaro.org>
+Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+Link: https://patchwork.freedesktop.org/patch/msgid/20201116174112.1833368-38-lee.jones@linaro.org
+---
+ drivers/gpu/drm/vc4/vc4_hdmi_regs.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
++++ b/drivers/gpu/drm/vc4/vc4_hdmi_regs.h
+@@ -149,7 +149,7 @@ struct vc4_hdmi_register {
+ #define VC5_RAM_REG(reg, offset) _VC4_REG(VC5_RAM, reg, offset)
+ #define VC5_RM_REG(reg, offset) _VC4_REG(VC5_RM, reg, offset)
+
+-static const struct vc4_hdmi_register vc4_hdmi_fields[] = {
++static const struct vc4_hdmi_register __maybe_unused vc4_hdmi_fields[] = {
+ VC4_HD_REG(HDMI_M_CTL, 0x000c),
+ VC4_HD_REG(HDMI_MAI_CTL, 0x0014),
+ VC4_HD_REG(HDMI_MAI_THR, 0x0018),
+@@ -211,7 +211,7 @@ static const struct vc4_hdmi_register vc
+ VC4_HDMI_REG(HDMI_RAM_PACKET_START, 0x0400),
+ };
+
+-static const struct vc4_hdmi_register vc5_hdmi_hdmi0_fields[] = {
++static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi0_fields[] = {
+ VC4_HD_REG(HDMI_DVP_CTL, 0x0000),
+ VC4_HD_REG(HDMI_MAI_CTL, 0x0010),
+ VC4_HD_REG(HDMI_MAI_THR, 0x0014),
+@@ -291,7 +291,7 @@ static const struct vc4_hdmi_register vc
+ VC5_CSC_REG(HDMI_CSC_34_33, 0x018),
+ };
+
+-static const struct vc4_hdmi_register vc5_hdmi_hdmi1_fields[] = {
++static const struct vc4_hdmi_register __maybe_unused vc5_hdmi_hdmi1_fields[] = {
+ VC4_HD_REG(HDMI_DVP_CTL, 0x0000),
+ VC4_HD_REG(HDMI_MAI_CTL, 0x0030),
+ VC4_HD_REG(HDMI_MAI_THR, 0x0034),