Skip to contentSkip to conversation

build error: f7655d42fcee drm/edid: Add CTA-861-G modes with VIC >= 193

DISCUSSION Frank Rowand 1 participant 2 messages Feb 11, 2020

lore
Share & tools
lore
#0 lore raw

I am getting a kernel build error at version 5.6-rc1:

drivers/gpu/drm/drm_edid.c: In function 'cea_mode_alternate_timings':
drivers/gpu/drm/drm_edid.c:3275:2: error: call to '__compiletime_assert_3282' declared with attribute error: BUILD_BUG_ON failed: cea_mode_for_vic(8)->vtotal != 262 || cea_mode_for_vic(9)->vtotal != 262 || cea_mode_for_vic(12)->vtotal != 262 || cea_mode_for_vic(13)->vtotal != 262 || cea_mode_for_vic(23)->vtotal != 312 || cea_mode_for_vic(24)->vtotal != 312 || cea_mode_for_vic(27)->vtotal != 312 || cea_mode_for_vic(28)->vtotal != 312 make[4]: *** [drivers/gpu/drm/drm_edid.o] Error 1

Kernel configuration:
make qcom_defconfig

(arch/arm/configs/qcom_defconfig)

Compiler is arm-eabi-gcc 4.6.x

The build error goes away if I revert:

f7655d42fcee drm/edid: Add CTA-861-G modes with VIC >= 193

The build error also goes away if I comment out the two lines added to cea_mode_for_vic():

if (vic >= 193 && vic < 193 + ARRAY_SIZE(edid_cea_modes_193))
return &edid_cea_modes_193[vic - 193];

-Frank

#1 lore raw
Quoted 13 lines · Frank Rowand

I am getting a kernel build error at version 5.6-rc1:

drivers/gpu/drm/drm_edid.c: In function 'cea_mode_alternate_timings':
drivers/gpu/drm/drm_edid.c:3275:2: error: call to '__compiletime_assert_3282' declared with attribute error: BUILD_BUG_ON failed: cea_mode_for_vic(8)->vtotal != 262 || cea_mode_for_vic(9)->vtotal != 262 || cea_mode_for_vic(12)->vtotal != 262 || cea_mode_for_vic(13)->vtotal != 262 || cea_mode_for_vic(23)->vtotal != 312 || cea_mode_for_vic(24)->vtotal != 312 || cea_mode_for_vic(27)->vtotal != 312 || cea_mode_for_vic(28)->vtotal != 312 make[4]: *** [drivers/gpu/drm/drm_edid.o] Error 1

Kernel configuration:
make qcom_defconfig

(arch/arm/configs/qcom_defconfig)

Quoted 6 lines

Compiler is arm-eabi-gcc 4.6.x

The build error goes away if I revert:

   f7655d42fcee drm/edid: Add CTA-861-G modes with VIC >= 193

I did not actually revert f7655d42fcee from 5.6-rc1. I checked out the commit before f7655d42fcee and was able to build the kernel. Then I checked out f7655d42fcee and the build failed in the same manner as at 5.6-rc1.

Simply reverting f7655d42fcee at 5.6-rc1 does not result in a buildable kernel due to other related changes.

-Frank

Quoted 10 lines

The build error also goes away if I comment out the two lines added to cea_mode_for_vic():

(quoted diff) +0 -1
 	if (vic >= 193 && vic < 193 + ARRAY_SIZE(edid_cea_modes_193))
 		return &edid_cea_modes_193[vic - 193];
 
 
-Frank