Skip to content

video: edid: initialize HDMI VSDB length - #104

Open
berringtoni36-commits wants to merge 1 commit into
rockchip-linux:next-devfrom
berringtoni36-commits:contributor/u-boot-85-init-hdmi-len
Open

berringtoni36-commits wants to merge 1 commit into
rockchip-linux:next-devfrom
berringtoni36-commits:contributor/u-boot-85-init-hdmi-len

Conversation

@berringtoni36-commits

Copy link
Copy Markdown

Initialize the HDMI VSDB length before parsing CEA data blocks.

When a CEA extension has no HDMI VSDB, hdmi_len remains uninitialized and GCC's -Wmaybe-uninitialized can fail an RK3128 build. Initialize it to zero so the existing HDMI VSDB guard has a defined length.

Fixes #85

Tested:

  • make evb-rk3128_defconfig
  • make V=1 common/edid.o with an ARM-targeted Clang compiler
  • scripts/checkpatch.pl --no-tree

No target-board HDMI validation was performed.

Initialize hdmi_len before parsing CEA data blocks so builds without an HDMI VSDB have a defined length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error: 'hdmi_len' may be used uninitialized

1 participant