Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp561422pxb; Mon, 16 Aug 2021 11:45:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysF09DyFJMvjHqyg30aUBNRvGnaRvVbz4oo4j1KZF3rjCh6hGdCD5yb5Bcs4AMp5qpLMQ3 X-Received: by 2002:aa7:d388:: with SMTP id x8mr13827616edq.254.1629139509369; Mon, 16 Aug 2021 11:45:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629139509; cv=none; d=google.com; s=arc-20160816; b=XcUwN2DGSOgAT2xWApqMJOO5Q37e0AHUWVaqz4GHeP77bFXHVj4eiGJGJ0zKUo0pAo aw1DSoBTvBE41Lym6pFBAMwXipDZUK6kNFVO9GCwX67ywuK7Wqv9qnMcQ7ULxRpbSbXA Ula2bPxLZdFo4UisVAA9QXKO6Rfvl20ZOdug0zBu6b+HsfEPUVchtf0TPqcVC60UznGU cSO1tWrbrV5LuZbx9UcAB6kpj4OEMRVLGJ4aTaFlldzxFG0t29Z7+08Tv3cGl3sV+Ff7 6dBCTnJPk+ey9U94LFWJaNBd/h5InSIQEI+RJXGYsXyNas+9iQX8YoIdzMKwJ3r1laqu 88xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tc8LvEjKB125fMvaYu4lvIYEHsbzSNtJpdQim2oDD+w=; b=nvtrxDzq5/rPvU9+x8KaJFiBuFCVZPAuNC68M2arKaiUKwshKG2kJeGW5/dPNDTHpQ n8rVx/3enbOvn3l69LkLu+97ELbPFwJaEH7xYnTOhzdTID1wsgDoj64Hpdht3T1uGGdO 5J0Gmq/7a6J2hKxmr9YL6PRH7NuFKS88vlqNAMyzo7hxYzusVJ11y+1C5FCFV4EGhn5O XRO+1sK+UdCPtlvgMky+hvQlWfGi4vYgtTSvRsg4R2QyjULQlllhAu2b9AkguyB4UFRb 37m6RRst5KYidiQ3X2RTIgsZF7zb18Uofq6iF4zJfuzUEFnj0T2wcskNvFqyY+RWDb5r WSog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iQi8JqbQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd12si32619ejb.348.2021.08.16.11.44.44; Mon, 16 Aug 2021 11:45:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=iQi8JqbQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230084AbhHPSnv (ORCPT + 99 others); Mon, 16 Aug 2021 14:43:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229722AbhHPSnu (ORCPT ); Mon, 16 Aug 2021 14:43:50 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB887C061764 for ; Mon, 16 Aug 2021 11:43:18 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id c12so15661360ljr.5 for ; Mon, 16 Aug 2021 11:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tc8LvEjKB125fMvaYu4lvIYEHsbzSNtJpdQim2oDD+w=; b=iQi8JqbQuE1XAZgXMTPQ/bq2ZSyLNYvZn4GHu6SXRYH7hMe75T+H4yVrj5+bLj0y/P 1bhzwOTyC9cDAoezDQaNh9rW9ZhUHP2n58JQVG9peGjJCfxR0s/1MMbESF4B2IuA5tCg QIfSTfcM9U6Y427NAhhUvuUz28zeCQFYRwTzY74OTrkzJV/1UcRlKtqLqVETjaQwcNl0 stpD1FIzlKpjpcpKNX/UVklYyyxWey440cqHOs0/sgY6Vmod/D50ivwlBpj5Y6e2+Q/y TXSFOAAAI6xpWc5F6Ui3Kam+3RtI9sSp1Z0eKsnls9Et9XhKnnK3XKaAiyL8HxUNr1o+ gcNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tc8LvEjKB125fMvaYu4lvIYEHsbzSNtJpdQim2oDD+w=; b=fnyG9FwTE85FflffNbSPIvwZ5p6tLmRc/xPCZbq9S+G0OGRkuGBEW4Ei3upNXcjBze YUfC+RUtCdm9B5kVNsZ++OQoY32TOtVtqPxZUr5PrbOcMCs/FBwrykD5cFHIohxxkU+a kQB0jXuwuvgI2KUQkKVWcW9saqF8IQOwbtxHR94uSAnRSYN8UrVQfE82lGMGBT4juI7i ss38Dd1Udg6svOmHNIQtwaQc08gcTrymBwsm06eFJmZ/83iBuZ3ZxNLKDD6UThttiqYL +SiQf5FsSDheZ/WDdVamzGZIRWIJjTFDSJC3pFbjqvXh9goD6aVqU2i9GNFCC7L5NRwb 1l+Q== X-Gm-Message-State: AOAM533tAUMVi0D0AHTi9mV4Ok77tWxNIj6vw5D7JfFZPNRGZxj+s2oH CNEqA8toXedaY7sWyPVea3EMNtm/Uyiuh6LIqPZhbg== X-Received: by 2002:a2e:94cb:: with SMTP id r11mr61720ljh.116.1629139396718; Mon, 16 Aug 2021 11:43:16 -0700 (PDT) MIME-Version: 1.0 References: <20210815191852.52271-1-nathan@kernel.org> In-Reply-To: <20210815191852.52271-1-nathan@kernel.org> From: Nick Desaulniers Date: Mon, 16 Aug 2021 11:43:05 -0700 Message-ID: Subject: Re: [PATCH] bus: ti-sysc: Add break in switch statement in sysc_init_soc() To: Nathan Chancellor Cc: Tony Lindgren , "Gustavo A. R. Silva" , Kees Cook , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 15, 2021 at 12:19 PM Nathan Chancellor wrote: > > After commit a6d90e9f2232 ("bus: ti-sysc: AM3: RNG is GP only"), clang > with -Wimplicit-fallthrough enabled warns: > > drivers/bus/ti-sysc.c:2958:3: warning: unannotated fall-through between > switch labels [-Wimplicit-fallthrough] > default: > ^ > drivers/bus/ti-sysc.c:2958:3: note: insert 'break;' to avoid > fall-through > default: > ^ > break; > 1 warning generated. > > Clang's version of this warning is a little bit more pedantic than > GCC's. Add the missing break to satisfy it to match what has been done > all over the kernel tree. > > Signed-off-by: Nathan Chancellor Thanks for the patch! Reviewed-by: Nick Desaulniers > --- > drivers/bus/ti-sysc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c > index 0ef98e3ba341..afe8222db7cd 100644 > --- a/drivers/bus/ti-sysc.c > +++ b/drivers/bus/ti-sysc.c > @@ -2955,6 +2955,7 @@ static int sysc_init_soc(struct sysc *ddata) > break; > case SOC_AM3: > sysc_add_disabled(0x48310000); /* rng */ > + break; > default: > break; > } > > base-commit: ba31f97d43be41ca99ab72a6131d7c226306865f > -- > 2.33.0.rc2 > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20210815191852.52271-1-nathan%40kernel.org. -- Thanks, ~Nick Desaulniers