Received: by 2002:a4a:be92:0:0:0:0:0 with SMTP id o18csp3797608oop; Mon, 14 Jan 2019 12:32:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6csGKrC+nwkoA1vOFzuJ3gLWin5qIv1dcHsw3lz3Zo5JFQCbQ/FOPLU6KY7w4LhKCIF8I6 X-Received: by 2002:a62:7504:: with SMTP id q4mr323582pfc.180.1547497925528; Mon, 14 Jan 2019 12:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547497925; cv=none; d=google.com; s=arc-20160816; b=zr7wuWu2EcLEkOJoHTFxEQLekIvmhzjds2GqxwW4JdtodirBpCrJB36/729IsgS+we 5AbAoPQXKZUl+pfTpRjLbr+c+JoWc1Rp73vCvdHAFbdvS8bx8uGl/W/ad5lAvX8dbFDY qPksguTISoZV4oWyio6kqGJmqLqZhSYNxsonDok9s55zx8h+wX8WBPai5bbhc07CxcGM sC7JXqnefa04A6vuKvs/YCBUjsdeILcODwB8lyFwzvE7vctQa5oB1QA00mLWL0WJoJ2i lTKsClD8PWzgpKmEG1l2BKLwYKcn6rprTjtoIIvJTNk15wlbGfHDfy4nfQeY8qbgasnN YiNA== 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=7cWXqdMhc+t6PzNIIuVC7ci/8hrKuBb2fONAXRsDxMI=; b=Zzkew/6pzGUVuNitOxq6AHm1ey8B7QKboLypePbhnIrHDK9t3efI6xDEdoOyfiLBon olkqGZvcmtxoSH1q9irX47+uT4tL9mwqtyhwVyT9yuqUV7lRnWLMjkBhZ8SnpQAwfrJu PWjv+aVsQ/AC8zlcloFut9HTwzKrvZhNMqW4eF5TF+TetKTOkZVFj0h0TxtoCLQNosFY TzV2hNtvAOlydWg/jHjGaiSGCymyFpRq6ap6GsbZAclRimL6G/TwAG0QaV6zoWV8xHQr z52MADbYkJ5KUCf8LUsLLrCOWt6i2wAHb9ywtMBXg1TgU93E1IwkudKhlXGFZ2tBTAWE 2u7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=uC8hJcVZ; 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 v7si1134416plo.12.2019.01.14.12.31.49; Mon, 14 Jan 2019 12:32:05 -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=uC8hJcVZ; 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 S1727110AbfANUaA (ORCPT + 99 others); Mon, 14 Jan 2019 15:30:00 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38118 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726755AbfANU36 (ORCPT ); Mon, 14 Jan 2019 15:29:58 -0500 Received: by mail-wr1-f66.google.com with SMTP id v13so426583wrw.5; Mon, 14 Jan 2019 12:29:57 -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=7cWXqdMhc+t6PzNIIuVC7ci/8hrKuBb2fONAXRsDxMI=; b=uC8hJcVZ2Sw9BXpEcj1BvM5JWZ2VPVTfkIxtuIhSFcAv4sWMSFR0z4Apa9yYQci01m 1QJ/aEt6RcxrAFUNGLbPh/lX/H0HPno8XVHZrQk9fLUiFeW4R3gUvxMMVpxkbO7OX6Tu T0MBVhKSvSCkaRL7D6bnvSq17Lh/MORvSBissDQyyS4nVkHUH1+oTd4yPhmN86apFAop 7BSdccQNrUdRkYyTK3KaBkB8b1dlWjNefcY5K+t9lflvP8sfZKy8fAuGcW8vPjmZHaKZ 3BwFHgGej941COOp1dYnHoVZGtZ/ipqMDJ+7W48NzwhwuTgRtUBgHYaPkKp5mxBVwIbR Q/3w== 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=7cWXqdMhc+t6PzNIIuVC7ci/8hrKuBb2fONAXRsDxMI=; b=XFu+jPhhWkOQ7PaDLH7mSmYnnyYQkI4PaNmIMJYu9dsZ9yWhgsgfinlrsWtq44332p NXI5tOBx5ix82uiK7E0hnCRHXZm9Fhg5IWqznd9ZjIVvpFcqRbmudHoFWhoRTmERd5XM DvVTvWLSYQqxbCnmc3sRhDIfbLLGgHiwIDs+tNEnZpflIy26TKXv+lmh5fYdyUHUp7Dr e2YuLO298sf2DwhvzZuSip+HP+oxGDrY9Mxy/+mxUV/TdkVksrbkqShvbjJya6iGceDT 8GqXHpa3Zs80MetIYWq71qn7/TeYqS1Ziu5cCKW3I4JDrgbUm+qxja1eTIfRtyid31T1 oHSQ== X-Gm-Message-State: AJcUukdz7LA9sbbDiY2/0ITrEF7bZ6jCMNwV+yepQJkrd8gchX6Hcv5t P6r2/FhI6d/ecEwFgoP3n9QGA6CN X-Received: by 2002:adf:9f10:: with SMTP id l16mr209517wrf.206.1547497796605; Mon, 14 Jan 2019 12:29:56 -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 n82sm29061952wma.42.2019.01.14.12.29.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:29:55 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id EFD0011422D0; Mon, 14 Jan 2019 21:29:49 +0100 (CET) From: Mathieu Malaterre To: Alexei Starovoitov Cc: Mathieu Malaterre , Daniel Borkmann , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] bpf: annotate implicit fall through Date: Mon, 14 Jan 2019 21:29:41 +0100 Message-Id: <20190114202941.16183-2-malat@debian.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190114202941.16183-1-malat@debian.org> References: <20190114202941.16183-1-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 thise place in the code produced a warnings (W=1). 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 */ default: return NULL; } -- 2.19.2