From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7663DC87FCF for ; Wed, 13 Aug 2025 10:15:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EDA7410E6E3; Wed, 13 Aug 2025 10:15:15 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=embeddedor.com header.i=@embeddedor.com header.b="I3ZFenF/"; dkim-atps=neutral X-Greylist: delayed 427 seconds by postgrey-1.36 at gabe; Wed, 13 Aug 2025 05:19:53 UTC Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by gabe.freedesktop.org (Postfix) with ESMTPS id BED5010E1B9 for ; Wed, 13 Aug 2025 05:19:53 +0000 (UTC) Received: from eig-obgw-6001b.ext.cloudfilter.net ([10.0.30.143]) by cmsmtp with ESMTPS id m1ieuiX9o1jt6m3n3ugJCj; Wed, 13 Aug 2025 05:12:45 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id m3n2u1Sw4WvdBm3n2ur4kX; Wed, 13 Aug 2025 05:12:44 +0000 X-Authority-Analysis: v=2.4 cv=cZfSrmDM c=1 sm=1 tr=0 ts=689c1ecc a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=R1XpmoYe2GHAZdAE2O7VqQ==:17 a=IkcTkHD0fZMA:10 a=2OwXVqhp2XgA:10 a=7T7KSl7uo7wA:10 a=1ml3npyrcYbOIoRaIsMA:9 a=QEXdDO2ut3YA:10 a=xYX6OU9JNrHFPr8prv8u:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:References:Cc:To:From: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=8CHxB1Wtr3Lygs//ada2Fd8yg7mcVvvMNOvlWGSBdN4=; b=I3ZFenF/oSKFdznfXcmVkwDLWH jpYuyLFZB/s3kjtkIinOMc6T0qePM+SdCTNDr4vrY9+ffKlxUYYZYaLdOCzNtMF4/brQeOpXIRPuN AdZPXWP84dS1Mrhx77NS1c4wmAq8E4QkbwtdzmE/C9692L6HjslLXtKGgJD4FVTjWFxnxgmPYIN+k k3LEoWTAbLtowaHrayu2E2gmh/kUS2tYFR+ATad0/BzNOjp5JWrtYUD0Cd1fY6vymUoq7rlrV8O6c 5Jvfu4fif+ZZYkfJc9N80vKfl7BOm3eAOeJxe7vkMSYrfPMdGmnEbn/ZQ18gzJdHV3SunW4eDbIsD 5WHOj5Hg==; Received: from oni-27.109.98-104.oninet.ne.jp ([27.109.98.104]:38110 helo=[192.168.0.175]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.1) (envelope-from ) id 1um3n1-00000002TtW-1RYw; Wed, 13 Aug 2025 00:12:43 -0500 Message-ID: Date: Wed, 13 Aug 2025 14:12:30 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH][next] drm/amd/pm: Avoid multiple -Wflex-array-member-not-at-end warnings From: "Gustavo A. R. Silva" To: Alex Deucher Cc: "Gustavo A. R. Silva" , Kenneth Feng , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , Xinhui Pan , David Airlie , Simona Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org References: <864c7dd5-0deb-4adb-a1cf-c8a809514d7e@embeddedor.com> <217b00f5-d03d-4624-9ba9-d838199ef7b9@embeddedor.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - lists.freedesktop.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 27.109.98.104 X-Source-L: No X-Exim-ID: 1um3n1-00000002TtW-1RYw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: oni-27.109.98-104.oninet.ne.jp ([192.168.0.175]) [27.109.98.104]:38110 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 4 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfBU812z9HPea03ceNLGJ1bFcmGwdz5IdotVqDcXXlevn00C0e5RbAQuOiho8nvbhqqeK++rl1A8rcME6XNMnEsbPgFb+RixYeTl7B0gsTOrSmk7H4crT 9Z4SdTkopeQfHjV3QrK+E/6MxH7+mLU3Wi6elFFtrbCmPG697E8v6eR6iHRyDM4vtugm/g5YaFwZkq0JN7rBVOH/ogaYwvVAUHeZZrZf88b/Nev6GmOEG5Qd X-Mailman-Approved-At: Wed, 13 Aug 2025 10:15:14 +0000 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" Hi! On 22/04/25 23:58, Gustavo A. R. Silva wrote: > > > On 16/04/25 09:04, Alex Deucher wrote: >> Can you resend, I can't seem to find the original emails. >> Additionally, all of the NISLANDS structures are unused in amdgpu, so >> those could be removed. I'm taking a look at this, and it seems that those NISLANDS structs are actually needed in amdgpu code. For instance, `struct si_power_info` contains a member of the type of `struct ni_power_info`, and this latter struct contains a member of the type of `NISLANDS_SMC_STATETABLE`, thus `NISLANDS_SMC_SWSTATE` and `NISLANDS_SMC_HW_PERFORMANCE_LEVEL` are needed, and so on. So, it seems that all those structs should stay. What do you think? Thanks! -Gustavo