Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2073232ybp; Thu, 10 Oct 2019 01:41:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9ChUlPTZ46FOO6faHIvxerAUlDmRgw4H17StOMOuFeAjUWwSvPG2MXa0OIRgxR4csVoqx X-Received: by 2002:a17:906:1d02:: with SMTP id n2mr6921441ejh.303.1570696914665; Thu, 10 Oct 2019 01:41:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570696914; cv=none; d=google.com; s=arc-20160816; b=ghSqkRmU2vlnq2gLSr6Viah7+58p46TLNfpY3c7P05JCaMu31HyKdiEYMR0/SQXFi6 e/f5qnk2M3oGuejzsO/84+/YiOtmiQrzMy3P3tV8Ec5PWpdLep38euW3uG5rE36z16ZN ntlhjP0+MoMrxFj0eFNAlsTuvN3trIQGB/yc8dKLpzZ7yqUgAMQPalgAI4bQ/rBb62+H 61BxdkfahXZ441jLs4Ay5dbCDfe2uwBugJnYYTxTC1v6na6LlOQm1upcKfCvTOkUsCBs jQKGgPz/TEZYBKx5fCD0v6hrvLvY3/JhGfD+WKCog/UI7Luj2AabtBCI5rNaUszckmMi TmfA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7oCnS2S6WBLqUE2ZYRVaxoQ7E5gRzhCJLxKS3UD0ZTM=; b=kP1K/a2YFIboCVcLwf2kLCx+n87yTkTIMcHcDzALwnv583Q1wyMqnfSwofJf0QWgA5 Tt1d8q2Vp59p2cGMWKSAVJZcKOsZLZRUDpKA1B61MbFJ+OaF2O/LWtt8A5fCw+siKV4F 2JjnNpi2ZawF3Q/avhSaDcbex9KqM3zPnP/STi1DE33AZkTJkexUNZKTyu8luq0GIkNU 28fGIo7tvxBUmmu9HopJdxdOR9FWkAfA89pZGsLsZHTmJz+h/ozI5SAoikgD8ycDZqm8 4xMPNEpVwO0z8JpriJkNPh1XWTeJ8YJtmxsbZbroDx+xLzQDkvbqCKOe+X0nSt+uAtMF 21yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iR5sm8Sa; 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 np3si2733699ejb.384.2019.10.10.01.41.30; Thu, 10 Oct 2019 01:41:54 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=iR5sm8Sa; 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 S2388102AbfJJIkZ (ORCPT + 99 others); Thu, 10 Oct 2019 04:40:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:44516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388088AbfJJIkZ (ORCPT ); Thu, 10 Oct 2019 04:40:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 0715721D6C; Thu, 10 Oct 2019 08:40:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696824; bh=PQpdJK/h9ToD5AevYVxFZxB/f9VAVRWbA53bQfTfcew=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iR5sm8Sa76ON4c1T/ffjovAvXJcRQG0nPltDjy76VDxG9wYKnt0KRUh5R+PyjJBJG ei13oh12qDImXHzRToFfi2O+h7j1vyN8n8oyToKR5TlATPMC/b5gCeot/l7oPBJrlw OY5+L8m5cwW5OcaOK5QoNLPkGxWJvEecX702vNNI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liviu Dudau , Anders Roxell , Liviu Dudau Subject: [PATCH 5.3 065/148] drm: mali-dp: Mark expected switch fall-through Date: Thu, 10 Oct 2019 10:35:26 +0200 Message-Id: <20191010083615.398042278@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Anders Roxell commit 28ba1b1da49a20ba8fb767d6ddd7c521ec79a119 upstream. Now that -Wimplicit-fallthrough is passed to GCC by default, the following warnings shows up: ../drivers/gpu/drm/arm/malidp_hw.c: In function ‘malidp_format_get_bpp’: ../drivers/gpu/drm/arm/malidp_hw.c:387:8: warning: this statement may fall through [-Wimplicit-fallthrough=] bpp = 30; ~~~~^~~~ ../drivers/gpu/drm/arm/malidp_hw.c:388:3: note: here case DRM_FORMAT_YUV420_10BIT: ^~~~ ../drivers/gpu/drm/arm/malidp_hw.c: In function ‘malidp_se_irq’: ../drivers/gpu/drm/arm/malidp_hw.c:1311:4: warning: this statement may fall through [-Wimplicit-fallthrough=] drm_writeback_signal_completion(&malidp->mw_connector, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/gpu/drm/arm/malidp_hw.c:1313:3: note: here case MW_START: ^~~~ Rework to add a 'break;' in a case that didn't have it so that the compiler doesn't warn about fall-through. Cc: stable@vger.kernel.org # v5.2+ Fixes: b8207562abdd ("drm/arm/malidp: Specified the rotation memory requirements for AFBC YUV formats") Acked-by: Liviu Dudau Signed-off-by: Anders Roxell Signed-off-by: Liviu Dudau Link: https://patchwork.freedesktop.org/patch/msgid/20190730153056.3606-1-anders.roxell@linaro.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/arm/malidp_hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/arm/malidp_hw.c +++ b/drivers/gpu/drm/arm/malidp_hw.c @@ -385,6 +385,7 @@ int malidp_format_get_bpp(u32 fmt) switch (fmt) { case DRM_FORMAT_VUY101010: bpp = 30; + break; case DRM_FORMAT_YUV420_10BIT: bpp = 15; break; @@ -1309,7 +1310,7 @@ static irqreturn_t malidp_se_irq(int irq break; case MW_RESTART: drm_writeback_signal_completion(&malidp->mw_connector, 0); - /* fall through to a new start */ + /* fall through - to a new start */ case MW_START: /* writeback started, need to emulate one-shot mode */ hw->disable_memwrite(hwdev);