aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tilcdc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/tilcdc/Makefile')
-rw-r--r--drivers/gpu/drm/tilcdc/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tilcdc/Makefile b/drivers/gpu/drm/tilcdc/Makefile
index deda656b10e..7d2eefe94bf 100644
--- a/drivers/gpu/drm/tilcdc/Makefile
+++ b/drivers/gpu/drm/tilcdc/Makefile
@@ -1,4 +1,7 @@
-ccflags-y := -Iinclude/drm -Werror
+ccflags-y := -Iinclude/drm
+ifeq (, $(findstring -W,$(EXTRA_CFLAGS)))
+ ccflags-y += -Werror
+endif
tilcdc-y := \
tilcdc_crtc.o \