From 19482684dc8245b54588ea7e00361a71a2029bf8 Mon Sep 17 00:00:00 2001 From: Gordon Ross Date: Mon, 3 Jan 2022 12:53:41 -0500 Subject: 14368 make debug fails with gcc7 Reviewed by: Aurelien Larcher --- usr/src/uts/intel/drm/Makefile | 1 + usr/src/uts/intel/i915/Makefile | 1 + usr/src/uts/intel/io/i915/i915_irq.c | 1 + usr/src/uts/intel/io/i915/intel_hdmi.c | 1 + 4 files changed, 4 insertions(+) (limited to 'usr') diff --git a/usr/src/uts/intel/drm/Makefile b/usr/src/uts/intel/drm/Makefile index df5cc64..fb6ad0b 100644 --- a/usr/src/uts/intel/drm/Makefile +++ b/usr/src/uts/intel/drm/Makefile @@ -57,6 +57,7 @@ include $(UTSBASE)/common/io/drm/Makefile.mod CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-but-set-variable # # Define targets diff --git a/usr/src/uts/intel/i915/Makefile b/usr/src/uts/intel/i915/Makefile index ae5cddb..37787fb 100644 --- a/usr/src/uts/intel/i915/Makefile +++ b/usr/src/uts/intel/i915/Makefile @@ -60,6 +60,7 @@ include $(UTSBASE)/intel/io/i915/Makefile.mod CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-function CERRWARN += -_gcc=-Wno-unused-variable +CERRWARN += -_gcc=-Wno-unused-but-set-variable CERRWARN += -_gcc=-Wno-override-init # diff --git a/usr/src/uts/intel/io/i915/i915_irq.c b/usr/src/uts/intel/io/i915/i915_irq.c index 323a38f..bcde12a 100644 --- a/usr/src/uts/intel/io/i915/i915_irq.c +++ b/usr/src/uts/intel/io/i915/i915_irq.c @@ -1445,6 +1445,7 @@ static void i915_get_extra_instdone(struct drm_device *dev, break; default: DRM_INFO("Unsupported platform\n"); + /* FALLTHROUGH */ case 7: instdone[0] = I915_READ(GEN7_INSTDONE_1); instdone[1] = I915_READ(GEN7_SC_INSTDONE); diff --git a/usr/src/uts/intel/io/i915/intel_hdmi.c b/usr/src/uts/intel/io/i915/intel_hdmi.c index 5cafe9a..99c665b 100644 --- a/usr/src/uts/intel/io/i915/intel_hdmi.c +++ b/usr/src/uts/intel/io/i915/intel_hdmi.c @@ -1186,6 +1186,7 @@ void intel_hdmi_init_connector(struct intel_digital_port *intel_dig_port, case PORT_A: intel_encoder->hpd_pin = HPD_PORT_A; /* Internal port only for eDP. */ + /* FALLTHROUGH */ default: BUG(); } -- cgit v1.2.3