Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3981828imu; Mon, 14 Jan 2019 12:36:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN5QPnBQmOWKMdjqAXNUgKKhFyktwEvOPsS1VXcUchvV1UC4UdNQJn/Kgx1xziPCjEWv5keN X-Received: by 2002:a62:5c1:: with SMTP id 184mr305325pff.165.1547498165458; Mon, 14 Jan 2019 12:36:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547498165; cv=none; d=google.com; s=arc-20160816; b=k3iJt/sA783tXyHbguj41p3moNmsK0ttrdzMynVmV/1dz/5miukbIsvMpbVwZ7cuol jQMj3gBMrzpAHnEVeP8dOJmamzADUarTR0ebRzIPHhwlfo84qjv9Q0XlkqmOUGAH4ISz jZ7rrkun9Mjh1DghU9nceFBZznowMRyOQ+pj2QdYJVBEO11wh0CPMSmRr1lHvpqLxHAL Kbvxu4sX8LVEph5M8HmN2tHSEBXElib9Crdz7osf7vy0gWJVFnkLh4oh2EF+d+nucOgx WX+p8OxmhfKEgNb56kr2VoHr+//eJe/zC5V6MMBnGWWMpnjOkRqwZOndJETEV4fmptT5 2Qkw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VRCHRN2zgbtb9dhSutp8UExL6ln3N5IjtJiROzv5+EY=; b=lacixrQfpNEBPywvzLEqkgdMA/Mx70xZ3E9A1nQqRfl3G2vuTrutlxzdQXF3UsLGqk 3gbBpaQEu0ePyuT7BT5PIwnl0Dou5kVIYzr99a4WLDaQoztPjuk8MU2gRfV5H//dRsNo J/7CzTognN80Lfhk6+vcDP+iTnA+G4CZVj44XkFsQx8eOhiAqBQhsin8nEC81wM9QImT T+Arc80kQeDC1/d3Ozrf3jR41iWLzFINjTkvkJWJW0y3HGfi6t1C92O/uG5YSZLDqkFL vsWUo0OhCTI9QlhRhNCaPfAIbgnmRpVIKSTTL5T7oViAiHDPGr6k9muNggvH2o1v1GpE e6Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dMyZkmzG; 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 u22si1177252pgh.286.2019.01.14.12.35.49; Mon, 14 Jan 2019 12:36: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=dMyZkmzG; 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 S1726865AbfANUdw (ORCPT + 99 others); Mon, 14 Jan 2019 15:33:52 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46794 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfANUdw (ORCPT ); Mon, 14 Jan 2019 15:33:52 -0500 Received: by mail-wr1-f66.google.com with SMTP id l9so377331wrt.13 for ; Mon, 14 Jan 2019 12:33:51 -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:mime-version :content-transfer-encoding; bh=VRCHRN2zgbtb9dhSutp8UExL6ln3N5IjtJiROzv5+EY=; b=dMyZkmzGuBkiuiX9QEqhmTwAO2uepDIlG1/kHyocEEQz/j52tzpAIvBu8q8jRqAWIl e76Ahav0SDRH+xbt4IHPqIP3rTqofB6PEu6SEy4nieMQch+mk5ITJ/SOdRUz073SiV4z DpIvLsB6OFiRehQUAUfFM613vB6qeyD37Hz6mJkUJjSG5cU5zDJXzAyE2F/Fhg9urNcX B+IiRSGjIoElXrf02yk6NqejBBKVKK5vfAHKYXUdU3on2ksmiSbniiqQZHjaRFr8y1J+ Ef3lRESLz9PXxb4gi/3u8zmzc1XR+trlXV/6Rc/I4MQmUm1C9u4YML+6t1QUTwQKUY97 iPzQ== 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 :mime-version:content-transfer-encoding; bh=VRCHRN2zgbtb9dhSutp8UExL6ln3N5IjtJiROzv5+EY=; b=m6Z1UprCA7FowbVYP6RGTzfT8sFvEPPkfDwlG9TiRrDtmiBsSXxJhB3hrbxTPc91WW 8YLZAfrMGES0906csiNNPPd+9OtR4P7ftryxaXkfxMtopsICcljwUv92hKZ+HlCXTK6+ GdyrguAFr9ApTX5H0ivBYZoM0zgWd8RfsOQfwd5u+y08JhoK3qyicNmgyTgBPbxUWluX cZgtR6CSK4C6r0oYhP/SDqXmvj8KX/AUZMSDiOYc7SkC41sAfcnT1sPt2sVnEGDElA6O 02zigscxLxl4UBZIYZh5oAAw00ve9jmrX3etQtoB27NPJtDJs4Eetvu387fS3dt29ZlX Ae9g== X-Gm-Message-State: AJcUukdGYXIfGBng5wUCgy80uxVBWJ8N0O2OQknd9mfXpDi9rMk7kuoB pFptMZ4HnyFzTXki2ZNJCBhZ14kx X-Received: by 2002:a05:6000:51:: with SMTP id k17mr173250wrx.259.1547498030198; Mon, 14 Jan 2019 12:33:50 -0800 (PST) Received: from macbookpro.malat.net ([2a01:e34:ee1e:860:6f23:82e6:aa2d:bbd1]) by smtp.gmail.com with ESMTPSA id e17sm57309842wrs.79.2019.01.14.12.33.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:33:49 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 48CC611422AD; Mon, 14 Jan 2019 21:33:48 +0100 (CET) From: Mathieu Malaterre To: Andrew Morton Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org Subject: [PATCH] kernel/sys: annotate implicit fall through Date: Mon, 14 Jan 2019 21:33:46 +0100 Message-Id: <20190114203347.17530-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 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 warning (W=1). This commit remove the following warning: kernel/sys.c:1748:6: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- kernel/sys.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sys.c b/kernel/sys.c index f7eb62eceb24..dc5d9e636d48 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -1747,6 +1747,7 @@ void getrusage(struct task_struct *p, int who, struct rusage *r) if (who == RUSAGE_CHILDREN) break; + /* fall through */ case RUSAGE_SELF: thread_group_cputime_adjusted(p, &tgutime, &tgstime); -- 2.19.2