From patchwork Tue Aug 7 23:17:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10559337 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 2C9B915A6 for ; Tue, 7 Aug 2018 23:17:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C9072A051 for ; Tue, 7 Aug 2018 23:17:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0B26D2A078; Tue, 7 Aug 2018 23:17:32 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 B1AF52A078 for ; Tue, 7 Aug 2018 23:17:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727087AbeHHBeM (ORCPT ); Tue, 7 Aug 2018 21:34:12 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:60242 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbeHHBeM (ORCPT ); Tue, 7 Aug 2018 21:34:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1533683851; x=1565219851; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=MAv7eSYbEeh0i2997hkC+KSm0CupAia89yvL4poRQf4=; b=d4QRYSdpGQUFZaoeam4fF6uIGH5j9Ba/gSoneXvdjwL+A2mAKyVLQgnL WFxJ/wrp1ykrDluNjv39jlDCvei6BUMzpUHwmnTVSMGJQwGUfhjAsT/Ct gEAJENgvtNaex1z5HDqW9XnjpA+Dk1+q9HaM2W3SPAlzX72aEOeSPfgMh TBrUCQWelnau2D8bGFsC5at0C5EM0Hd5jEJ4zkhg6xCizWHrwFraKQGIY AxmPvtL48fndBBhYz3hy5P2b0TPBCyrQUFRFkc5hPfOCJutMbReY+LK1F Yw6Mw/ltnq6RB5JEVTVneby3/sBTwRZkVN6dcEKR3J+GNLX4HwTLryyf8 Q==; X-IronPort-AV: E=Sophos;i="5.51,456,1526313600"; d="scan'208";a="87862858" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 08 Aug 2018 07:17:31 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 07 Aug 2018 16:05:09 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 07 Aug 2018 16:17:31 -0700 From: Bart Van Assche To: Jens Axboe Cc: linux-block@vger.kernel.org, Christoph Hellwig , Bart Van Assche Subject: [PATCH 1/2] cfq: Annotate fall-through in a switch statement Date: Tue, 7 Aug 2018 16:17:28 -0700 Message-Id: <20180807231729.30308-2-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180807231729.30308-1-bart.vanassche@wdc.com> References: <20180807231729.30308-1-bart.vanassche@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch avoids that gcc complains about fall-through when building with W=1. Signed-off-by: Bart Van Assche --- block/cfq-iosched.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 82b6c27b3245..ec6acdd58b7a 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -3666,6 +3666,7 @@ static void cfq_init_prio_data(struct cfq_queue *cfqq, struct cfq_io_cq *cic) switch (ioprio_class) { default: printk(KERN_ERR "cfq: bad prio %x\n", ioprio_class); + /* fall through */ case IOPRIO_CLASS_NONE: /* * no prio set, inherit CPU scheduling settings