mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")

From: Sudip Mukherjee
Date: Fri May 27 2022 - 05:11:14 EST


Hi All,

The latest mainline kernel branch fails to build for arm spear3xx_defconfig
with the error:

In function 'edid_block_data',
inlined from 'drm_edid_is_valid' at drivers/gpu/drm/drm_edid.c:1904:25:
././include/linux/compiler_types.h:352:45: error: call to '__compiletime_assert_250'
declared with attribute error: BUILD_BUG_ON failed: sizeof(*edid) != EDID_LENGTH
352 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)

git bisect pointed to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")

And, reverting it on top of mainline branch has fixed the build failure.


--
Regards
Sudip