Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6148262ybi; Wed, 31 Jul 2019 09:08:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDMbUklcFYE8kMaiUjMOF6+nh53QPO5gONza57FJxzjdK+HKV1M1+12rCqyVEXF0cD8jYZ X-Received: by 2002:a62:1444:: with SMTP id 65mr47499747pfu.145.1564589289252; Wed, 31 Jul 2019 09:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564589289; cv=none; d=google.com; s=arc-20160816; b=jy7KzJvSudCkfSnCgqx6JxDSgRWLThICsqxERH9dc1GqoHPE/oLnt75cpLzTjUeH3z +5JOLjCDuqMrKKHDy5rUKPd3Lh2nPKSzhGgLx+vcAFh3zdMdlaw3gIn2EM0Te+tGw4/d Xrei/5MHfnPc29Gpl8r0B5DXA8oEeddQxvmgzTQ5mrz3EIqOszzhjD7G/KPPhTBp0mwS IitJXxueOoSjgZRB8z6jhWCXoqB7z4CEOCtKa6CwQmJWZWBzz5a6C50Dfk0irAlJILPk 4j/AiUhpg04YiRU0nj30eCMb/KBOMz1hlqJ/fl+VTLOzkhARViHuPuMr593+Dp5+npyA 9bCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=dw5dQKwX8ASG6Ts6LgBuSFToiWxM+evOZX45eitYT60=; b=G348m7Js6T1KUMTLr3UsEq0A3FjZG89i/72THhswA4uxrYLUfmikxI73QOzUubWdeY 7j005YFdl9ZfN7zC2zK4Iln9XabUop2Ymg0Gczw9LGdrjF55/69hFBe7AKTkqVDaZ6JE q2HwoVgYAFogr7y0ADoF1y7L2Ijxx3PEq1CTSQ9rm5QWRyZ/W8kOxKTlQH2UH78l5Dh/ 0u3emm701w2hPPSBr+eXE1IDvBeqg3LwrLeIeO3Qbn4DrvldjDtboGIptZNiyRX14eLx tKnRZCVWpnlHvt1lfrRRhCcq4gXvDLGVWrsYP5YGPLPgUGfy8CFURQmVyYvuWg8tKXni OX2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nXhNdnpz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7si34881445pfi.253.2019.07.31.09.07.53; Wed, 31 Jul 2019 09:08:09 -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; dkim=pass header.i=@chromium.org header.s=google header.b=nXhNdnpz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730037AbfGaQGK (ORCPT + 99 others); Wed, 31 Jul 2019 12:06:10 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42000 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727799AbfGaQGJ (ORCPT ); Wed, 31 Jul 2019 12:06:09 -0400 Received: by mail-pg1-f196.google.com with SMTP id t132so32246181pgb.9 for ; Wed, 31 Jul 2019 09:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dw5dQKwX8ASG6Ts6LgBuSFToiWxM+evOZX45eitYT60=; b=nXhNdnpzQ5klubCtfPKL3rrjBDdkcECAJhbzNalPGdQFtuHxtHL5KFS8kYJxX01zI+ 3GqX/EXvBnWwabWBFeHJWv8ENvMiwnd744dcdIMl23dIdrN9eqdKH3FEaOzYWG/FLHW+ snA2P3tt9xmBEcE0wzL9JO6YiPQXK/ecFHfTM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dw5dQKwX8ASG6Ts6LgBuSFToiWxM+evOZX45eitYT60=; b=liDdX7PLJeOL2/i5E5vA4QjaZ6V8YvTLBDQB6BFEj8tLRjt8CRTP77MdO/lMXcZk6O IzBPCChOOElkm2swVr5Sq7Z2eHQ7pv4DZaPckrTA3XVj0DYYGRvn+vu/BMljY/d/zU0/ YaBkAxMD6cBoE0Cj1b++VZGTeaIVsfLNO7MpXdF4j4bcbcmhXEUyD8BWiOZBV9MpNwOj mo8uNg43aVdBjdP1znKuUWgBnKkYsiIGpjmMH0CYJu+gtGMoeNe3r0YLOD455Me7aXL+ F2/ASwRjhJEmGekU4s+DqbNg1ssT3NP8Yc4x7Gq//78aK/J/4Lxc8jf//qBxPSJ5/RQW Bgiw== X-Gm-Message-State: APjAAAUG6W4WECsDWLoHJH7jtXIetrulDve9Nv9N6RAZubV2IrOEg3DM d4yg6TDArtBi046NhKEzGhOe/Q== X-Received: by 2002:a63:ff03:: with SMTP id k3mr19399349pgi.40.1564589168950; Wed, 31 Jul 2019 09:06:08 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j15sm98920836pfn.150.2019.07.31.09.06.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jul 2019 09:06:08 -0700 (PDT) Date: Wed, 31 Jul 2019 09:06:07 -0700 From: Kees Cook To: "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 Subject: Re: [PATCH] mmc: atmel-mci: Mark expected switch fall-throughs Message-ID: <201907310905.B90C6E25@keescook> References: <20190729000123.GA23902@embeddedor> <20190731113216.ztxckd54a74g2lw5@M43218.corp.atmel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190731113216.ztxckd54a74g2lw5@M43218.corp.atmel.com> 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 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 > Acked-by: Ludovic Desroches Thanks! -- Kees Cook