Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3983350imu; Mon, 14 Jan 2019 12:38:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN6fTFiSdf/pHenRgqwjcbErSg4cwZcqBND8D3JldTfenkqD/0eJGicJhxuE+/XXjiFsAKzW X-Received: by 2002:a63:b34f:: with SMTP id x15mr320136pgt.243.1547498282884; Mon, 14 Jan 2019 12:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547498282; cv=none; d=google.com; s=arc-20160816; b=t94WmiDtbLnhMdeZlBp7eAkCMDj7v84IEfFvqJzpe/f0eewt2s6yk4cih48bV6wB43 cii4XMEMTdEWGqIpf06oNWrRVXe0b3pytUbwL1PmJIX74vLrjNBCFE73H+hktNqnhb8p RkhhX75zAQDBrmvz1zojxQ2+abF6n8Hzp2BHZkjBFFR+PDynbe8HsPLdEjB1i4HKXpk5 BB6kBEmx14VmdKY9az4H/LHs3kJvVbIRiqwnLABTwO58VNZPO0idmUh50sEkttkxfZTp D0GHU2BnULdlIaUZyjT4yihrujQAHrOyyMR+1JEGnLPR7+kK0ubKIInqeRYruK6wYjv0 sadA== 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=6aH85HXvGaBst6AsfmYEtc1Lgu3C/G7wpGvW82yl+3Y=; b=NVzN3DIT2+pWGc5RSMSGDPxRnjMvV92vWGERPvNr1ZXnzTF/JaZc4NK0OjrGf2NIdf Rz3H+PpVs4CoIzbMnylopFH1E3zBQ/kOKVljSlpbiAK814SCFgAetXeiGBw0/PQdCXob Vcmd0L6aCnNbIUKJFdGu9Od6u9EdyEtNGFKxa/HZZv9/ZiJi3gduUcRcbdsekgtzisOP nD0/QZNvfZ4FFz9YAo1ffTLBaTMHb/uOQDfQFilJudKanusaCbPCnfv47UbVBi6LHoMQ 37+4wGxKVWKVil+aSm8Q2egekLCxW9ghNrpB47DlbbC6IX8+uK8faX9t9L2rgDJb1Ado 3S7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=H2BoAnZt; 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 o28si1233652pgm.238.2019.01.14.12.37.47; Mon, 14 Jan 2019 12:38:02 -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=H2BoAnZt; 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 S1727027AbfANUfS (ORCPT + 99 others); Mon, 14 Jan 2019 15:35:18 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44569 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726755AbfANUfQ (ORCPT ); Mon, 14 Jan 2019 15:35:16 -0500 Received: by mail-wr1-f65.google.com with SMTP id z5so395844wrt.11 for ; Mon, 14 Jan 2019 12:35:15 -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=6aH85HXvGaBst6AsfmYEtc1Lgu3C/G7wpGvW82yl+3Y=; b=H2BoAnZt2R0LlPoCUmzpLYx3NE+Kh7mZC1qZTWmPXxzk42xeuNLJ4QfFQw4MD863o7 fRGpEVoTTY5acp5C/JdYamFheEzHw7YH5zCxU1VrBDbJmilq3apx5gOywqXabXluo+aE 5A9kTZn0fhYti2QgCKYdbXTGJ4NcFq1q/eIdHUggaXAexQfSV/WPAxrpPI5PKXquzVzG gVlPrEaJEZHElA8TWjqG69YEFIW3xUvbq9Jy5o+NuU7glBRYFL+2CjweMNwMaZZ65xyg 2EORvdX1ATp+r+DXSvLXhTCEDeJCfFwZoYAdsZj1A8zn7N+81+0qs7j7E22UFKmASF6h YezA== 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=6aH85HXvGaBst6AsfmYEtc1Lgu3C/G7wpGvW82yl+3Y=; b=cKto8PaFJrl/ETxi//m9Qz1wmq/Z4ivOmgqiMAA07/h5RwIH35iwYQH7bibN86/rL0 ZSv0ijBXQvNO8J4BM1TmYXDoN+gtMYt10eo4nWKBYcLHc9QlTpd4MSqwhx26vc8AQAY2 kiIFYCpJ530tFOPNLidGu9sr4WjvW0npIz//65JNxoQgcTnUIr1HET4RMiCXer2snQNR ixea/gkWevXLKhE8JECcsS1+5KKyo1FBD5sTpxb5sUkH3/tX5N1R6EUS6SpKOB4SX/Ty ZHbiJTfom5Hhe7iAYksmpdyKyDP1w9h7hTwpA/N48LhkIeGXm4QKGR32oAbFbrn4h6fH zysQ== X-Gm-Message-State: AJcUukcsDl5tEXJshgyGJnkXx7o0ETBdJ0a73LKPFyGlw37SPAkzOqTT dX82hQTOZGkUhhEpmJfAb3w= X-Received: by 2002:adf:fc89:: with SMTP id g9mr219882wrr.96.1547498114804; Mon, 14 Jan 2019 12:35:14 -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 c10sm66016268wrw.49.2019.01.14.12.35.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:35:14 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 185B111422AD; Mon, 14 Jan 2019 21:35:13 +0100 (CET) From: Mathieu Malaterre To: "Eric W. Biederman" Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org Subject: [PATCH] signal: annotate implicit fall through Date: Mon, 14 Jan 2019 21:35:04 +0100 Message-Id: <20190114203505.17875-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/signal.c:795:13: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- kernel/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/signal.c b/kernel/signal.c index e1d7ad8e6ab1..aa7a507757d7 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -794,6 +794,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info, */ if (!sid || sid == task_session(current)) break; + /* fall through */ default: return -EPERM; } -- 2.19.2