Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp617406pxx; Mon, 26 Oct 2020 17:03:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPk7/Ex6Y5NOlc6NKPa7EKd4uzcyrtt27AM3XSEnVRVPORJYO43H4Yqw7C8FmB745XcGR1 X-Received: by 2002:a17:906:802:: with SMTP id e2mr17846958ejd.294.1603757011684; Mon, 26 Oct 2020 17:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603757011; cv=none; d=google.com; s=arc-20160816; b=bx1/DLcDZ+bkW9PsNbiJHRAWdp6oYYknnRsB+hSbDA5cqGc1o5EOkmUceFBy9wWkCG fZNc1PhQY19KrNcybu557YL2/7qVi/51GZuAILh6QxgOTkJrfU+flVbzHN5nXOBSHP3G bZQAvj2M/gMLhDRUY8et3Gwncwl97OAevKfmEsvzw9LwivUzZ/wX9SMA8rrcPWBuCLxn Prk3gAsndubb8wb9YZ0jp/bpxdmAPVPpHFiUuxObFyoTG4mLlaLmtDI3IBZOK+3q5DZ3 7Rj7mRDVpTzvDCoZKoCw/4MT+BwM2YP8uWspACHfTUaxqLSZBxP03+xSGZZ5ypMi61mc +rog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AUQIpHucajysbP+pKBFJvnQzK8qOenbWGIV6+s2FV/o=; b=xOqYNjdHS9W9htlRb5FgVLE+3CMYGh1mQZTcZBEcH8xSsTeX5bGPScE5yKZuH6bWD3 QLMMjZZmSCGzE9IeJOhAIEJOzgXol1w8vm+GJKKdeBxNNqAfPFEf0R0EY4v5zUNjjaye u3VlAhXlaNonX6PHHaeqZhSR7W/TNIRiC5x9MgZPOn1rjTzczZ7O7vCOzF8Xhte3TghP dUEHARUkcHZGqwurk/hA9ZE2Tbdpz3ogzmIhpPL6vLnu2tXaXDXBum2vDm0qE3u3SOik tUIvYdWBcT4vQPv/osx4E0VsDUm1dRUxNxc8DkIdYEfol5+l7PHGotim41VCNPTNMf6G otbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VzUdhLcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si8614880edg.229.2020.10.26.17.03.09; Mon, 26 Oct 2020 17:03:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VzUdhLcP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729044AbgJZVAr (ORCPT + 99 others); Mon, 26 Oct 2020 17:00:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:54888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729011AbgJZVAq (ORCPT ); Mon, 26 Oct 2020 17:00:46 -0400 Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B36520B1F; Mon, 26 Oct 2020 21:00:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603746046; bh=igjkUN6wESAd/DH60fWZ+VmAdJIU5sWPvyCPO5XJN48=; h=From:To:Cc:Subject:Date:From; b=VzUdhLcPpA/VYtY4oGcXxakGk/klmGlbWxN7jUe4lHINDG2OR0v498DkIilt3SKQx 9EgiYQT80bpyfptSqnLQC0nlOAwQ27biV7F2UzJBbeJzhw12tMcXZhs3tumDFTCB5/ EPQlB8+1RK2gG1f7tadgZIZl9RITJf45G3X7XF84= From: Arnd Bergmann To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter Cc: Arnd Bergmann , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] drm/amdgpu: fix enum mismatches Date: Mon, 26 Oct 2020 22:00:29 +0100 Message-Id: <20201026210039.3884312-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann gcc -Wextra warns about an incorrect prototype causing multiple mismatched enums: display/dc/gpio/gpio_service.c: In function 'dal_gpio_service_create': display/dc/gpio/gpio_service.c:70:50: warning: implicit conversion from 'enum dce_environment' to 'enum dce_version' [-Wenum-conversion] display/dc/gpio/gpio_service.c:71:4: warning: implicit conversion from 'enum dce_version' to 'enum dce_environment' [-Wenum-conversion] display/dc/gpio/gpio_service.c:76:46: warning: implicit conversion from 'enum dce_environment' to 'enum dce_version' [-Wenum-conversion] display/dc/gpio/gpio_service.c:77:4: warning: implicit conversion from 'enum dce_version' to 'enum dce_environment' [-Wenum-conversion] display/dc/core/dc.c: In function 'dc_construct': display/dc/core/dc.c:718:10: warning: implicit conversion from 'enum dce_version' to 'enum dce_environment' [-Wenum-conversion] display/dc/core/dc.c:719:10: warning: implicit conversion from 'enum dce_environment' to 'enum dce_version' [-Wenum-conversion] Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display driver (v2)") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c | 2 +- drivers/gpu/drm/amd/display/include/gpio_service_interface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c b/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c index 92280cc05e2d..67bb5cc67255 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c +++ b/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c @@ -54,7 +54,7 @@ struct gpio_service *dal_gpio_service_create( enum dce_version dce_version_major, - enum dce_version dce_version_minor, + enum dce_environment dce_version_minor, struct dc_context *ctx) { struct gpio_service *service; diff --git a/drivers/gpu/drm/amd/display/include/gpio_service_interface.h b/drivers/gpu/drm/amd/display/include/gpio_service_interface.h index 9c55d247227e..5f0f94e83d19 100644 --- a/drivers/gpu/drm/amd/display/include/gpio_service_interface.h +++ b/drivers/gpu/drm/amd/display/include/gpio_service_interface.h @@ -43,7 +43,7 @@ void dal_gpio_destroy( struct gpio_service *dal_gpio_service_create( enum dce_version dce_version_major, - enum dce_version dce_version_minor, + enum dce_environment dce_version_minor, struct dc_context *ctx); struct gpio *dal_gpio_service_create_irq( -- 2.27.0