TX2 r28.1 kernel build error.

I got “error: implicit declaration of function ‘match_string’” when i choose CONFIG_DRM_LOAD_EDID_FIRMWARE and rebuild kernel.

Detailed info:
drivers/gpu/drm/drm_edid_load.c: In function ‘edid_load’:
drivers/gpu/drm/drm_edid_load.c:173:12: error: implicit declaration of function ‘match_string’ [-Werror=implicit-function-declaration]
builtin = match_string(generic_edid_name, GENERIC_EDIDS, name);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:261: recipe for target ‘drivers/gpu/drm/drm_edid_load.o’ failed

What did I miss?

suchb,

I don’t think you should enable that config in kernel. drivers/gpu/drm is not in used for L4T.

Thanks!

I do not understand what is ‘drivers/gpu/drm is not in used for L4T’.

If not used why the file be compile when I choose that config.

According to you,so,kernel-4.4/drivers/gpu/drm/drm_edid_load.c is not in used too.

EDID things is under this folder? kernel/display/drivers/video/tegra/dc/

Looking forward to your reply.

suchb,

Yes, it may be indeed being built into kernel image, but tegra does not use these functions at all.

For display driver, please refer to kernel/display/drivers/video/tegra/dc/ and kernel/t18x/drivers/video/tegra/dc