Received: by 10.223.164.202 with SMTP id h10csp1089759wrb; Sun, 26 Nov 2017 19:50:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMaPXOabTWBxH8niJfw3Uht9fzNcE5c5sDxtEhGATN1COsAEsSnRAk0mIf/SYsOIOoeQqZOU X-Received: by 10.84.193.129 with SMTP id f1mr5303075pld.355.1511754650080; Sun, 26 Nov 2017 19:50:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511754650; cv=none; d=google.com; s=arc-20160816; b=H9NdIdXtWHb+YHdEIRpZzAdqlaTjxonRw3YLDyGtkpDbzuvRvdaoljMn3yCwKo8uqV fQU800tbC9/IOamfIJ45duVtUGBiBKrv7bilStKj7P/sflu1VP6LFAxS6WKWcs4r8X8/ aASfq/IIJ6kolPdugRKfB/xpcEWiVjItpySs7GlZshGXGtuD0hkrCkaGEoGuRkQJUfqL hhoPHCqgGIyfkAOb4X8Q2r7ikTxSf0Olix7oVN1qqtuVcGOpezlh/KbbPkZP/adi2Qwf Ko8SYJABIxk1+H13UfikD+hfDmnMWy8ntAF/KGnozZsLOEC/5RxkviqkO3EjYwZgDB8m nosQ== 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=3gvc0h/Qrnk0hBZdtZAdPNDNrZbb7gUikufsOzYeDfI=; b=FYsjAV+V8uIdWZ5PiES9oNPwWuP0HBAj6ipNmdMMXSaVjENVrbVaDkSG15v7pqO36X V6tHEIvD1Q3bcpalZZhAKTYLZFlctxzpBMcTbuuBoP4MLKEeQmEFTP7fZWy/s7r8YbHM QDjrFtFFE4DUEFsu9H6KofLrQttNlgJ0DUGxcvTxwUd5lzgyrFKJkWyJV7DORv9x5PfW owaQH/TIx22S0gghWujtENcAQo2QfIdYXXO0WhpP992VFKBpD/IYIpvNNR1Jn6rHtuGt 92MoDyDbaUrl6TUoyopNxoy+7O1blnoQGxpJEKSSTAxrtqfyUegeEumvkzF7ZL1/SHEB kA4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=nihEkkN4; 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 q16si4107018plr.603.2017.11.26.19.50.30; Sun, 26 Nov 2017 19:50:50 -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=nihEkkN4; 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 S1751227AbdK0Dtf (ORCPT + 77 others); Sun, 26 Nov 2017 22:49:35 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34901 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbdK0Dte (ORCPT ); Sun, 26 Nov 2017 22:49:34 -0500 Received: by mail-pf0-f194.google.com with SMTP id r88so12849545pfi.2 for ; Sun, 26 Nov 2017 19:49:34 -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=3gvc0h/Qrnk0hBZdtZAdPNDNrZbb7gUikufsOzYeDfI=; b=nihEkkN45HlibtxYOMSZ4Bp0tUjjgnqcsFhwMIt9gRk3xSIEiYEqcbXdehtpPWgIAH NVJSBXZyABUZqNtBhnZytK6Vl93vdHx8CO4dVXo+NpDsM5Z35kZuUU+PvTuOgKYWbHZb GZGssaJMpWLeQCABzPLVn4rcJBYnWOKvMkeJHgq6C1KqSXsbOiL/y2wfHPAHNzWIXmVK PKrJwceSExy4qnJg3Cu3J/BKh45lgtqd/Iazrn5AAJ5Tf5ya/kH4T/h1Ob031194mhgH +GX8pQ5ssyYgmTCYDHxNtupEv6Oi6G2MDQbTYdYEsZLF3VzL6ey/3YEhkLWcRP/ewrGy ylXQ== 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=3gvc0h/Qrnk0hBZdtZAdPNDNrZbb7gUikufsOzYeDfI=; b=ZqfwtKpJ0ozj0vlE/7Wi3Do/916bjMHaFRUTV9e68tIBYobfE401oJL1JAefa7cM5I GoRt6P7wzAPWv0XW6o7SPyCv6ilseQCKhzp1kozvCtF+xjJHVbpPNuYCGHl9kZI9OIWQ kA4DM/E+ZlmKsra1h6bObUjdThzTKB/GGR1rvrqtiOSi2P0v2Q098t0iua51bGdjnqNf 5G/cc+LzxJ2EeHecDGVZSX2/YcH4jb+f5PwIvBX2vQJdOR8Gc4OfXahwNNj49z9KDNcr +KK2g3mLQntyZTeAdACHOOcisK5RreJj2Pbh7oXVzfYwcwKeWP1SoiLUPyuw0mdHDGDi Nhfg== X-Gm-Message-State: AJaThX4JOJ7k/UcEfbx+XjBApCqFrkz57TuJiWmFcvq7MteJ/MUmJHM9 ZNEWcKKyf6WSpC30mzCg07M= X-Received: by 10.98.60.27 with SMTP id j27mr35034558pfa.68.1511754573375; Sun, 26 Nov 2017 19:49:33 -0800 (PST) Received: from localhost.localdomain ([2601:647:4700:9147:320e:d5ff:febd:81c]) by smtp.googlemail.com with ESMTPSA id m63sm4434756pfj.80.2017.11.26.19.49.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Nov 2017 19:49:32 -0800 (PST) From: Nick Desaulniers Cc: mika.kahola@intel.com, paulo.r.zanoni@intel.com, mka@chromium.org, daniel@ffwll.ch, 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 v2] drm/i915: Avoid enum conversion warning Date: Sun, 26 Nov 2017 19:49:14 -0800 Message-Id: <20171127034914.2291-1-nick.desaulniers@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171123075946.x2unvonwbaojjxsr@phenom.ffwll.local> References: <20171123075946.x2unvonwbaojjxsr@phenom.ffwll.local> 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; ~~~~~~ ^~~~ Suggested-by: Daniel Vetter Signed-off-by: Nick Desaulniers --- drivers/gpu/drm/i915/intel_ddi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index 933c18fd4258..3c346c8cbf78 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -1477,8 +1477,8 @@ static void bxt_ddi_clock_get(struct intel_encoder *encoder, struct intel_crtc_state *pipe_config) { 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; + enum intel_dpll_id pll_id = + (enum intel_dpll_id)intel_ddi_get_encoder_port(encoder); pipe_config->port_clock = bxt_calc_pll_link(dev_priv, pll_id); -- 2.14.1 From 1584843063898242698@xxx Thu Nov 23 08:02:05 +0000 2017 X-GM-THRID: 1584842506339346945 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread