Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp543554imu; Wed, 16 Jan 2019 03:32:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN4HudDPSRATA9nRw9kwLx9Nb2yQNwKGucBj6fH1E4hPlWSlOD5XcoadEdTyyybUW+DWggir X-Received: by 2002:a17:902:a5ca:: with SMTP id t10mr9314398plq.139.1547638368496; Wed, 16 Jan 2019 03:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547638368; cv=none; d=google.com; s=arc-20160816; b=x91zybzbVoxLC7ebFTuTqgF3+n0IspD97mZ+Y4waIEYMNfcpSKlLxQ1A4AUR4lFiej xi6Ykx3lpY7SJ3oDKGmHOHkSlQRtbByXu/ddcgY8EduVKExaXtzbn8HeEnDhuWJqeILt NaAaDfVK4r5f3tsoo7sfEFlsnD5iQN265sgKNq5Z/6AIDYC/9khESEXm45JW497cUqGV oItplWy49UhJRGR3lQwqtkdggYnxvWWYdUdC8WkXATWcJXivMxkZ7/85dRV82SB8wS8Q LBEnbkRquJW6HnAQeQ51RBYFdEHq6s/TLPQsf24956OtiWU7ihEkw0IV+DGxOcpVQYBD ubTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=uX8iSedlLa2oJ90TnUSDiencG6gOlYYf+RPyahS3lQw=; b=mMUBM3wFwvotrxPe99nIekfVfGj4KF0IPYQJOEn/se9x6Dq9OWIEimgUDQRaQhXf2J wHyJkDE7Ni1IMGPNLUHhcGs0wtF42/eRRFy29AUmA39RV4ZoapziVsL1yBuTPQuGlqY8 rMGqjDKnSHh+vEmo0GdJIGXrM+0WkTjsxMWHBJhWknThQL6KUqTC4B2wfIiG7WkGMZg9 GY8HxJdjPNVggKUvu/YBt8zU70yyMHP70V522NFOArJ520g7Ogx+JJ3rBNnR2bXqXK2m 9Mge2XGjvati8yCez0vQxMcKcb2DBGbG8Lnc6/BRT5XxwLcqig9Co+KABHATz8BWV1CF Yl3g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m28si5966629pgn.273.2019.01.16.03.32.29; Wed, 16 Jan 2019 03:32:48 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389616AbfAOUBN (ORCPT + 99 others); Tue, 15 Jan 2019 15:01:13 -0500 Received: from www62.your-server.de ([213.133.104.62]:50996 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732293AbfAOUBN (ORCPT ); Tue, 15 Jan 2019 15:01:13 -0500 Received: from [78.46.172.3] (helo=sslproxy06.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1gjUtY-0006Nt-AP; Tue, 15 Jan 2019 21:01:08 +0100 Received: from [178.197.248.17] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1gjUtY-0007Kw-3m; Tue, 15 Jan 2019 21:01:08 +0100 Subject: Re: [PATCH 2/2] bpf: annotate implicit fall through To: Sergei Shtylyov , Mathieu Malaterre , Alexei Starovoitov Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190114202941.16183-1-malat@debian.org> <20190114202941.16183-2-malat@debian.org> <476963d1-fc1a-b185-6b33-c780fbb009c5@cogentembedded.com> From: Daniel Borkmann Message-ID: <79030d7e-4db4-c03a-b2e0-53f1b30e0924@iogearbox.net> Date: Tue, 15 Jan 2019 21:01:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <476963d1-fc1a-b185-6b33-c780fbb009c5@cogentembedded.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.2/25300/Tue Jan 15 11:33:07 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/15/2019 10:03 AM, Sergei Shtylyov wrote: > On 14.01.2019 23:29, Mathieu Malaterre wrote: > >> There is a plan to build the kernel with -Wimplicit-fallthrough and >> thise place in the code produced a warnings (W=1). > >    This? > >> In this particular case change a ‘:’ with a ‘,’ so as to match the >> regular expression expected by GCC. >> >> This commit remove the following warning: >> >>    net/core/filter.c:5310:6: warning: this statement may fall through [-Wimplicit-fallthrough=] >> >> Signed-off-by: Mathieu Malaterre Please respin and also make the two subject lines not exactly the same. Thanks, Daniel >> --- >>   net/core/filter.c | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/net/core/filter.c b/net/core/filter.c >> index 447dd1bad31f..c8069a142994 100644 >> --- a/net/core/filter.c >> +++ b/net/core/filter.c >> @@ -5309,7 +5309,7 @@ bpf_base_func_proto(enum bpf_func_id func_id) >>       case BPF_FUNC_trace_printk: >>           if (capable(CAP_SYS_ADMIN)) >>               return bpf_get_trace_printk_proto(); >> -        /* else: fall through */ >> +        /* else, fall through */ > >    The other patches seem to just drop "else:"... > >>       default: >>           return NULL; >>       } >> > > MBR, Sergei