Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp218705pxj; Wed, 26 May 2021 21:09:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCrYpf/nQswV86Hikyb1P42HL5rFQtRDVznrRJadk1pUpK0aCFzvagTkJ/enrzaadPw3vg X-Received: by 2002:a17:906:b7d6:: with SMTP id fy22mr1603824ejb.383.1622088585111; Wed, 26 May 2021 21:09:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622088585; cv=none; d=google.com; s=arc-20160816; b=lmVMsRK0bY/KkV/b4AF5yL6XqiyEgLvfQWjdVT9CGMZy0Dfa+kgLEmgQQQNEc41V/f Rp8HfogFsU3z0NaI9Wh1b66vRh1BuyqAhXVZcfsPrFDQAKlKS8HhYZvaJLpbmHmH100P CPJxsbK98S0j8BqIWZ0ZcABXeg+hHGFVmDdOltKv0VqjDvu+r7ZZ0JpVgfTfvatsuC6D gPfDlOqyZxbxUqTSCLDzG2mWVfMDLG3uy7cc5+v6bWZkaK+ho1OBwk3uVdnckdrOYeNY k5VkU0yFkWgiBxH5xdocNS3KLpg32maOXiD9tv1dfQ0eeSJpSFoYOi9tfTBxtJpbPpv7 VyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=RtGwrkIZZiG/x3fVmHw4MZLqdOdAM4Gg7Y6DlMdvCdw=; b=msffVA9tTx9KMiU57N3SDY0YGtNEM3rudlO+eYVbpyzA5o+GayPF60RfHIjcI7WsdO slF4Fvt6O3PLXUU1wJfEGn5vZAkh2VGM8YpS9F75GYUkYCMknU58CiCgClY21E/ZYv8n YnBQ3YNt9palbG0O2CfNVTdejg8TSXPpo7hNhLBbz1xDRoB3fyaz1CRCxHjHy/qyDPk3 ytJhEKb/FgdG1quDfm+K5NpP8AeJzceB2BxoZPXkLE1nU9ddigxgFNlwOFWLJgzijzaP wdrt1x7Fig+9pt+uavGeraOHzx2gQ0cQBAnuMvHDbkWNVedJc5apqk+JwGj2x8AGpaph BFxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pMPHrGUX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh9si1333469ejb.139.2021.05.26.21.09.21; Wed, 26 May 2021 21:09:45 -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=@gmail.com header.s=20161025 header.b=pMPHrGUX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbhE0EIL (ORCPT + 99 others); Thu, 27 May 2021 00:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbhE0EIL (ORCPT ); Thu, 27 May 2021 00:08:11 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05E5DC061574 for ; Wed, 26 May 2021 21:06:38 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id 66-20020a9d02c80000b02903615edf7c1aso3159879otl.13 for ; Wed, 26 May 2021 21:06:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=RtGwrkIZZiG/x3fVmHw4MZLqdOdAM4Gg7Y6DlMdvCdw=; b=pMPHrGUXErML46PYLsZlta62mAowxd0zO2JEe4M38/eyLaBxeCe4Xefjt7GTG0bxGo c3zV+MkFTIeXyqH3dUzGykGN86vNRYfDPsukBpabdLpFuB31Uh7TnSUtb1MaO9VgcTfE uTXK/gEpEari421GQlRRMqYqgjZWimNlHZtc+UINdA5SKPENYyNyDgfU+le/knyenmfb kgLDj0HbNkwHa+8rJiXRX1TA/GUzv2iGmTysZ/FzWWVauBZj7c13DwMvdAkn90kRDKBV ztf9H3Fb0e1yTZWEFcNoY9UjAsOPqH2YngGDPUI/X29iIn+ZpeW67ugUYuE9pHcIp+P/ bc2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=RtGwrkIZZiG/x3fVmHw4MZLqdOdAM4Gg7Y6DlMdvCdw=; b=GFpUC0vBtQU2J+YDe+fncwb4wIe+Lfzk+0DLITWh1dyRQPgsvJRtA2I1Yf3MHuJotq SkHwIIa4x1TJ0YaTotN3ApETmIk4b+s9VxEDakjlhOmhuW5W/SljIxoD/ciQmvoZMz/T +DWBBsT3EnV785AdaTyaiS2p98YpgebWNMkq5bEhqoTVN5uXQwiRCoyTFKi9BjciMYca uFgdX3e5fiAtwSLQTIV9m7FwSmJYz/Yu1yqW66UHUTC1V7AM8Adek5cM5yv0FZXUCNah FgxZIoQMvefQzLKmK74Wrg2yiBr3sJep3daPWRfsYI70QoNTN5Qydrkd4JS8uZo3s49m gz7w== X-Gm-Message-State: AOAM532xXlTOsP3rwDH4uZCYOhc3n2S4hCQmtWQFpUmwEx+JfUd1LrY1 rJTVX0lXNWsE94/sp0HAT3czQ1DZJTjeKvHOkOI= X-Received: by 2002:a9d:6548:: with SMTP id q8mr1235375otl.311.1622088398310; Wed, 26 May 2021 21:06:38 -0700 (PDT) MIME-Version: 1.0 References: <20210526084726.552052-1-lee.jones@linaro.org> <20210526084726.552052-15-lee.jones@linaro.org> In-Reply-To: <20210526084726.552052-15-lee.jones@linaro.org> From: Alex Deucher Date: Thu, 27 May 2021 00:06:27 -0400 Message-ID: Subject: Re: [PATCH 14/34] drm/amd/display/dc/gpio/gpio_service: Pass around correct dce_{version, environment} types To: Lee Jones Cc: Leo Li , LKML , amd-gfx list , David Airlie , Maling list - DRI developers , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! On Wed, May 26, 2021 at 4:48 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c: In functio= n =E2=80=98dal_gpio_service_create=E2=80=99: > drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:71:4: warni= ng: implicit conversion from =E2=80=98enum dce_version=E2=80=99 to =E2=80= =98enum dce_environment=E2=80=99 [-Wenum-conversion] > drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/gpio_service.c:77:4: warni= ng: implicit conversion from =E2=80=98enum dce_version=E2=80=99 to =E2=80= =98enum dce_environment=E2=80=99 [-Wenum-conversion] > > Cc: Harry Wentland > Cc: Leo Li > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones > --- > drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c | 12 ++++++------ > .../drm/amd/display/include/gpio_service_interface.h | 4 ++-- > 2 files changed, 8 insertions(+), 8 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 92280cc05e2db..dae8e489c8cf4 100644 > --- a/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c > +++ b/drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c > @@ -53,8 +53,8 @@ > */ > > struct gpio_service *dal_gpio_service_create( > - enum dce_version dce_version_major, > - enum dce_version dce_version_minor, > + enum dce_version dce_version, > + enum dce_environment dce_environment, > struct dc_context *ctx) > { > struct gpio_service *service; > @@ -67,14 +67,14 @@ struct gpio_service *dal_gpio_service_create( > return NULL; > } > > - if (!dal_hw_translate_init(&service->translate, dce_version_major= , > - dce_version_minor)) { > + if (!dal_hw_translate_init(&service->translate, dce_version, > + dce_environment)) { > BREAK_TO_DEBUGGER(); > goto failure_1; > } > > - if (!dal_hw_factory_init(&service->factory, dce_version_major, > - dce_version_minor)) { > + if (!dal_hw_factory_init(&service->factory, dce_version, > + dce_environment)) { > BREAK_TO_DEBUGGER(); > goto failure_1; > } > 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 9c55d247227ea..7e3240e73c1fc 100644 > --- a/drivers/gpu/drm/amd/display/include/gpio_service_interface.h > +++ b/drivers/gpu/drm/amd/display/include/gpio_service_interface.h > @@ -42,8 +42,8 @@ void dal_gpio_destroy( > struct gpio **ptr); > > struct gpio_service *dal_gpio_service_create( > - enum dce_version dce_version_major, > - enum dce_version dce_version_minor, > + enum dce_version dce_version, > + enum dce_environment dce_environment, > struct dc_context *ctx); > > struct gpio *dal_gpio_service_create_irq( > -- > 2.31.1 >