Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1288604imu; Wed, 16 Jan 2019 16:29:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN5nRH377bGLaCQA/wSAWLIZCpmjWs58VRbBGlBUqvW7rR9NImo8Mc53UQqL9ijEoo1WC54B X-Received: by 2002:a62:2044:: with SMTP id g65mr12605404pfg.127.1547684958709; Wed, 16 Jan 2019 16:29:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547684958; cv=none; d=google.com; s=arc-20160816; b=dDQ64ou2mPhlaYngJFLNx/KMIUAcMGCM+7xq2fpYMLzxGZcXbqfZkeT/XldduXGSDS mC+fyQK2Lykk/3jCPTrH1LoIKYJE+o+u5M53s69u337DLXdu2wCtHNLGYWjwUfRv9e20 TQxGGSsGf69+HxpA7fnkb97jcTqoRSh17ZvHigM/kIt8/cvYbNPp1+TewF+RHGFpHy+h VEqVdKk/VVQk0YcIVhGQxFXaBBk0r4/eCbFIieDBvP1XctXhA9NT2hLe7ipzDyxpQyU/ 9/GCEIrLMnv05XUwj7g6W0ohXjs6nMP3ooX0KFtVOSGKHZVn61MEvYmYa5clAcfgCIgJ TL6w== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VrPxhlb7BOJm1W7LMJvNRL/533q63zubHmBUiRd9GLQ=; b=ViGxCFp5kjkIy799V0wlztuqobI3Yuz+uIUy/90oAhE7lsAN3dxWyFWkX5F/65w3O9 68T0XEBlWqeT6p6D/3lrK4H/GR1KRG+BYezOoVMJRQ/JXw/vna3QtEKVSpTpLacY7561 XlnseqKkLyrZttWhsEX98jJTSGRu9OCAroO/JfqCnIOhUYFMNNoBMxFhxuTv5n4a1XX7 gv2E0Kj0PNOtucqyThpG4g9G25hr38ytxIuRk6i6vtaoMhHvyiEfNTS29zhJBVAamE4k GapuaTbgGJe4yQnOJiDN4tFSivYt5nv2H2HBnC5AGgL33nOqxC5z+u4qKL4xBDcKUGds qPfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=S8CIbspX; 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 n13si6870886pgp.307.2019.01.16.16.29.03; Wed, 16 Jan 2019 16:29:18 -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=fail header.i=@gmail.com header.s=20161025 header.b=S8CIbspX; 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 S1731319AbfAPTfw (ORCPT + 99 others); Wed, 16 Jan 2019 14:35:52 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:36669 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730757AbfAPTfw (ORCPT ); Wed, 16 Jan 2019 14:35:52 -0500 Received: by mail-wm1-f67.google.com with SMTP id p6so3292124wmc.1; Wed, 16 Jan 2019 11:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VrPxhlb7BOJm1W7LMJvNRL/533q63zubHmBUiRd9GLQ=; b=S8CIbspX5gnYj1jBCbD6i8haBFAzTm703HD3EVRQgiB4BVEGWCzcMKdlC7U8y3zWfL jws219DtEoZWcvO6zpoggZuF60N4Dx+tbTl5pB9fxZENtz4F6D+2/O6TibMdgZXse4Iy xSDicTJiCoCTo7N80DjbqmZkFtI70Jv9rp44KnGynWzYxwWx6hmgDfhJ0gNg822keWWL bC3CA/w/VBVtPYxt+4xlh6frnjwf3QHrqSLlmFufoJo0rQnZB+ZePAcYmR04Aa3mLMlE zcr5MBEWu958pj7m9qiwRlJLuZgDRCfY6k5GYnh03bup3TzADDzJpfaD4m5mEjYi+BJ5 rAXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=VrPxhlb7BOJm1W7LMJvNRL/533q63zubHmBUiRd9GLQ=; b=i3FLq12jeoMk5zaQuiJLcbbzwMETgYTqdQ7V5PZoIqqOfMAY/re/JwBiyz7ME/reln 07+a3jqPEwTmR+1G45eCw+xyFT1ZR1kI+bJkZ1as6Z6xN0AqwIPiGtwbHECfnJlLNA2m PLtNkVaBKEHIQanhexP//kmn/mKzflY6bmY3gb8V/Q+xjkyzPzFtULsizNABKOE2zIEv zgLjc1zdxXXLLrVBXNigp+2Ui2N6Y3BhE8Bsh2BRpL9Me1jmtdxzDi6eG3NIWqbZ61To gKC5lD454J++whHyOhcncxckS8jSZIaBklS0TpS57HoUOn/sjgCCLtkpIrqbq0Qa2kDd hFiA== X-Gm-Message-State: AJcUukfk/S4ubhugkJMoB828S5/jB3bZWvNFZ6T4yLzLI8aM6pUT/B0e PLOY3zcTp2gqh1GCtXH4M10= X-Received: by 2002:a1c:7f0c:: with SMTP id a12mr8491973wmd.89.1547667349817; Wed, 16 Jan 2019 11:35:49 -0800 (PST) Received: from macbookpro.malat.net (bru31-1-78-225-224-134.fbx.proxad.net. [78.225.224.134]) by smtp.gmail.com with ESMTPSA id x186sm40123976wmg.41.2019.01.16.11.35.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 11:35:49 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 0B41611423A3; Wed, 16 Jan 2019 20:35:43 +0100 (CET) From: Mathieu Malaterre To: Daniel Borkmann Cc: Mathieu Malaterre , Alexei Starovoitov , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] bpf: Correctly annotate implicit fall through in bpf_base_func_proto Date: Wed, 16 Jan 2019 20:35:41 +0100 Message-Id: <20190116193542.32558-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190114202941.16183-2-malat@debian.org> References: <20190114202941.16183-2-malat@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warnings (W=1). To preserve as much of the existing comment only change a ‘:’ into a ‘,’. This is enough change, 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 --- v2: reword the patch subject, remove a typo 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 2b3b436ef545..d9076e609fca 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 */ default: return NULL; } -- 2.19.2