Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp520951pxa; Fri, 14 Aug 2020 10:13:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBuWM/BHQcpUDnM9rjGbUP+WOWtuBjdUO3tiL9xDXfo5LX0sqi/ZcJBMY6Cs7GjCzaYoV7 X-Received: by 2002:a17:906:c143:: with SMTP id dp3mr3281299ejc.504.1597425185284; Fri, 14 Aug 2020 10:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597425185; cv=none; d=google.com; s=arc-20160816; b=slephsTB/vTauTCoHYy8cdu5zNEU61jc+FzGn3QwxgQowHP50xSIuz0Di0MIyvvG2h GedmAxQwc7lKXJYGbrzCzOOii1ouxHI3HUrbrU1LbOGbbSh56GYmSK3F/U5meD2rC/H8 RtGhfWVW1YhH1HQ7GRoo1BUdwJtul72VqxNCg6oKpKlc5/SRefjpKkKag53bjGGByH9U LGoQRbmk37PrAmYVP2nQEnAxXpD+cVfVNeVhdGY3t34f1GNMMVXW8TRQmek5J4J0gY5J 3YL/RC1CDfXrrFTnzzE+VfGtPnGymBVXYNKh7a5eqEM6ecyjodWccxl+8LcP0M6CLNm5 ewnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mglcVhzuzbD5iqytmy0ojvWdCDVMQ7Jg6r35q9ohuQg=; b=zmJfVjzUtFydLcOtAD0zJ6gezGgzee5/MQfodwkcLdvAHUqzgM+vStOnY+om6NrAj+ T4qCRDFULXPBZ/1ezolBQ0aQH6ADMMOS7hs/4HNMORPDkRsrng6LH9ul+qVvFpGUvGF7 LLg9ylshdL11BnNrlusgqvmZovhX8Wqqy6g3I3wVDn3m2ONSC2x6ve8HGxVCQgXZO6m/ HrbHC7zi6FuaSux7vQ2xxf8Xv30gnFMFMg7k2zzIN69IRhlEvMv5vY00Hs4OHUPnD8JW e/HyYU9jrB2f1wVNJkXksfbUkIGylljo2PoTnDCCWpVpB6Ife7YlgPK9B1q6mMSgNOfh bFUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QERHGCA0; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si6210150ejm.100.2020.08.14.10.12.42; Fri, 14 Aug 2020 10:13:05 -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=@gmail.com header.s=20161025 header.b=QERHGCA0; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728361AbgHNRL4 (ORCPT + 99 others); Fri, 14 Aug 2020 13:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgHNRLz (ORCPT ); Fri, 14 Aug 2020 13:11:55 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7C37C061384; Fri, 14 Aug 2020 10:11:54 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id x2so5543837ybf.12; Fri, 14 Aug 2020 10:11:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mglcVhzuzbD5iqytmy0ojvWdCDVMQ7Jg6r35q9ohuQg=; b=QERHGCA0vwz4s3O8jukMthQqaizlhaP4rs13uvD0cKQsBVG+/f5MilgpPL1Gf+z8dg UPMcwVWaNpUPCbxnEgZrMCVo402/clnyZcMoZA3vNThOOka9RVsbJziSruRvVF3/Uz2f adQyDFRPzGmErSwl0v6OSCioSKC8igEzwUygzZR8T4Nk/pPPrO8ap7DWSJUB25kWZLS5 vQJ1WCSeeQryrynpttpy6VEuyGJ9PITfaMMWiiQu39vuA8u7Ha0YxISOyQH2lzzhzFjB hYiA8H6tfHiEcyPekOrMX+/xJg/HbS9zuagXGPuqvCvsfLOv/ErLidXhUt/iqZz+BsD3 5/+w== 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=mglcVhzuzbD5iqytmy0ojvWdCDVMQ7Jg6r35q9ohuQg=; b=CkFr9CWx7nfSbg29YqaoEyeXhFiNl1PErSOr5hsBPHLGmVs/AZ/xoqlXhZY4+fDyVs j25ejdbm+L3JEDekRMz+rzd/DfGo1vSE2LDtsw80EKIo5RNM24q656MX7rJRDmnNYqMH 6JhI5fGkVcfhe3rw6FJBPiwjdSz0DZLAdeFjif0EQbpWZitjMGSczUZ7nWQ0BPvnR4RU LzL2wB1Sp4FzD+wLtygznoJzHY3t6/5jTMavTdfJJgdR5vCrYvvOOGB0V4uKlnNw8LMB ei/MCjlFv/a/mybaYz5KHCM9N4BF+gQsNhNLQfhtn7ubDzzmuBJRWJUfwcyQoSs4TLBT KIYg== X-Gm-Message-State: AOAM532GRMP7/crHAwVptnJBtqHKzMorhf7yyTVwTKANRuGc2F6xpdpn EOlFyfTHVnRK7EpxgM1diAPz24i5/u1MwZUdYr4= X-Received: by 2002:a25:bc50:: with SMTP id d16mr4679058ybk.230.1597425114113; Fri, 14 Aug 2020 10:11:54 -0700 (PDT) MIME-Version: 1.0 References: <20200814091615.21821-1-linmiaohe@huawei.com> In-Reply-To: <20200814091615.21821-1-linmiaohe@huawei.com> From: Andrii Nakryiko Date: Fri, 14 Aug 2020 10:11:43 -0700 Message-ID: Subject: Re: [PATCH] bpf: Convert to use the preferred fallthrough macro To: Miaohe Lin Cc: Alexei Starovoitov , Daniel Borkmann , Martin Lau , Song Liu , Yonghong Song , Andrii Nakryiko , john fastabend , KP Singh , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , Networking , bpf , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 14, 2020 at 2:58 AM Miaohe Lin wrote: > > Convert the uses of fallthrough comments to fallthrough macro. > > Signed-off-by: Miaohe Lin > --- > kernel/bpf/cgroup.c | 2 +- > kernel/bpf/cpumap.c | 2 +- > kernel/bpf/syscall.c | 2 +- > kernel/bpf/verifier.c | 6 +++--- > 4 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c > index 83ff127ef7ae..e21de4f1754c 100644 > --- a/kernel/bpf/cgroup.c > +++ b/kernel/bpf/cgroup.c > @@ -1794,7 +1794,7 @@ static bool cg_sockopt_is_valid_access(int off, int size, > return prog->expected_attach_type == > BPF_CGROUP_GETSOCKOPT; > case offsetof(struct bpf_sockopt, optname): > - /* fallthrough */ > + fallthrough; this fallthrough is not event necessary, let's drop it instead? > case offsetof(struct bpf_sockopt, level): > if (size != size_default) > return false; [...]