mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
2defb94edb
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/gpu/drm/i915/gem/i915_gem_mman.c: In function ‘i915_gem_fault’: drivers/gpu/drm/i915/gem/i915_gem_mman.c:342:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (!i915_terminally_wedged(i915)) ^ drivers/gpu/drm/i915/gem/i915_gem_mman.c:345:2: note: here case -EAGAIN: ^~~~ drivers/gpu/drm/i915/gem/i915_gem_pages.c: In function ‘i915_gem_object_map’: ./include/linux/compiler.h:78:22: warning: this statement may fall through [-Wimplicit-fallthrough=] # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/bug.h:136:2: note: in expansion of macro ‘unlikely’ unlikely(__ret_warn_on); \ ^~~~~~~~ drivers/gpu/drm/i915/i915_utils.h:49:25: note: in expansion of macro ‘WARN’ #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \ ^~~~ drivers/gpu/drm/i915/gem/i915_gem_pages.c:270:3: note: in expansion of macro ‘MISSING_CASE’ MISSING_CASE(type); ^~~~~~~~~~~~ drivers/gpu/drm/i915/gem/i915_gem_pages.c:272:2: note: here case I915_MAP_WB: ^~~~ drivers/gpu/drm/i915/i915_gpu_error.c: In function ‘error_record_engine_registers’: ./include/linux/compiler.h:78:22: warning: this statement may fall through [-Wimplicit-fallthrough=] # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/bug.h:136:2: note: in expansion of macro ‘unlikely’ unlikely(__ret_warn_on); \ ^~~~~~~~ drivers/gpu/drm/i915/i915_utils.h:49:25: note: in expansion of macro ‘WARN’ #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \ ^~~~ drivers/gpu/drm/i915/i915_gpu_error.c:1196:5: note: in expansion of macro ‘MISSING_CASE’ MISSING_CASE(engine->id); ^~~~~~~~~~~~ drivers/gpu/drm/i915/i915_gpu_error.c:1197:4: note: here case RCS0: ^~~~ drivers/gpu/drm/i915/display/intel_dp.c: In function ‘intel_dp_get_fia_supported_lane_count’: ./include/linux/compiler.h:78:22: warning: this statement may fall through [-Wimplicit-fallthrough=] # define unlikely(x) __builtin_expect(!!(x), 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/asm-generic/bug.h:136:2: note: in expansion of macro ‘unlikely’ unlikely(__ret_warn_on); \ ^~~~~~~~ drivers/gpu/drm/i915/i915_utils.h:49:25: note: in expansion of macro ‘WARN’ #define MISSING_CASE(x) WARN(1, "Missing case (%s == %ld)\n", \ ^~~~ drivers/gpu/drm/i915/display/intel_dp.c:233:3: note: in expansion of macro ‘MISSING_CASE’ MISSING_CASE(lane_info); ^~~~~~~~~~~~ drivers/gpu/drm/i915/display/intel_dp.c:234:2: note: here case 1: ^~~~ drivers/gpu/drm/i915/display/intel_display.c: In function ‘check_digital_port_conflicts’: CC [M] drivers/gpu/drm/nouveau/nvkm/engine/disp/cursgv100.o drivers/gpu/drm/i915/display/intel_display.c:12043:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (WARN_ON(!HAS_DDI(to_i915(dev)))) ^ drivers/gpu/drm/i915/display/intel_display.c:12046:3: note: here case INTEL_OUTPUT_DP: ^~~~ Also, notice that the Makefile is modified to stop ignoring fall-through warnings. The -Wimplicit-fallthrough option will be enabled globally in v5.3. Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> |
||
---|---|---|
.. | ||
dvo_ch7xxx.c | ||
dvo_ch7017.c | ||
dvo_ivch.c | ||
dvo_ns2501.c | ||
dvo_sil164.c | ||
dvo_tfp410.c | ||
icl_dsi.c | ||
intel_acpi.c | ||
intel_acpi.h | ||
intel_atomic_plane.c | ||
intel_atomic_plane.h | ||
intel_atomic.c | ||
intel_atomic.h | ||
intel_audio.c | ||
intel_audio.h | ||
intel_bios.c | ||
intel_bios.h | ||
intel_bw.c | ||
intel_bw.h | ||
intel_cdclk.c | ||
intel_cdclk.h | ||
intel_color.c | ||
intel_color.h | ||
intel_combo_phy.c | ||
intel_combo_phy.h | ||
intel_connector.c | ||
intel_connector.h | ||
intel_crt.c | ||
intel_crt.h | ||
intel_ddi.c | ||
intel_ddi.h | ||
intel_display_power.c | ||
intel_display_power.h | ||
intel_display.c | ||
intel_display.h | ||
intel_dp_aux_backlight.c | ||
intel_dp_aux_backlight.h | ||
intel_dp_link_training.c | ||
intel_dp_link_training.h | ||
intel_dp_mst.c | ||
intel_dp_mst.h | ||
intel_dp.c | ||
intel_dp.h | ||
intel_dpio_phy.c | ||
intel_dpio_phy.h | ||
intel_dpll_mgr.c | ||
intel_dpll_mgr.h | ||
intel_dsi_dcs_backlight.c | ||
intel_dsi_dcs_backlight.h | ||
intel_dsi_vbt.c | ||
intel_dsi.c | ||
intel_dsi.h | ||
intel_dvo_dev.h | ||
intel_dvo.c | ||
intel_dvo.h | ||
intel_fbc.c | ||
intel_fbc.h | ||
intel_fbdev.c | ||
intel_fbdev.h | ||
intel_fifo_underrun.c | ||
intel_fifo_underrun.h | ||
intel_frontbuffer.c | ||
intel_frontbuffer.h | ||
intel_gmbus.c | ||
intel_gmbus.h | ||
intel_hdcp.c | ||
intel_hdcp.h | ||
intel_hdmi.c | ||
intel_hdmi.h | ||
intel_hotplug.c | ||
intel_hotplug.h | ||
intel_lpe_audio.c | ||
intel_lpe_audio.h | ||
intel_lspcon.c | ||
intel_lspcon.h | ||
intel_lvds.c | ||
intel_lvds.h | ||
intel_opregion.c | ||
intel_opregion.h | ||
intel_overlay.c | ||
intel_overlay.h | ||
intel_panel.c | ||
intel_panel.h | ||
intel_pipe_crc.c | ||
intel_pipe_crc.h | ||
intel_psr.c | ||
intel_psr.h | ||
intel_quirks.c | ||
intel_quirks.h | ||
intel_sdvo_regs.h | ||
intel_sdvo.c | ||
intel_sdvo.h | ||
intel_sprite.c | ||
intel_sprite.h | ||
intel_tv.c | ||
intel_tv.h | ||
intel_vbt_defs.h | ||
intel_vdsc.c | ||
intel_vdsc.h | ||
Makefile | ||
Makefile.header-test | ||
vlv_dsi_pll.c | ||
vlv_dsi.c |