From patchwork Mon Jul 9 11:45:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10514415 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC8BD600CA for ; Mon, 9 Jul 2018 11:46:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95BB328AC2 for ; Mon, 9 Jul 2018 11:46:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89F8328AC4; Mon, 9 Jul 2018 11:46:07 +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 4473428AC2 for ; Mon, 9 Jul 2018 11:46:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932591AbeGILqH (ORCPT ); Mon, 9 Jul 2018 07:46:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:33678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932482AbeGILqG (ORCPT ); Mon, 9 Jul 2018 07:46:06 -0400 Received: from localhost.localdomain (unknown [106.201.46.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 147E120882; Mon, 9 Jul 2018 11:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531136766; bh=S+SbR119sdxojWL0RRXxW+v96VTk92j1BCGe4vD5wuI=; h=From:To:Cc:Subject:Date:From; b=UkbhIf1fTW3ny8CyLXy5sbv31RcuxlPxfmOA3lddPKCtRcN9CAzjgTmRyClhjFyso fwKpT08AgnKC7KWx3/g+lfuCzWPVyJW5wRQDcMcNEfvhisuCEaZ9mJRoT8BjdHfvcb NJ1SikFV6QLDQ16uOqVZrVym144gv1B8R9Iowt7M= From: Vinod Koul To: dmaengine@vger.kernel.org Cc: krzk@kernel.org, Vinod Koul Subject: [PATCH] dmaengine: pl330: Mark expected switch fall-through Date: Mon, 9 Jul 2018 17:15:31 +0530 Message-Id: <20180709114531.5116-1-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Vinod Koul Reviewed-by: Krzysztof Kozlowski --- drivers/dma/pl330.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index defcdde4d358..04fc4d8da0e9 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -1046,13 +1046,16 @@ static bool _start(struct pl330_thread *thrd) if (_state(thrd) == PL330_STATE_KILLING) UNTIL(thrd, PL330_STATE_STOPPED) + /* fall through */ case PL330_STATE_FAULTING: _stop(thrd); + /* fall through */ case PL330_STATE_KILLING: case PL330_STATE_COMPLETING: UNTIL(thrd, PL330_STATE_STOPPED) + /* fall through */ case PL330_STATE_STOPPED: return _trigger(thrd);