From patchwork Mon Jan 14 20:37:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10763401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A5A0691E for ; Mon, 14 Jan 2019 20:38:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 986A12A25B for ; Mon, 14 Jan 2019 20:38:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 964EC2A2D3; Mon, 14 Jan 2019 20:38:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86E912A2A3 for ; Mon, 14 Jan 2019 20:38:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbfANUiG (ORCPT ); Mon, 14 Jan 2019 15:38:06 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35184 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfANUiG (ORCPT ); Mon, 14 Jan 2019 15:38:06 -0500 Received: by mail-wm1-f68.google.com with SMTP id t200so1018955wmt.0; Mon, 14 Jan 2019 12:38:05 -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=1eJnjQW5IPzpeYQGufmmv3JMdNFkJ0jzBZNxHqBNDZk=; b=BSP16BU5BszWqZolP7r369EbMSL+9KTAt2sdRaUgVWPmdapaDiAz3UwsbSf3dtSw8s tHPDzv9YTaFzQBSEYvFqUGjHGzI+MgWNuO9Kfa+AqBIvDExO9V5vVQ9qX0VMFoH+p+bv 5K5SkVqwBUOkwBhJELXTiFw4ttN6QNyIJ5/8qcnVbxMTLfJNiR1fXEk5risFnGk9tGy5 88SA8WO5mAo3oEsPmx7KIE/g8m0ws6qz8ND2qvWJ+MAolup2cOgnOsN1Vqp6lD59CSgh egHBjd1PSjZ4z0fegazYwrOcSqelYCiKPga1glOkHx74JuBI+kHeJHeRdIMDdVSNI2O6 VEJA== 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=1eJnjQW5IPzpeYQGufmmv3JMdNFkJ0jzBZNxHqBNDZk=; b=WdqmAUDZ8ea5l8q98RY0414LJiUAE1cR6BQgE4QenSaulkaAuzaCsok8BcUJGq8HAB kXYY6QEIUB3+Rkq7T7XKyiPGzFPWZHM34bRlrG9uAyOBlNGfZlsw+tkP1s+V5t6joPvx YD0kAbnoFRWZUUY8kLSocnVQ6B09/y4T4HyyR2Ml6tTA3vXqkByRLeEtrQN/siu5hnt0 sDe0OreyW1x4PoOYokJBaw/ImY61gjNnOa7ey+TEuf5fnsoQOw3KFBLSrMYFtL/3jDWR EnjffTzRpfzPy5+lLD/uuBYNIqvQJFnM853l7Whrwzn+guaaT/erPpPloyD55Ie7PluH YWPw== X-Gm-Message-State: AJcUukd5TK09g/UYYlFQRR/UMTMa6ZZanM9KNvGpPrX1ytzt2HVHzcY2 qhmDehaO7e5qpdYoYA5FnSI= X-Google-Smtp-Source: ALg8bN4KvF0LnCwCbM0qpPlPnQDPgtCV20gHZt32VY/tth0NAXAbWGRAb9rNmti4P6Yd8dYXydxaRg== X-Received: by 2002:a7b:c853:: with SMTP id c19mr625033wml.61.1547498284468; Mon, 14 Jan 2019 12:38:04 -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 c12sm70904420wrs.82.2019.01.14.12.38.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:38:03 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id C733F11422AD; Mon, 14 Jan 2019 21:38:02 +0100 (CET) From: Mathieu Malaterre To: Alexander Viro Cc: Mathieu Malaterre , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] seq_file: annotate implicit fall through Date: Mon, 14 Jan 2019 21:37:59 +0100 Message-Id: <20190114203759.19578-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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: fs/seq_file.c:319:10: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- fs/seq_file.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/seq_file.c b/fs/seq_file.c index 1dea7a8a5255..abe27ec43176 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -317,6 +317,7 @@ loff_t seq_lseek(struct file *file, loff_t offset, int whence) switch (whence) { case SEEK_CUR: offset += file->f_pos; + /* fall through */ case SEEK_SET: if (offset < 0) break;