From patchwork Mon Jan 14 20:26:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10764035 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 8FBEC13B5 for ; Tue, 15 Jan 2019 07:57:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74A472AEE7 for ; Tue, 15 Jan 2019 07:57:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 664762AEE9; Tue, 15 Jan 2019 07:57:44 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1C3712AEE7 for ; Tue, 15 Jan 2019 07:57:43 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6CC716EBC8; Tue, 15 Jan 2019 07:57:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6B9396EB3B; Mon, 14 Jan 2019 20:27:08 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id r10so379612wrs.10; Mon, 14 Jan 2019 12:27:08 -0800 (PST) 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=06uoGtHvpriE8VBGEcPTl689B7ZuMAcRhwqZCUATnsM=; b=XM3rUHP8IWbjACijrru/G5y4Eux676jQ6bOwpuKI9B23OpPp9SvKuC1TqMzD5ah8us +SBfRKBJfelUMv8X0ymsLE7rwPpN8PsjxazTiVPBP/0sjGCZ5L7PJRxCtD+UE3YDxrMG Tbp+E4ciCd9+b2k5EOvoyr8RVnv3v6AxanFDioyScAR5d3sa6QYCnWfGGWfadm7hlbSX cF1bLIRNRWv96yPeTz/6Ik8THC0bkUcXgBGwr1K12h3DoMIuUl8qnsVR2flsyMzxxVrY YqV5ZS/e5H4QNtYk25qY2MF6LoZEgauUisE3e0GV/rGdm56sv/Dnsvix93cWAvPssene JCIw== X-Gm-Message-State: AJcUukfvsqkqebzlJEyPu8bVA8lcIZMvIsnUtawAzulfNZDrVNMKQ5QP xOtkV5SkWhrEEFloWwReQMA= X-Google-Smtp-Source: ALg8bN5os5KqKiD0Jq4n3Tuv97jBGs/ylQMhqG3ItTdlnvnEDSIpQY6Wm5HjPKs5joc1l6JO3qWDtA== X-Received: by 2002:adf:91c3:: with SMTP id 61mr181583wri.324.1547497626979; Mon, 14 Jan 2019 12:27:06 -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 s1sm106814786wro.9.2019.01.14.12.27.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 12:27:06 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 31AFC11422AD; Mon, 14 Jan 2019 21:27:00 +0100 (CET) From: Mathieu Malaterre To: Alex Deucher Subject: [PATCH] drm: radeon: annotate implicit fall through Date: Mon, 14 Jan 2019 21:26:52 +0100 Message-Id: <20190114202652.15204-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 15 Jan 2019 07:57:40 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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: drivers/gpu/drm/radeon/evergreen_cs.c:1301:11: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Mathieu Malaterre --- drivers/gpu/drm/radeon/evergreen_cs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index f471537c852f..fbf346185790 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c @@ -1299,6 +1299,7 @@ static int evergreen_cs_handle_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) return -EINVAL; } ib[idx] += (u32)((reloc->gpu_offset >> 8) & 0xffffffff); + /* fall through */ case CB_TARGET_MASK: track->cb_target_mask = radeon_get_ib_value(p, idx); track->cb_dirty = true;