Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3986164imu; Mon, 14 Jan 2019 12:41:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6v/G0SkIJHnL+gcXY8qfU9j23V/oNAmcVTrnTt9nslS9KiIn3pdnDBiNQyPE/G2qMqkGah X-Received: by 2002:a62:9657:: with SMTP id c84mr351192pfe.77.1547498514059; Mon, 14 Jan 2019 12:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547498514; cv=none; d=google.com; s=arc-20160816; b=M/TOIxZAOOWbEDIebZqp1PdkqgemDUzrGAmjZ7MKvc6kiVWvi9wZpG4G4ByhFdGiv7 8I08zupz2JLHhZ/2SVYpyPtPQj9fswgPSaZg5wsEe5xbRsswxgOqX+nYTZJ8LqqwyUFF 8aHDGy3eE2OCwVLUYeK9s+PG9Wv5bqbpUwvxDAu2Ka7/Jq5YUmIr1vkTdS7VKtcQJs8A 4io0O5j1dO+nFuEK5PndoRkBaml+VhnYZ6fbtbfJQ9RsecUoYYlSmSOCxJI06WFAIy3y uwFJN2nibrzTy/WhXN0KT0diRN6EchMMgVlCpmJE91CSFdSiW3r/viMA+FWenxtTOwv7 MUzQ== 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=7OB8l1HfewCN1zRGPnCcAWYhfDZSLytYFckK0OsM5qo=; b=OHQdTL+3Pj/UQAbjf8pLZU2j9K8wHF6bIsB90R//hD/Gglt5lmcX/VvSTe6o+P7l3F JJs4+9CTX38M/OZk44lPNggE6DTlXfpgwIF5vaW0sbnxC5HAP6wtefaA0GkYeiIubc0K 0Ex8bDjE4Fy5hiHPeDrQ7FtCSnunaVw+NVD0oE1HZmN87nQO56rk8mVOE+3WYnSwg/oA 3h84I5sOP3OgozCs1jpOTbUXuw6Eq9dV42oi/orCwmTIkzM0CrAIqm5P+aP/jD3949lh JRxjqM6Nqy5LeZ4GvLiJ84MBX0g2GgtgFuTeHcBzr5W+OPx/SAcOgxz2BMphR6zpuGcj ITaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=FilRKiE9; 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 b34si1190244pld.305.2019.01.14.12.41.38; Mon, 14 Jan 2019 12:41:54 -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=FilRKiE9; 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 S1727139AbfANUjN (ORCPT + 99 others); Mon, 14 Jan 2019 15:39:13 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44084 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfANUjK (ORCPT ); Mon, 14 Jan 2019 15:39:10 -0500 Received: by mail-wr1-f67.google.com with SMTP id z5so409924wrt.11; Mon, 14 Jan 2019 12:39:09 -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=7OB8l1HfewCN1zRGPnCcAWYhfDZSLytYFckK0OsM5qo=; b=FilRKiE9Zd0zSrjWFWt8vqwpFgSmF9QfZrf5UHUSw+qb4PEd4ds3aTvtQ/A65vuXRn JNzf6rbbFTs83IsS2lT+kZsNMcX4uWoWQsvQM69DRymJoz6UE21VnN4pS+Hngdu7L47F DJDkvSQbU6MYOlvSU5ws4PfW0DlK/nREc5pDe0cbPQcBSU8o98die3BLDh23hVKbNhkO hnQYGRhDPpPmddgECujATYxwb4CihDMQN3mAmQT1wx8SM0P7g6wEVug4byGRyYu4O4lO pe65znHquHn7lqRNHGWlH5xw/TL0Lhf2jwItkCYMpMhRN6D7MjwXF/ITUFFLB558t+u4 S19g== 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=7OB8l1HfewCN1zRGPnCcAWYhfDZSLytYFckK0OsM5qo=; b=A1f8p/wS9kqQ0weLdvNTY852gH6veVpBRZJqPH26T8vsNZs0EMwcDg/CQzloEobtvA kMJPjkwEg0gJwZTa5887+CI6O54xaf+OJTbgdr0h4c+PmGc/wOCGxVgOVN/gS+i4FebG D5sN1eDLrMrWObTCEC9vnfPzPffDaUQrG0opORwg/n/EU/QLH0W5b4aLy7bpaMpznUfs +EYy2iYQ7l3wIusVGy+4UIhF6ZtkYN8qLKJaELu5if2ihFf4iylb9aYPjt1lNltvtUJP x2iqzYxpkHABu+ldTDfT+LtrbmErF4iZC2tuiQ7EWjU0gO/jGHOPGqlS+vDxlX6dMICu hpGQ== X-Gm-Message-State: AJcUukdrIRopkqQE47Phvcqpl7vQxHM0C0AEB25ItdruvtuZ89XYDXQN R2kIrsUsLymbrp8IGPnu7KQ= X-Received: by 2002:adf:9f10:: with SMTP id l16mr233373wrf.206.1547498348124; Mon, 14 Jan 2019 12:39:08 -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 i186sm33660913wmd.19.2019.01.14.12.39.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:39:07 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id F3B5111422AD; Mon, 14 Jan 2019 21:39:05 +0100 (CET) From: Mathieu Malaterre To: Alexander Viro Cc: Mathieu Malaterre , Jeff Layton , "J. Bruce Fields" , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] fs/fcntl: annotate implicit fall through Date: Mon, 14 Jan 2019 21:38:58 +0100 Message-Id: <20190114203859.19875-3-malat@debian.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190114203859.19875-1-malat@debian.org> References: <20190114203859.19875-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 this place in the code produced a warning (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: fs/fcntl.c:770:7: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- fs/fcntl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fcntl.c b/fs/fcntl.c index 083185174c6d..3d40771e8e7c 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -769,7 +769,7 @@ static void send_sigio_to_task(struct task_struct *p, si.si_fd = fd; if (!do_send_sig_info(signum, &si, p, type)) break; - /* fall-through: fall back on the old plain SIGIO signal */ + /* fall-through - fall back on the old plain SIGIO signal */ case 0: do_send_sig_info(SIGIO, SEND_SIG_PRIV, p, type); } -- 2.19.2