Received: by 10.223.164.202 with SMTP id h10csp411535wrb; Wed, 22 Nov 2017 23:53:13 -0800 (PST) X-Google-Smtp-Source: AGs4zMaLGREAgPV+bQ63v4SNKUDBJ6OBVvf7mxZzlx3ObkqpyHLCzQHS7aBJ+2Ew0D8ugmfSLzDD X-Received: by 10.84.128.226 with SMTP id a89mr8587437pla.150.1511423593798; Wed, 22 Nov 2017 23:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511423593; cv=none; d=google.com; s=arc-20160816; b=H8Ru82ENBX35wF0MuD631PSRS1pEZp/k6OAxLJG71oNpJ+FuYl9CkmIiFDjNGwMszf fV3SVsdWVDDimwSumN5G3cqQWcVIzV8zXsFGaJ+XGj/cKgCMyDasozXWgMFK/LqjXBQ0 qcA3jae94pb57ihqEpcPXLUvO+EyemwgJIxaGBdp0D4kfbUgXrQilnohQ6rFDbuJSr1h LUzpRWPJdbY0zgXSCOp4llIKmNvZ2emUMtIQNsybCpLmPF0K3lmhXcLToSFagPTzMzgu mbdGqBGKymoE2u3pfdXUFRoDOKnSmrzVlB2fHLeEw4QIDPyBm1o4aasDi4LWd9wfnyoj WsAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:in-reply-to:message-id:date :subject:cc:from:dkim-signature:arc-authentication-results; bh=LMQUgx6BVBR2mgkM8izfgaEJldLkA4vxS++u06HujxY=; b=pbCksU9NCmvJZ8gzjCQ+JI5ESr6z6FuEN1k45uqhgd/xwfL1BN9etP5Jod2W894WgO 8Rm4vVfsoBUQqibOsNbK8Ho0NQZPsFu0+xivuqfax8S2cLLU4OoCvIqCfNN5SA6M/QZb o9hzvjXLjlT8xtgTG33NLwcqeUlZapIeRaKbPFd2ZyfTpZTq4JPr3tLKI3BlUzG3TQRI lYzXPfzw0CwbOnh5VKq9ontbJ6Q/mo6lGdNtryaM5h9KfF/EzE1Iys8zAer8nSaAyiIG /lHlj3+pSTwLdd1Wg2omUBnEWEiLBaWAPITnHYRqIfp8Ev2C+tWdJ//sNHN6nKRSRVIs D8TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=KLPTYPRd; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q192si15152861pgq.156.2017.11.22.23.53.02; Wed, 22 Nov 2017 23:53:13 -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=fail header.i=@gmail.com header.s=20161025 header.b=KLPTYPRd; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752213AbdKWHvV (ORCPT + 77 others); Thu, 23 Nov 2017 02:51:21 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:41866 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305AbdKWHvT (ORCPT ); Thu, 23 Nov 2017 02:51:19 -0500 Received: by mail-pf0-f195.google.com with SMTP id j28so13183558pfk.8 for ; Wed, 22 Nov 2017 23:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LMQUgx6BVBR2mgkM8izfgaEJldLkA4vxS++u06HujxY=; b=KLPTYPRdmplavvPhOIjLW/3ees0nfdjQBrMB3bb/ZlfVzq44azuZyQ6dc/52sCkcg7 kGU1Vdpr4EpBQ9Vi8T3vypgu/GqcI4uSjP6sC/U38gzfwV7ggYMFQj4bgt3TtvQbfZmA bJRF+ew7dD7h7sSG1TVLHEPjGK94rYs1TsNlRmknwQ1IVIAto18bmNyHbtJckuT2j5kX 18Tqt5FTY1c6uqaNamQKBPyks9Yq/IcvZyqynCsVAaw0ptzxYMYLNh1QiXiRwJ9LUPMW 1N+z7HkYohcOxSauNeNtQouxDxcE5bx860tgnb5gU8Q7C+Zr6efynZK6NfGonclO3nWR EAXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LMQUgx6BVBR2mgkM8izfgaEJldLkA4vxS++u06HujxY=; b=bWtEyz+8gVfns5n1fvYY0XLJd0STJIyVlNtZg9bpwqkXMZ6dxVrjOSXU2AoAas2QNk cPahd7Xx7AeDNbw0esB3MpgY3b59WeK+ge+4yiQbH78xxo2iokYzSzKaXM0QMcDUVjcA ee0DCrTQ/DMoe6Dfrj0Hpe0ARa6QQcFPJ9qFRHIiDk7EV5E9IdXAg9S6XJMHIGbxIFJt rYaQOl/o4iEcQYM4bFw/uSXCgOOrcz1vCjF3eNOxrxMFTefkmBn9v6aLSi9Q0k9g27ZJ iqmlErtfbrbx+34kRiJ2pnOnPu3zvGYfnOzEi4eCcVgvmP4UE5u9agOGkpQz4LIkN4f8 9MMA== X-Gm-Message-State: AJaThX574alxTAcLmjJh3Tg3ve4XzLZJ9A1YhZ6TMODcrzfktcpTCG5o SSFx1Vzd8eJEaVJ2EQIQa+U= X-Received: by 10.98.223.217 with SMTP id d86mr22259270pfl.190.1511423478809; Wed, 22 Nov 2017 23:51:18 -0800 (PST) Received: from localhost.localdomain ([2601:647:4700:9147:320e:d5ff:febd:81c]) by smtp.googlemail.com with ESMTPSA id 67sm9534826pgg.50.2017.11.22.23.51.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 23:51:17 -0800 (PST) From: Nick Desaulniers Cc: mika.kahola@intel.com, paulo.r.zanoni@intel.com, mka@chromium.org, Nick Desaulniers , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/i915: Avoid enum conversion warning Date: Wed, 22 Nov 2017 23:50:48 -0800 Message-Id: <20171123075048.15882-1-nick.desaulniers@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following enum conversion warning: drivers/gpu/drm/i915/intel_ddi.c:1481:30: error: implicit conversion from enumeration type 'enum port' to different enumeration type 'enum intel_dpll_id' [-Werror,-Wenum-conversion] enum intel_dpll_id pll_id = port; ~~~~~~ ^~~~ Signed-off-by: Nick Desaulniers --- drivers/gpu/drm/i915/intel_ddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 933c18fd4258..f9de45316901 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1478,7 +1478,7 @@ static void bxt_ddi_clock_get(struct intel_encoder *encoder, { struct drm_i915_private *dev_priv = to_i915(encoder->base.dev); enum port port = intel_ddi_get_encoder_port(encoder); - enum intel_dpll_id pll_id = port; + uint32_t pll_id = port; pipe_config->port_clock = bxt_calc_pll_link(dev_priv, pll_id); -- 2.14.1 From 1585294855356035476@xxx Tue Nov 28 07:43:07 +0000 2017 X-GM-THRID: 1585284598524847067 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread