Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp164432imn; Mon, 25 Jul 2022 12:47:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sTwkfrXP4t+9rbMOQR3i8PgPo65v1OrO9u1yVdzT1ETi4gRgMcEL/Wsj42kl6hAp9uY3t9 X-Received: by 2002:a17:907:3e82:b0:6ff:1e04:a365 with SMTP id hs2-20020a1709073e8200b006ff1e04a365mr11263836ejc.617.1658778440291; Mon, 25 Jul 2022 12:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658778440; cv=none; d=google.com; s=arc-20160816; b=0Epw1DdLru6vTRafRN0XbD6ZMk/wt3fm0Nbk/Jt/afQbTUN+n0EQLNL9Wo63J3Q/ij F79gscrctqJO2ck8ZP+yDSoj13o111ch18OsDWugrrcOvQQZFIScwsF3bAcadlUEXalm GOrK8IeZWW3cNeY2BDzqlSxTZHse/QhQchtpZ6yzoc5dJHXJKQBr0R4zrBAGsQ2CisA9 v2cMOy/yRLtz4wl/kyo79xg9hmhm72ZcAY8/b84DnrjAgYvPCWXglJGfjowwdWuo7X8Z 4Dg7imbWGNOxcUGQIcyjzfMNidhNwTqEPGS0WzWMc7+3NoAiuvE5c9XdulI53x2tOEnV 19gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=fB8xfMvgHCM7t/ObN6FhkrJI21/VktO8GPsKtazK7EU=; b=fLIV1EnGOdlkEtVi3SbeT4jvgAOnwafu22jwdou+DB/t3FDJZ45T6mkeJ8LKAqaR7o qIRN9EsbyzRcaisodePQOljXUBCHuP9VowAuVz4tKLhOfFMUEPplWROWP/OuLmGXkrN0 eS/1wTjKCfb7fjXvW0Jz1by+g7+oB0bpcVWrtNhj7usvDD6YSePiRZFL2QZMF+oMBnix XW0lofsCGgXJdaYmD81CvWcFO1BjdMDDG37IkZuaQ9Bc0nemAAJJ9ZpjJ3t12sPK2ERi GT/0P6atQaXTJU8oUIdjf7gaLY2QL7dabWl0fCjK9edzamVRxaSosIgvS5Dcd2ZI0nQy MgvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=dbJzEm9o; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he35-20020a1709073da300b0072b83c0c0efsi1667181ejc.514.2022.07.25.12.46.54; Mon, 25 Jul 2022 12:47:20 -0700 (PDT) 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=fail header.i=@igalia.com header.s=20170329 header.b=dbJzEm9o; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235544AbiGYTms (ORCPT + 99 others); Mon, 25 Jul 2022 15:42:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232013AbiGYTmr (ORCPT ); Mon, 25 Jul 2022 15:42:47 -0400 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFEB7140DC for ; Mon, 25 Jul 2022 12:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=fB8xfMvgHCM7t/ObN6FhkrJI21/VktO8GPsKtazK7EU=; b=dbJzEm9oou0SafxUIgduHewGCM aiDDJ940JHEO8P0qh5z3xWEDuBc9qqRUqKvs/63xFcJ0gZidlP7rrUyAkt+O0tMLXDToGeHZfwWjU 4a5IcRhO+zSvIKIzWmhPrWqM0aVU2aBlcf0iC3SJfmznzSDdzP8piptTe3zK4if8DO/njj7xiPjIP d9c1ptNjEXbFjR6IkU4DjvLZz00E+2KM9LpSCQeIOaV5U8XQULWMIT9gjNo0wdo+gAod1paN8ticg YXLx2nAetOQ4xnOOUoCIgX6Bjxwgn4mMfmbMNf6h+QzXu1iTfB0k5XM777+ejeKdUKp9ES66UR8gE 91hEb1GA==; Received: from 201-13-50-220.dsl.telesp.net.br ([201.13.50.220] helo=[192.168.15.109]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1oG3yP-006KdW-3E; Mon, 25 Jul 2022 21:42:37 +0200 Message-ID: Date: Mon, 25 Jul 2022 16:42:17 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/2] drm/amd/display: change variables type Content-Language: en-US To: Magali Lemes Cc: siqueirajordao@riseup.net, harry.wentland@amd.com, Xinhui.Pan@amd.com, christian.koenig@amd.com, alexander.deucher@amd.com, Rodrigo.Siqueira@amd.com, tales.aparecida@gmail.com, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, mwen@igalia.com, mairacanal@riseup.net, dri-devel@lists.freedesktop.org, isabbasso@riseup.net, andrealmeid@riseup.net, sunpeng.li@amd.com, airlied@linux.ie, daniel@ffwll.ch References: <20220725181559.250030-1-magalilemes00@gmail.com> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= In-Reply-To: <20220725181559.250030-1-magalilemes00@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 Hi Magali, Às 15:15 de 25/07/22, Magali Lemes escreveu: > As "dcn3_15_soc" and "dcn3_16_soc" are of type "struct > _vcs_dpi_soc_bounding_box_st", change their types accordingly. > I can see that indeed this type change sense for those variables, but isn't a bit strange that the type was wrong in the first place? I wonder if this variable is even used, given that it would very likely throw a compiler error when using the wrong type and trying to access struct members that aren't defined. > Signed-off-by: Magali Lemes > --- > drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.h | 2 +- > drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.h b/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.h > index 39929fa67a51..45276317c057 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.h > +++ b/drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.h > @@ -32,7 +32,7 @@ > container_of(pool, struct dcn315_resource_pool, base) > > extern struct _vcs_dpi_ip_params_st dcn3_15_ip; > -extern struct _vcs_dpi_ip_params_st dcn3_15_soc; > +extern struct _vcs_dpi_soc_bounding_box_st dcn3_15_soc; > > struct dcn315_resource_pool { > struct resource_pool base; > diff --git a/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.h b/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.h > index 0dc5a6c13ae7..d2234aac5449 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.h > +++ b/drivers/gpu/drm/amd/display/dc/dcn316/dcn316_resource.h > @@ -32,7 +32,7 @@ > container_of(pool, struct dcn316_resource_pool, base) > > extern struct _vcs_dpi_ip_params_st dcn3_16_ip; > -extern struct _vcs_dpi_ip_params_st dcn3_16_soc; > +extern struct _vcs_dpi_soc_bounding_box_st dcn3_16_soc; > > struct dcn316_resource_pool { > struct resource_pool base;