Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1286996imu; Wed, 16 Jan 2019 16:26:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN6iPe1/q8FNEGmfo/mVEKCEXNmdz/mV1MTZAJVJKcRElY3RunlFO8d83IiArqLLUfB9mN/N X-Received: by 2002:a62:5301:: with SMTP id h1mr12615970pfb.17.1547684812244; Wed, 16 Jan 2019 16:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547684812; cv=none; d=google.com; s=arc-20160816; b=OblMXCUTv4TNud+yw8AoPFqWM3mWa2zi5Yery6GGyL0c9bkh3FOcFz9OH2Gr3wR/SX /y5T874g2W1iwGpfKx1mo3iqzDOHx92ZmdoyXvD/DzwFOJXsNDnQOjEd/vo3YnuijRQX ar9zx6cvcUBcb0FzZXjmufj3og9tw2lV7oJddLu+ztiNfUus/MPTJL2N2hEweynrZG5o F/K7iSOKC+vqqA+t7aOlou6C2W5yGCvKrLShtxWL+GsT1ptIcayRcZKjeMkDZJjP1Eb6 yEhWMhsAzQp4yk6EoIFpxYyFDUq/JAybQr78vnkMHq16jybZ8oZIFnM3KJs3pVue2LFq 2XjQ== 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=cLAkezdImgjAZNPsAelp7TW27U5Jn+/8v6IVUEoQBRU=; b=cU4B4xUV6Vy/0bKp1NY2wXgQdegB2GbnZRdrgdYKpvxMcODCDbpaOWC6xPIBjD9C2Y PmmgY4YJbKmAwGkASIsMMsRRSj0CTNfps3c4uKvypLMDTTJtqLrj23fni18YixX53xZW 3/pxfm6nZ8NcvGdrwA1xPN7OFSy2T4TSNAt2jlCtEJbX1ldHhQmbsV8pPk1iD5UWbJqn TWxIK/pDEm2IGjamW1U7lX9cmVpFKwjIA+h3T3Bb9ryikxgebauJPLQ8HfZwgKzK71MR kgh8Tpds+M3FMiGn0ie0ghc8hJvPSl67NYgnc7TL3dkjBSbvfQT2T7SN2ZeRe6pLlr8q hYlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="WAccO/xI"; 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.26.36; Wed, 16 Jan 2019 16:26:52 -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="WAccO/xI"; 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 S1731223AbfAPTcs (ORCPT + 99 others); Wed, 16 Jan 2019 14:32:48 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44229 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730949AbfAPTcs (ORCPT ); Wed, 16 Jan 2019 14:32:48 -0500 Received: by mail-wr1-f67.google.com with SMTP id z5so8265261wrt.11; Wed, 16 Jan 2019 11:32:47 -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=cLAkezdImgjAZNPsAelp7TW27U5Jn+/8v6IVUEoQBRU=; b=WAccO/xIlKMLISMp4ICQve40+BPtURzTAYMASHFpXpbHUpLrr63kHpfHdF93gIsl+3 faUNsLbHR8A9V7EqgUtPavU80nFL6v8oTis6ruTfO4jllGBjjhxj2ENh9XM70qoWknYc lTIEc0XDblVRQ5gs46DB+6sA9oxZmG36WPuzdclgQsHAK4ryEuvVG6Zn7SbArxr2Sf1u kWDXj44s8/3uT/ArtmzGgfCPysjeagSI56EOSxzyDxohvQjimGV60KNleZ6++nYGYz1y PpI/fP1bdsXCkpj+y+JdNHvxTfm+1TigDNbdZavF2OFe/ASXyFgRDL9Nk4S0dvwBUsDS hrVg== 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=cLAkezdImgjAZNPsAelp7TW27U5Jn+/8v6IVUEoQBRU=; b=fAWGFQt82U2buPgvD4upBcRfn89mXTAmC3sYzbGM3XIxmmzrzzJqPK8GX/3R0J/D9f YgNoF10xbeV3RmPRmHgEkJYoi7kAJP4GZkCOeI1U2a8XIPzE6F7tOexvtVI8yleivxPL iJfmhU4ftuACL9B4Lq2YLjBhT5ILkWR17b+mYoYmVY2qoPX1RpNzvaGC5+ObLsZ8DwRm q+k2Xz1XSO2smMKFK4QYB5k/UzSVfM6HiiW9M4l6t2z6TrBnd/fc2SW2hK2n+wmOHcBh KNl2Rc53wbW35ZXzUBR2rCq3QTGWf7UQ6K6yVlrso9LqoheRR2JCwvNW7PJYNIkrPGBR p2cg== X-Gm-Message-State: AJcUukcCWFEVXlGfOq5t91dwzaC0MlRYX9jGBBcNq2kvVSfTa7rU5HG/ /52qcjYhuzSqv30NZ1uMAyE= X-Received: by 2002:adf:b307:: with SMTP id j7mr9412984wrd.46.1547667166746; Wed, 16 Jan 2019 11:32:46 -0800 (PST) Received: from macbookpro.malat.net ([2a01:e34:ee1e:860:6f23:82e6:aa2d:bbd1]) by smtp.gmail.com with ESMTPSA id n15sm66967640wrt.21.2019.01.16.11.32.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 11:32:45 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 9F44B11423A3; Wed, 16 Jan 2019 20:32:44 +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 1/2] bpf: Annotate implicit fall through in cgroup_dev_func_proto Date: Wed, 16 Jan 2019 20:32:10 +0100 Message-Id: <20190116193210.32252-1-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-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). This commit remove the following warning: kernel/bpf/cgroup.c:719:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- kernel/bpf/cgroup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/bpf/cgroup.c b/kernel/bpf/cgroup.c index 9425c2fb872f..ab612fe9862f 100644 --- a/kernel/bpf/cgroup.c +++ b/kernel/bpf/cgroup.c @@ -718,6 +718,7 @@ cgroup_dev_func_proto(enum bpf_func_id func_id, const struct bpf_prog *prog) case BPF_FUNC_trace_printk: if (capable(CAP_SYS_ADMIN)) return bpf_get_trace_printk_proto(); + /* fall through */ default: return NULL; } -- 2.19.2