From patchwork Thu Oct 10 08:35:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 175712 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1975946ill; Thu, 10 Oct 2019 01:40:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6kUxFaDMW56ooWfl0hHdI4S52YLctaKOOTepymw2uZZ/gBkNQNUht3OcLPBQPiV04Gwhf X-Received: by 2002:a17:906:6ad7:: with SMTP id q23mr6747326ejs.214.1570696828028; Thu, 10 Oct 2019 01:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570696828; cv=none; d=google.com; s=arc-20160816; b=pbgVjEHSz13YJ9IoaWNhSXtJtMut3i6yFt72uyV/yOIOB2O/7s79wAnUY6N07yARC1 Nb0TJxGDJ8qAwn82+CR7rRzb5qsd40BS9A1YJxLTgZCT6r9bvJiOyD1jSOMD8BGgw29G zxtvBrTIgCsU9YFH+HpkQD5fbM+J0kO0KnOUXxB1IWz9FSt4HYpmfQRSy5h56nUgxBLC 7pZyX3HoqrrGKrrUfNdUCxMslgcYNC8pDDIjxgDhHEsQoI0qp153jDrfrueSEh5LX+dL B0gqlU5XgFs4Zo884uY1P4lFxRleLBrXCmp/iFM3kZ4875Q8zra1MoRXn0C4+zfiJOKO 2Q5A== 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 n19si2809317edo.172.2019.10.10.01.40.26; Thu, 10 Oct 2019 01:40:28 -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 S2388107AbfJJIk0 (ORCPT + 26 others); Thu, 10 Oct 2019 04:40:26 -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 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);