Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6979873ybi; Thu, 1 Aug 2019 01:20:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWMj/E1wS9QBwyddD91nun3LqiLzluMK0QWlTANu/BsJvZCBsSH+AcJyOfFwMGQE60WwU3 X-Received: by 2002:a17:902:b20d:: with SMTP id t13mr118745181plr.229.1564647648665; Thu, 01 Aug 2019 01:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564647648; cv=none; d=google.com; s=arc-20160816; b=p/OVCb+PxELkUJyLB90QtWrJ4WI24PWsu9+HlFhkHcfUIAPMinFxz69Ue9Wke5BOg8 Z3X9SGXgBvMtOvJySFmRf6F7oYeYGnIs4vqR6XWcnZ8p3LIWiDaD4/gG2dEkNpJIrvbf QCeImfsQTp5OF9rvCbRS1U1l0b8HAXdIU2P5yJ7qDngLYQiH407iEodSLkg9utt7sx7M /YSSx7ok7eMqVKAsksir2Je9dfHtK544r0RIejncdx2MzBDHc9jthYy6rNjk8pbmBkS0 HY4qPc2m8kC8KTThu45C5NhQL2wzyuDxaqNmpZ3BoMaSF86djBwIEpJ6gjGK0/iCzaQs vKVg== 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:mail-followup-to :message-id:subject:cc:to:from:date:ironport-sdr; bh=w5O/hG8xpJkQw4qgj9mM3skus0ZiFa53ZVEbW8tzkuU=; b=e+XOk0kE7L92Y2EPXcxRABVk/0S1VyEbiozcL03Fj3Cf7WMmQxrhx9QUAtXqezq//y dldydDh9JTHzGxZBAyxEQhYEQCGLoX3EYv3W8gqSqp0xTc2g6v9ZrCXmxzrQLi8VDT0c 0isU1ezxkKGikE8PqPTTpqFOAj6E8eCaNFrrHqcLttSrS2YyXTr3Wk5fFpb6cCt6lum+ to44Ot7dsR81ORGRNN5MWFytP3iiITQwCxU2wenIo0ecJi3waH/S8s/fd57L9vR69z6r WUfv6eilD5UzGITMSZsciGkSgudqInrWHvzvZgW7X3xv2L4kGzGI4v/9racf74PW9F9r GyNQ== 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=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s101si3315737pjc.5.2019.08.01.01.20.33; Thu, 01 Aug 2019 01:20:48 -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=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729937AbfHAHMi (ORCPT + 99 others); Thu, 1 Aug 2019 03:12:38 -0400 Received: from esa4.microchip.iphmx.com ([68.232.154.123]:54705 "EHLO esa4.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfHAHMh (ORCPT ); Thu, 1 Aug 2019 03:12:37 -0400 Received-SPF: Pass (esa4.microchip.iphmx.com: domain of Ludovic.Desroches@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="Ludovic.Desroches@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa4.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa4.microchip.iphmx.com; envelope-from="Ludovic.Desroches@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa4.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Ludovic.Desroches@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com IronPort-SDR: KOIO5aPBnyj78kcD+HN+oud5Hl32sOC01iATWdQpiINf+aunYA+T17ybBj6R6SPmU8+RWsXEDu CTHM8/wdD9a6tdnC2nox7Exyes0RUqxzW1IlcFaZLcK9pWvHOnrAE6HUXty+yNVE2EJGnQms4V vVXFrt7qiWoO3SbmWKY0PKRI2Jy08xwDCiCZs+C+h/VFTXd/e8sR7/6F/7po6fjE8AuOqF1vr7 WXT8LCzLeNeq750Uk4QtJcPkSQ89LMcBhpuBFZDnVo/ZEPt2n8Xu4UNozSThA54kKoY/rbbbiU rSU= X-IronPort-AV: E=Sophos;i="5.64,333,1559545200"; d="scan'208";a="42778277" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Aug 2019 00:12:36 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 1 Aug 2019 00:12:33 -0700 Received: from localhost (10.10.85.251) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Thu, 1 Aug 2019 00:12:32 -0700 Date: Thu, 1 Aug 2019 09:11:36 +0200 From: Ludovic Desroches To: Kees Cook CC: "Gustavo A. R. Silva" , Ulf Hansson , Nicolas Ferre , Alexandre Belloni , , , , Stephen Rothwell Subject: Re: [PATCH] mmc: atmel-mci: Mark expected switch fall-throughs Message-ID: <20190801071136.37yjjr3kmdhfyxna@M43218.corp.atmel.com> Mail-Followup-To: Kees Cook , "Gustavo A. R. Silva" , Ulf Hansson , Nicolas Ferre , Alexandre Belloni , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Stephen Rothwell References: <20190729000123.GA23902@embeddedor> <20190731113216.ztxckd54a74g2lw5@M43218.corp.atmel.com> <201907310905.B90C6E25@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <201907310905.B90C6E25@keescook> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 09:06:07AM -0700, Kees Cook wrote: > On Wed, Jul 31, 2019 at 01:32:16PM +0200, Ludovic Desroches wrote: > > > drivers/mmc/host/atmel-mci.c:2426:40: warning: this statement may fall through [-Wimplicit-fallthrough=] > > > host->caps.need_notbusy_for_read_ops = 1; > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ > > > drivers/mmc/host/atmel-mci.c:2427:2: note: here > > > case 0x100: > > > ^~~~ > > > > > > Reported-by: Stephen Rothwell > > > Signed-off-by: Gustavo A. R. Silva > > > > I don't know if there is a policy in the kernel about the expression to > > use. As this one does the job > > Yup, documented here: > https://www.kernel.org/doc/html/latest/process/deprecated.html#implicit-switch-case-fall-through Thanks for the pointer. Regards Ludovic > > > Acked-by: Ludovic Desroches > > Thanks! > > -- > Kees Cook