Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1609668imu; Wed, 16 Jan 2019 23:54:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN4wjkYXRNepa/NPLEk7Ej2ld2DXHdl83YesdYPCM5Bua48SqUzxVG+Iw7IlDttTRO/xD+fm X-Received: by 2002:a63:4187:: with SMTP id o129mr11791010pga.370.1547711690095; Wed, 16 Jan 2019 23:54:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547711690; cv=none; d=google.com; s=arc-20160816; b=jRrmH4/7uRmM0n07AifZepUZ/IJSQbXaw0yPC2qDCLgQrnXreXh3jovolXsfLBJMRv Sp4iq8Zs+xtgWl39aiNBXQNI3OtxLHtSL46ID4qeVl56ne9jyF5QyO3rDmyOkiSBl2wl wrz0rhSZ+L4TtHKa+nZdUiYryj9RfoKcOhk2mHP8Hqs/2Fp4y3teoqEKWHg45JpZIvsX gjgc5MDDnT+owCXjI8K/G5vR+JzkCMExAToo1ww836S0OUxxoBc/kWVEBIyRj7Ch1Zct U8g8vX9Z2AzNdayVfWnGD7STlGkAIbxuwZY8fjbXDrPk7fWmN2o/uN90D5thAHl4iLbG qdMw== 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=gtvQ9KEQlr3VjHnPrshJevCpf5d8/LDJg0zUYeTkVfU=; b=vUc3tW87DbiAqMpdiGVmsNgw14rK5OTfsMYhaVajkSAzgr970LbljWXh0k/xirzQP+ m7v3PX/ztOVYvs1qjbOsOXr2iL3YMDAp0fBEfhVpNGdeYUaWx+i2os1sK3YdgMvZJLN7 3//Pfcsegn74unjC24lnJZ3CT7qqdKsbDiU/hTw22gHbHM7mq3JQOk0TeDFEDTLhnipR MboSIGFXD9VgW75t6JoyNwQql1bsIDYuLYNtTHfnH3UwMy0zpTtRbmebw6PuuZkUPMfT /56r2RwaB9HPP0pTRlNrOZpwnLOE/JYKJK8yHmiHJpbWnJTxSm+tuzcViV4tR/O/uiTs 2RxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=s3T46Ahg; 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 v17si996526pga.566.2019.01.16.23.54.34; Wed, 16 Jan 2019 23:54:50 -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=s3T46Ahg; 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 S1731267AbfAPTfg (ORCPT + 99 others); Wed, 16 Jan 2019 14:35:36 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36409 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730757AbfAPTfg (ORCPT ); Wed, 16 Jan 2019 14:35:36 -0500 Received: by mail-wr1-f66.google.com with SMTP id u4so8338489wrp.3; Wed, 16 Jan 2019 11:35:35 -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=gtvQ9KEQlr3VjHnPrshJevCpf5d8/LDJg0zUYeTkVfU=; b=s3T46AhgATtizBvjy2jECwbf4uNZe1wf69a7ZCqPAkz2dBpG4WjWuUoKo7l7oYBywY +1sEEmb5tLGan09s/tddYbSTdPJmzXnxhjFZbgpVGmqO7DyPf65fHNZRFr5NEc+57Jpt pNKc5v/8OOhhae0OpBDZ152G+RwFv5ED6+OpB2aYcICD2ihzrH5Y/8kOKEqBPUlW5TYX W73D2weSjXIgB7a1jC+3X9xVC0cueuHERKW6O8/6oLk4dPrM/tX0bJ+Z86hnTaLSxHpG uryzeRGvO82Aeu7Nk+mE/kBJMoUYq+7fqkh7lStpLeSSOb9yi+OCBDlUBzhfeLg13+3n Atmg== 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=gtvQ9KEQlr3VjHnPrshJevCpf5d8/LDJg0zUYeTkVfU=; b=S9M2ZW+34VPb4eiG3xDKZYPPUj/wbtpqmkecfeP4sPiD/yc2sWI4uHm1VZ1Lvpz1px zMX4XzD+8FCYWlKSV3KcVAGmeenXMYzfKm43f9VHKJApVeCy9V8u5UfGSMIagyF34Yqa CDNHXE6OCJyTJU57bGJaqDnp3hXy3xazput7UdgZ1xPpMlYjsilZIlFlDcvLqODy/Fsl sf0BTdJdv/eVTQUaUahhh4TIlLLxRjrQT/Y7aaGBeYqkNfZIvqfrGd+dACulxougCHO1 vt+m1czmByZy/ZMM9KMVX2HJc5QQQqX+zO4MzXqVl7BrJmGXFfGR4u/RJeOm3Qrfe1xU qbDQ== X-Gm-Message-State: AJcUukeXneR+QA014Ya/o6yylXSb2CkARq3BGzURDJYxsDUvOZSpkxyV tUvoFEa6qp4wPCkATaIJAdA= X-Received: by 2002:adf:e1c3:: with SMTP id l3mr9051416wri.36.1547667334326; Wed, 16 Jan 2019 11:35:34 -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 j124sm25407187wmb.48.2019.01.16.11.35.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Jan 2019 11:35:33 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id B1C2B11423A3; Wed, 16 Jan 2019 20:35:31 +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:35:29 +0100 Message-Id: <20190116193529.32488-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 --- v2: Reword the patch subject 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