You should use KCFLAGS to pass additional compiler flags from the
command line. Using EXTRA_CFLAGS is wrong.
EXTRA_CFLAGS is supposed to specify flags applied only to the current
Makefile (and now deprecated in favor of ccflags-y).
It is still used in arch/mips/kvm/Makefile (and possibly in external
modules too). Passing EXTRA_CFLAGS from the command line overwrites
it and breaks the build.
I also fixed drivers/gpu/drm/tilcdc/Makefile because commit 
		
	
					 | 
			||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| tilcdc_crtc.c | ||
| tilcdc_drv.c | ||
| tilcdc_drv.h | ||
| tilcdc_external.c | ||
| tilcdc_external.h | ||
| tilcdc_panel.c | ||
| tilcdc_panel.h | ||
| tilcdc_plane.c | ||
| tilcdc_regs.h | ||