Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1131517imm; Wed, 20 Jun 2018 12:08:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLtEgKuh7JnJKZS6bGgF/iPmyr0o6EwPy7BFACUCbtDs8/dDg3Ua9A56C0gxKuC8OJJ1oey X-Received: by 2002:a17:902:89:: with SMTP id a9-v6mr24569072pla.326.1529521686239; Wed, 20 Jun 2018 12:08:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529521686; cv=none; d=google.com; s=arc-20160816; b=VHPV6afFwaQ5gDHxjR0SU2WlL1FDsXEM32kzK1j2vBT+2cMCfom6js48MnXlBxbaWw Un+CPlSKnOWOPkoatIHAw51hn4WmPgA0TcpnrFQz+XcMtjYl6icvUZep5Zsp1daJcAdS N0vhkThpA29jgK5B4CVf87g2mhwc7o/9yKHyiMcUg0xB0iqGDlcsK0xOjesacRYmhV+k 3H0rOZMgoYb+8DvGM1i24zcNPEVBbn/zFhVrulskTFLVI6KzNjVPkCdDvfcs0DjL+fDq J7c8+KUX+GMn827j9DyNhckbIcfXProJDoC0fe7ooc2/MRgTmKfoXsH5igTY5tHNHp48 An5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=fukOlylmbJzK3x8YaOyykFrlY1CE1uA3C7EEXj6V/XY=; b=NnWRl40Mmiw4XbnOTMVlbjDoLre9id0ubfrmm47EaIEhvs83iaFAkEpzohnLbttYxR RdS1SAivj7DczrGB1H30F+jXIYF+8yX+mg6w2HMPIvc7lcExMkOrW4hTZOwp1SfSfBny utYK05/Ha6Fs42zAjLegHEeXB4lHHqyh+lLAb3fmKrq2GCkR1xX70kBY9AHsye0qkf39 GDXPoo+DMfUlKPm2ARqN9S1MuOlMuJKe3KgcRia4Y9ctzNLnv+7+qbBPNM/cdKxNkD8j xFyNDFl6PjWLJ/1KfPNDkAIT15NY4kON6XGVTtiL9pSZuXbFkzcVgwpynz2NdD2Bor4R jcRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31-v6si2936049plk.49.2018.06.20.12.07.52; Wed, 20 Jun 2018 12:08:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932770AbeFTTGn (ORCPT + 99 others); Wed, 20 Jun 2018 15:06:43 -0400 Received: from mga03.intel.com ([134.134.136.65]:14770 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932737AbeFTTGl (ORCPT ); Wed, 20 Jun 2018 15:06:41 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2018 12:06:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,248,1526367600"; d="scan'208";a="209762726" Received: from rdvivi-vienna.jf.intel.com (HELO intel.com) ([10.7.196.88]) by orsmga004.jf.intel.com with ESMTP; 20 Jun 2018 12:06:31 -0700 Date: Wed, 20 Jun 2018 12:06:28 -0700 From: Rodrigo Vivi To: "Gustavo A. R. Silva" Cc: Jani Nikula , Joonas Lahtinen , David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH] drm/i915: mark expected switch fall-through Message-ID: <20180620190628.GC8258@intel.com> References: <20180620133100.GA608@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180620133100.GA608@embeddedor.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 08:31:00AM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Addresses-Coverity-ID: 1470102 ("Missing break in switch") Any other advantage besides coverity? Can't we address it by marking as "Intentional" on the tool? I'm afraid there will be so many more places to add fallthrough marks.... > Signed-off-by: Gustavo A. R. Silva > --- > drivers/gpu/drm/i915/intel_dpll_mgr.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/i915/intel_dpll_mgr.c b/drivers/gpu/drm/i915/intel_dpll_mgr.c > index 132fe63..6a40a77 100644 > --- a/drivers/gpu/drm/i915/intel_dpll_mgr.c > +++ b/drivers/gpu/drm/i915/intel_dpll_mgr.c > @@ -2566,6 +2566,7 @@ int icl_calc_dp_combo_pll_link(struct drm_i915_private *dev_priv, > switch (index) { > default: > MISSING_CASE(index); > + /* fall through */ > case 0: > link_clock = 540000; > break; > -- > 2.7.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/intel-gfx