Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2686381imm; Sun, 17 Jun 2018 01:54:36 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ+ZE41hQIlIZxZHuWDI/HXoswHx2l/E5GSsUrbsiNP1uJ9hXKkU7j37Sw+job2QEJWIOtu X-Received: by 2002:a17:902:1121:: with SMTP id d30-v6mr9544426pla.247.1529225676604; Sun, 17 Jun 2018 01:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529225676; cv=none; d=google.com; s=arc-20160816; b=W9FcjvmmcDdBfk3YMBjAAjbEStUQwLbwB6p2XibsLLhx3MPubl8xFU/Y3UfvfWjmlc d3zmjlfO8p7Bl07pdQZncyJLHaLDJvIMdJLya0FxfljXHqLRN993bs0/KcnVy0hAzsHe mlEuRDteXF2ZStNb9+OIi862MrJZ2pH/D6mqhQbT1rPIAdTPubDm42EFuFdVgZESnYeR ATV893cY2QOG1SHow3/wvvrGBO/8J5d9f7UXuoOjom1MpHcko+95scGS1TMoN3ZuDRxP ZxpBxqsuJOzzaUmQ99HrEgkfNLQAeoeFxA3ZzenqDiIMfvos/ejsdDUUA0rbQlemDFj9 AjWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=S56oTnM0X/4dVHOuywLQSLm+dJWcEKccpa86jm+E5wo=; b=QFcD+gO0aWGmmapytGeIHpSpMBNCQNCEuqfwn/8B419HCwj1s/Qo7WRYMtvgJW8+kr P+DUE0KjLXOSl7LRiU6G3aWQQhE3ffYN8V98ZF2RYNE3PWDbzp2S/y54W35ToVrM1vTe 4RPH9jChSqwv2wdEMwRLIOkgW5D/uyvcYYLwqExwa3t9nwFZCe1Uiugs/BvQhsMJ0ktG ntT2QGYiRx9va8H/7hOt8XBH72InuCVT4KpEvgqwiV4luzJb+hmO9XWe6pVgs51vL1d7 Hfii3r7VDQbWZitkMdlQHt6X6GI3SndnAA5oX7ALl3/wa+Y5udsX36znUsWlK9XB/ReJ weRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=yETdzH5N; 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 r10-v6si12598718pfe.121.2018.06.17.01.54.22; Sun, 17 Jun 2018 01:54:36 -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=@agner.ch header.s=dkim header.b=yETdzH5N; 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 S933073AbeFQIxt (ORCPT + 99 others); Sun, 17 Jun 2018 04:53:49 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:43784 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932897AbeFQIxs (ORCPT ); Sun, 17 Jun 2018 04:53:48 -0400 Received: from trochilidae.lan (unknown [37.17.239.3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 3D58A5C115F; Sun, 17 Jun 2018 10:53:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1529225627; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:content-type:content-transfer-encoding: in-reply-to:references; bh=S56oTnM0X/4dVHOuywLQSLm+dJWcEKccpa86jm+E5wo=; b=yETdzH5NGoIxHRhPY4dteMm9flecqoVrf4bbfmkHGUhUC7Mawt9eZPMoPLTTmn0j7gKHNU uVN7UE1/g/W4hr2eOXhjj8J24wIUc2D6GGIU+FWR1wfheKqD0+0vv3kzkgipLf4JahTpvg nJO2ZEgVPSrvaenRn3aWZg0wJVFUirg= From: Stefan Agner To: Alex Deucher Cc: Stefan Agner , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , David Airlie , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/amd/display: don't initialize result Date: Sun, 17 Jun 2018 10:53:38 +0200 Message-Id: <20180617085343.10760-1-stefan@agner.ch> X-Mailer: git-send-email 2.17.1 X-Spamd-Result: default: False [-2.10 / 15.00]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_SEVEN(0.00)[8]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; MID_CONTAINS_FROM(1.00)[]; ASN(0.00)[asn:13030, ipnet:37.17.238.0/23, country:CH]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The wrong enum type is used to initialize the result, leading to a warning when using clang: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link_dp.c:1998:26: warning: implicit conversion from enumeration type 'enum ddc_result' to different enumeration type 'enum dc_status' [-Wenum-conversion] enum dc_status result = DDC_RESULT_UNKNOWN; ~~~~~~ ^~~~~~~~~~~~~~~~~~ 1 warning generated. Initialization of result is unnecessary anyway, just drop the initialization. Signed-off-by: Stefan Agner --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 7857cb42b3e6..1dbfbfc0fd45 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -1995,7 +1995,7 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd { union hpd_irq_data hpd_irq_dpcd_data = {{{{0}}}}; union device_service_irq device_service_clear = { { 0 } }; - enum dc_status result = DDC_RESULT_UNKNOWN; + enum dc_status result; bool status = false; /* For use cases related to down stream connection status change, * PSR and device auto test, refer to function handle_sst_hpd_irq -- 2.17.1