Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp370847pxm; Tue, 22 Feb 2022 12:36:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxD8POsgayUyUMErzlPQWCuLQIVyvezao04mHAA+C76Puv/snhdPPVA4JQaKdr0vsmgzh1z X-Received: by 2002:a05:6402:5207:b0:412:806b:6424 with SMTP id s7-20020a056402520700b00412806b6424mr28038455edd.131.1645562175712; Tue, 22 Feb 2022 12:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645562175; cv=none; d=google.com; s=arc-20160816; b=BWiZPkrWIzKxeju6WfOY3oYrwYycAsKp0AmK1MF0o5oO9E/oTbg5q57sif0fGGAy0O 1qStOGI2nzZi6mAFqYmevvMWHZ6wdY67oGRUN1bXccNu2kfraVZHuYXQelWYuj8KaUXD XV/XTAO2v8oMMmJTRy61wf+Ebliu7s5EvOlwuAlEMsNKtg4Ca4rmofpWu3cnt0rzxObV e0ZUEEyTjPAnmTr7Q4g2rgP61/CeElirEJx8PL99ohKGahYnJNpnY/zuYAQ7of1MFWPS ASGFkhqQwnxI7yLAo8X6pP7WA+lUan2U8aFBjLJYyvucfEK6jAAUeXEuMw3EmtjHKl3L gA6g== 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=gGjkIZdn8iDygTC74bA8nSai9fnVzHtbdRMYVYGrfT4=; b=JBvTozTyISafq+SeP0xSMa70cHt09JHHdn+wANNgddiMV8sZyEOOd3lysFYXROX/Vo Y5V7ymUw+wwJaETGixZSyL+MYs4Gv503vyPjhWYaei1hv/+Q6rWqBItdpLrLeaMfglcn DieZYamexrs6LrxsDZ81zn7Xb/llJJxMMQmkBSlWvsG/xt/tt8Zz83fbxxSnaS/e5b1S +YUx5YVJKKXTptFaSXa78koHZeDowQ9TJdmZNL8dWTSgOdIJMroSJ8S4WoKSlUZVhh6d B7NEnkCNzp0EzHjppofjvEqECh0K60TPnajlgKI5JufKLMMFzLSwWJWsXwGND6kLHLXY 400A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pMIIbsd5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3si1671589edl.111.2022.02.22.12.35.52; Tue, 22 Feb 2022 12:36:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pMIIbsd5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234180AbiBVQik (ORCPT + 99 others); Tue, 22 Feb 2022 11:38:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232671AbiBVQij (ORCPT ); Tue, 22 Feb 2022 11:38:39 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAB50BF974 for ; Tue, 22 Feb 2022 08:38:13 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id k2so11359123oia.2 for ; Tue, 22 Feb 2022 08:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gGjkIZdn8iDygTC74bA8nSai9fnVzHtbdRMYVYGrfT4=; b=pMIIbsd55BhAHXzDncwJDFaoOpcF1JY1qxQPilcyT26Qxu/McqAW3L2Oc4KYVG3IE3 0fawyyZe7TzzanS8DKSyt/POvD+2k06/UEHiMLmuEiKYnYRKmKtdkfuWEM776cY1yZl3 +TuLtOD1Mie67XV1QiKXv0iuCeCfewE6DJSh65Sg+gR9bH7hFtT4FAHaWsViIGCSobT3 4P1Os4tfO+IQ3sjbD9iv0zCMnnqyDr3xCsIPzGy3aOwIwmbejNBxAT58re5XcOe2VFIl ZRx0ps3lJe+LD5EyVwxlQ7B7MQj59n+nHbuUa81q21Z4o3secnKC031WczgJ1bx2QlmF SPWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gGjkIZdn8iDygTC74bA8nSai9fnVzHtbdRMYVYGrfT4=; b=mTEcyPcPec6Llg3nIVbyWidahTEd0KCNVz5k0aXyb1UqlW7ZOr2CfTNiuSOfmZ7O8O yY3fPingIN5GAaaD98/P1yMead8QfKGLre7vyQX3F1pnEo6cmxTwCDxk28s9zQIMKynC D/ZaZuScab+WlWL+wJ0OaAha/LowzyGeDDWvfl//Yy7NbZgjtiSU+SHbTpnA62Z+xsU8 jECMk57H6yc0Sr0zv86MhFNxP29OB6zxUIY21A0vIJRnNYsp9Uk1iKnpRfpJRSlEGKMI CgeQDp4WcUGEQurpUHPu+GvGEyS8Lyv4kv+Iud3XQGm/rqgX3/qmsmuJknX92dg2M4c7 8P8Q== X-Gm-Message-State: AOAM530MTkdMm//KqcFqOYyQbo65xtPAETQcKzPNpCO0RlPxb+Ce+CAX 1saOMlY8XyscJILtB+zSr6fA7BSDnCF1p6bl9Vo= X-Received: by 2002:aca:ab4c:0:b0:2d4:7c7d:606e with SMTP id u73-20020acaab4c000000b002d47c7d606emr2389607oie.132.1645547893097; Tue, 22 Feb 2022 08:38:13 -0800 (PST) MIME-Version: 1.0 References: <20220222131701.356117-1-maira.canal@usp.br> <20220222131701.356117-7-maira.canal@usp.br> In-Reply-To: <20220222131701.356117-7-maira.canal@usp.br> From: Alex Deucher Date: Tue, 22 Feb 2022 11:38:02 -0500 Message-ID: Subject: Re: [PATCH 06/10] drm/amd/display: Remove vupdate_int_entry definition To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: "Deucher, Alexander" , Christian Koenig , xinhui pan , Hawking Zhang , John Clements , Tao Zhou , "Chai, Thomas" , "Tuikov, Luben" , "Stanley.Yang" , Dennis Li , "Joshi, Mukul" , "Wentland, Harry" , "Leo (Sunpeng) Li" , "Siqueira, Rodrigo" , Anthony Koo , Magali Lemes , LKML , Maling list - DRI developers , mwen@igalia.com, amd-gfx list , Isabella Basso Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Tue, Feb 22, 2022 at 8:18 AM Ma=C3=ADra Canal wrote= : > > Remove the vupdate_int_entry definition and utilization to avoid the > following warning by Clang: > > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:41= 0:2: > warning: initializer overrides prior initialization of this subobject > [-Winitializer-overrides] > vupdate_no_lock_int_entry(0), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:28= 0:39: > note: expanded from macro 'vupdate_no_lock_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:40= 4:2: > note: previous initialization is here > vupdate_int_entry(0), > ^~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:26= 9:39: > note: expanded from macro 'vupdate_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:41= 1:2: > warning: initializer overrides prior initialization of this subobject > [-Winitializer-overrides] > vupdate_no_lock_int_entry(1), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:28= 0:39: > note: expanded from macro 'vupdate_no_lock_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:40= 5:2: > note: previous initialization is here > vupdate_int_entry(1), > ^~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:26= 9:39: > note: expanded from macro 'vupdate_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:41= 2:2: > warning: initializer overrides prior initialization of this subobject > [-Winitializer-overrides] > vupdate_no_lock_int_entry(2), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:28= 0:39: > note: expanded from macro 'vupdate_no_lock_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:40= 6:2: > note: previous initialization is here > vupdate_int_entry(2), > ^~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:26= 9:39: > note: expanded from macro 'vupdate_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:41= 3:2: > warning: initializer overrides prior initialization of this subobject > [-Winitializer-overrides] > vupdate_no_lock_int_entry(3), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:28= 0:39: > note: expanded from macro 'vupdate_no_lock_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:40= 7:2: > note: previous initialization is here > vupdate_int_entry(3), > ^~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:26= 9:39: > note: expanded from macro 'vupdate_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:41= 4:2: > warning: initializer overrides prior initialization of this subobject > [-Winitializer-overrides] > vupdate_no_lock_int_entry(4), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:28= 0:39: > note: expanded from macro 'vupdate_no_lock_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:40= 8:2: > note: previous initialization is here > vupdate_int_entry(4), > ^~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:26= 9:39: > note: expanded from macro 'vupdate_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:41= 5:2: > warning: initializer overrides prior initialization of this subobject > [-Winitializer-overrides] > vupdate_no_lock_int_entry(5), > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:28= 0:39: > note: expanded from macro 'vupdate_no_lock_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:40= 9:2: > note: previous initialization is here > vupdate_int_entry(5), > ^~~~~~~~~~~~~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../display/dc/irq/dcn21/irq_service_dcn21.c:26= 9:39: > note: expanded from macro 'vupdate_int_entry' > [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > ^~ > 6 warnings generated. > > fixes: 688f97ed ("drm/amd/display: Add vupdate_no_lock interrupts for > DCN2.1") > > Signed-off-by: Ma=C3=ADra Canal > --- > .../amd/display/dc/irq/dcn21/irq_service_dcn21.c | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/irq/dcn21/irq_service_dcn21.c= b/drivers/gpu/drm/amd/display/dc/irq/dcn21/irq_service_dcn21.c > index 0f15bcada4e9..717977aec6d0 100644 > --- a/drivers/gpu/drm/amd/display/dc/irq/dcn21/irq_service_dcn21.c > +++ b/drivers/gpu/drm/amd/display/dc/irq/dcn21/irq_service_dcn21.c > @@ -265,14 +265,6 @@ static const struct irq_source_info_funcs vline0_irq= _info_funcs =3D { > .funcs =3D &pflip_irq_info_funcs\ > } > > -#define vupdate_int_entry(reg_num)\ > - [DC_IRQ_SOURCE_VUPDATE1 + reg_num] =3D {\ > - IRQ_REG_ENTRY(OTG, reg_num,\ > - OTG_GLOBAL_SYNC_STATUS, VUPDATE_INT_EN,\ > - OTG_GLOBAL_SYNC_STATUS, VUPDATE_EVENT_CLEAR),\ > - .funcs =3D &vblank_irq_info_funcs\ > - } > - > /* vupdate_no_lock_int_entry maps to DC_IRQ_SOURCE_VUPDATEx, to match se= mantic > * of DCE's DC_IRQ_SOURCE_VUPDATEx. > */ > @@ -401,12 +393,6 @@ irq_source_info_dcn21[DAL_IRQ_SOURCES_NUMBER] =3D { > dc_underflow_int_entry(6), > [DC_IRQ_SOURCE_DMCU_SCP] =3D dummy_irq_entry(), > [DC_IRQ_SOURCE_VBIOS_SW] =3D dummy_irq_entry(), > - vupdate_int_entry(0), > - vupdate_int_entry(1), > - vupdate_int_entry(2), > - vupdate_int_entry(3), > - vupdate_int_entry(4), > - vupdate_int_entry(5), > vupdate_no_lock_int_entry(0), > vupdate_no_lock_int_entry(1), > vupdate_no_lock_int_entry(2), > -- > 2.35.1 >