Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp59815pja; Fri, 22 Nov 2019 03:26:48 -0800 (PST) X-Google-Smtp-Source: APXvYqx8QLtg4KEKXWJscC56Kso9qWjDkOKgO5oFk/dlYsGQ+op3j0umaSkMr+PMpb5SKujeqJls X-Received: by 2002:a17:906:5959:: with SMTP id g25mr21090086ejr.248.1574422008241; Fri, 22 Nov 2019 03:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574422008; cv=none; d=google.com; s=arc-20160816; b=E91IjZz69D7N88ZgM9FGvkOeV14g9g+h3lHmeukJHLMBiKJ5in1LQPhxwqFWyugcxA fy7brt77M0nNN8inOc1s7HyevJvB8yUBNaAlUQ0ObJjwhV8xtYBfpO/LsfINXhMh8Iwp gbEAiDnWtcedx5QBSYsRcJ3mCZ7L7zkwk1XXPGpUX7N2x0wXxeAYyXAA12TVEwUIA06w IhTBaI5gisyA+kEgyrSlHu8ERtzbomSejzQNBbFzeRlYOcleBgjR6WFFItxoP/uff4zT Hvjl1jdWx8FJs6/2UCq9b1QsOMdnUJaPhpI7+3SO7oQhWHmcSjbYPQzOfLt0/CtctJoZ kNsQ== 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=hjAC6dUFW9zxMHAJzf0Z4hkqMOrAwVQrJBL9hXcIc48=; b=1IufgXuUMho9XeLIxVWIinw2r21rcXSFH9S0uRXh9wU+5Mz2IdQzKWJ6WVWr0acpxQ kDZnxRyMubOr9cM1/u4yHiC04fIioeozdld8h0JEddfkZAL6/zz0wqXtPJgTfTu4ifrv Dx/WJfggXlEla/UFwHOb6RMlDuv/yKnJMt/0jGfKyv6UQ3fczZSj/FGhExt93VYklrOb JshJ+n61APdQhT9ofOnneh76FBwXLaOd69gmlzyVFlopq8+7cbWEkGQGqUOPSlhdGI8A VDi/xIzCGNpb3ZcCkgHxnPrlKdO2FK9Yo1a1D95DaMrda6hdYKMtZD3dwr03BvEcKHVr 3Vvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bv3vDBXZ; 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 si11si4003481ejb.71.2019.11.22.03.26.23; Fri, 22 Nov 2019 03:26:48 -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=bv3vDBXZ; 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 S1728895AbfKVKoI (ORCPT + 99 others); Fri, 22 Nov 2019 05:44:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:49820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbfKVKoC (ORCPT ); Fri, 22 Nov 2019 05:44:02 -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 71F7A20656; Fri, 22 Nov 2019 10:44:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574419442; bh=eEownlkPfVu13wGtnwr3XoSC/zxbkHiIhTahBXw1/Cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bv3vDBXZVl42cM1FCsT/3ereif5iXxVMCQkVLB/LwZCHwGwZqc1If7iReqotgd/oB uuaHQeQMrEi1Jfm5fuk3dDjGFHeYS0SIMZtx6d5aQx0U+LY2/GNzIAZFMhH7NtBgpD ppf5BIx6q2/TeZuSNZiVmciyDO82L/LwVNsXqc9E= 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.9 111/222] media: davinci: Fix implicit enum conversion warning Date: Fri, 22 Nov 2019 11:27:31 +0100 Message-Id: <20191122100911.268008102@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100830.874290814@linuxfoundation.org> References: <20191122100830.874290814@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 a9bc0175e4d3d..c839003953a74 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