Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp134696ybc; Mon, 18 Nov 2019 21:55:59 -0800 (PST) X-Google-Smtp-Source: APXvYqz/WFLaR/IH4Pq8aMrbydusKXcE/9S0RH8H6Mj+ldKi95zeteUefl04XNw/qUnbU6hgLB9b X-Received: by 2002:a17:906:3490:: with SMTP id g16mr32906950ejb.189.1574142959331; Mon, 18 Nov 2019 21:55:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574142959; cv=none; d=google.com; s=arc-20160816; b=b1u6v6R0Xci7aZv7v0+IsvV5bI/y30b/bt89jsGr44B5ZVnR8W5mQXybF3GKupb1gT n0DojY45Yjeh4Gg12PQsNkaicwScP4TnPdPsDMu/bxTn/o5jszZP+No2bAT9fbbRc+nA Y4v9FA0H479TItbXtYU3sVIfAQB/Eu5lzSwFS250mGmEewz4jGbfvuq/WaoRvVsYW5pB noUUQyihuu8a5l1V94T84nF6mpkhWoa4UqTi/MIA61Rfdq4y7Lztez29NF7ovCtl4iT8 GHlCRqCC03rVsRBmvBLJHbiInJS4JSaj5pc7ao4bUAhIIfzuo4hrWH+jnPftvTd/67H8 npzQ== 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=iX0O0KkSqdipUJoSuo1u1/ALMXUzDbEV5kDtrkxBPN0=; b=rUiqQuecln+c3OF0HFxTIF+DnuS1Rcf1GHHwrL/3ANr7FwGY+xV9GfSd6t1Gv1dBGY 0lrzZxDbvxnj4SdtKzlVvxMJidJeZfrQ92szL7nKN/cgpzHJTuTGrUbdDAVvHs+GP0LY fwVUtv/qtxW/PbwzGyknjeAgq39yDW998Di0OuoUUO7RPsaiB3oU16RP5X49jgBG1DzT g4tGWTleYV7AmQthQHYYvXbNndFiNHP0FzfbAWu+itXwywIe6+0rIwdRkG84Po75T73I AAHWkwxqh9twoDdFOimA3+fB/qagJr2VbqWI7UM8JkfqZJ7bY/ySHTvQObR9IktTCL3P E3wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HCgREd+V; 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 14si13322211eja.294.2019.11.18.21.55.35; Mon, 18 Nov 2019 21:55:59 -0800 (PST) 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=HCgREd+V; 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 S1731884AbfKSFwM (ORCPT + 99 others); Tue, 19 Nov 2019 00:52:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:49812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731880AbfKSFwJ (ORCPT ); Tue, 19 Nov 2019 00:52:09 -0500 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 8224F20721; Tue, 19 Nov 2019 05:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142729; bh=DP1jfNu4aHL5M50qkZNBYtOAk/jdIlmo3e5Knv60bf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HCgREd+VsaXVOhdQPR/MuEyjW5Co1ZVjGWFhnnFPpRfitqBZQzBJaZpltLzHGkQ2H tWnBn2bgQ91xH+scoiBMCoD4V+suyorvlzC6B52BJnvwkDqqOrr1xjZH0L0Qb0Bh5J g2Tq9UtXkU0GEs1UsZGA9OLkycfnoe9i0OOCZfZk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nick Desaulniers , Nathan Chancellor , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 181/239] media: davinci: Fix implicit enum conversion warning Date: Tue, 19 Nov 2019 06:19:41 +0100 Message-Id: <20191119051334.618302398@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@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: Nathan Chancellor [ Upstream commit 4158757395b300b6eb308fc20b96d1d231484413 ] Clang warns when one enumerated type is implicitly converted to another. drivers/media/platform/davinci/vpbe_display.c:524:24: warning: implicit conversion from enumeration type 'enum osd_v_exp_ratio' to different enumeration type 'enum osd_h_exp_ratio' [-Wenum-conversion] layer_info->h_exp = V_EXP_6_OVER_5; ~ ^~~~~~~~~~~~~~ 1 warning generated. This appears to be a copy and paste error judging from the couple of lines directly above this statement and the way that height is handled in the if block above this one. Reported-by: Nick Desaulniers Signed-off-by: Nathan Chancellor Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/davinci/vpbe_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 13d027031ff04..82b06cc48bd16 100644 --- a/drivers/media/platform/davinci/vpbe_display.c +++ b/drivers/media/platform/davinci/vpbe_display.c @@ -518,7 +518,7 @@ vpbe_disp_calculate_scale_factor(struct vpbe_display *disp_dev, else if (v_scale == 4) layer_info->v_zoom = ZOOM_X4; if (v_exp) - layer_info->h_exp = V_EXP_6_OVER_5; + layer_info->v_exp = V_EXP_6_OVER_5; } else { /* no scaling, only cropping. Set display area to crop area */ cfg->ysize = expected_ysize; -- 2.20.1