Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4548003imu; Tue, 15 Jan 2019 01:48:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Q9CxbplkKvnMg/HOpkeQQn2vNZe6Akw77iORWGYOi5SJ/n8HoJ9bOcPXZzVSeM9ZtnzfL X-Received: by 2002:a65:55ca:: with SMTP id k10mr3014159pgs.448.1547545699996; Tue, 15 Jan 2019 01:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547545699; cv=none; d=google.com; s=arc-20160816; b=yB8l91siOb/SvfdCWnAyAf0EjrUFUchfF+A74/tSdLlpqsjCtHD0Y2eETvHPmB+Mvu MNTPvPgUWq1w1Tu42eBkc9VfkkCaiKTQD5tuIlw3BgLZYFDt9PuCjbr5wB5Wyn4mW4PU Go+QK8muno5obnAo00LdsbXJKenwKYNFiPlHeicDaTB+YBAOSUUYo69wvFoATyCXzw+R Pt8c7Js7A9PCXQ3BFSht3WIPWIag6ew/Swenj0trOjriWi97fF8SJKviOcpPzzdI6WQt dn/4pQIQ92Jl1z4B0Z7o9frBM/seKQwqPX7tkx0ltGWero+SENH+iutitMc2eHZr48OB bgHA== 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:dkim-signature; bh=dLgVhkEpwKrEww2s+xVUkpzSW6S/MsBrC2BC0XW0zWI=; b=PUIS9tuYJXq4GIwXUjd4oM2mOGCcbEOmytCrk2am8LB3Jo6zv9+ZN8qCo+1lJgH8Ew RAl2cjTORScls71XTuZlcegEtQPBpllT1aWAu8PMPOIwFFk/IAuc5QMSYt0OvssnT2Xd Dc3U5LrZVeqIylnP5LaHvNG6CFmexY3qjf6QURFAmCp/rkiokU/RGEnf3n+hNh/+TL5H yBL0dK6qGmS37h8z+tfALBvOwoeJzygyA1YOBTKAscmGn5oBB/aGbF3D/p+UHyAdn1tM qpQnURlbmiEOIK0FojgJrm8ps4iQzs20gy+un5fKyNTA2QU/gT1WDJQV03hFLq9GUmYX Aw4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=cFFo0enK; 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 v8si2825153plp.215.2019.01.15.01.48.04; Tue, 15 Jan 2019 01:48:19 -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; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=cFFo0enK; 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 S1728301AbfAOJEK (ORCPT + 99 others); Tue, 15 Jan 2019 04:04:10 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41007 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728219AbfAOJEJ (ORCPT ); Tue, 15 Jan 2019 04:04:09 -0500 Received: by mail-lf1-f66.google.com with SMTP id c16so1424731lfj.8 for ; Tue, 15 Jan 2019 01:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dLgVhkEpwKrEww2s+xVUkpzSW6S/MsBrC2BC0XW0zWI=; b=cFFo0enKWQvo+50UnTKSgKaimlo+rtBPE6LnSb1H/89zOnAmdpkUrPpgCbyn+6pkCe 30KmxViW827zu20t8Zlj/bE2TMDAGslcWedJJPVRSDlz4DRz2mYkBwQS6/6qMqNyiLuv 63RCpRDjfBm3VWKIvTtHuW3nC80umKo7H75dfr2e74Qn3ncgeIiYwfov6OB2aeCCMvFH z4C+J+QjxDDOHaqgBYeoi03ayFgnjJ9DFR7JTL1ZOiRaN4pOOm/dRBJZMHpO/7Sl0V+h Cc0GOGUx2FBfK/77Nl29q5ET/QyjkD31fkjNL44PkghMK3SQ/BmulMP+j4SXrD3YFjGx MmsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dLgVhkEpwKrEww2s+xVUkpzSW6S/MsBrC2BC0XW0zWI=; b=a2ZBS1Zkjpaon5pquohqfSPd52/Um/gFnNNChhfKYC2CslmnDpwxjQ9ljlbIsFqaV0 HeULovvAylDdmA/Tu6Oemv+XwqZ3S6yWh+eShxAS5x4BXXgQX7b6gH3UT396idQmpYBB NIl/ya91Lxq9N2489V+oseUe7pgv9oPzJTWHIw5Wbxn/xNLqKphKYic2Jb1cKBCFVamm GDmSXQPL2rNbDTyaTikMMdJqBbCmZYSXkN0Wr38yGUyICeo/bD+146fIZ62kUQUXpqzo 1xGxx/D5FYYf99KSejJ4T6azMnGQAT/Ww3MOd0qvP+q4bNRNCMreoTPD+QYPKgeRsQ31 aBHA== X-Gm-Message-State: AJcUukeV0l4DF/Mn3rg5ROUY8Vdx1OENGU/+Lymiv612xjnIwCq/GfcI dvAPo6a9xXveAMpoW93J68Odz/iBax0= X-Received: by 2002:a19:d242:: with SMTP id j63mr2133017lfg.26.1547543047518; Tue, 15 Jan 2019 01:04:07 -0800 (PST) Received: from [192.168.0.199] ([31.173.81.70]) by smtp.gmail.com with ESMTPSA id b22sm514319lfg.32.2019.01.15.01.04.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 01:04:06 -0800 (PST) Subject: Re: [PATCH 2/2] bpf: annotate implicit fall through To: Mathieu Malaterre , Alexei Starovoitov Cc: Daniel Borkmann , "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> From: Sergei Shtylyov Message-ID: <476963d1-fc1a-b185-6b33-c780fbb009c5@cogentembedded.com> Date: Tue, 15 Jan 2019 12:03:59 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190114202941.16183-2-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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