Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965206AbcCOMih (ORCPT ); Tue, 15 Mar 2016 08:38:37 -0400 Received: from foss.arm.com ([217.140.101.70]:36273 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932564AbcCOMia (ORCPT ); Tue, 15 Mar 2016 08:38:30 -0400 Subject: Re: [PATCH v3 5/9] irqchip/gic-v3: Gather all ACPI specific data in a single structure To: Christoffer Dall References: <1457436573-6180-1-git-send-email-julien.grall@arm.com> <1457436573-6180-6-git-send-email-julien.grall@arm.com> <20160309053930.GH26583@lvm> Cc: kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com, fu.wei@linaro.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, wei@redhat.com, al.stone@linaro.org, Thomas Gleixner , Jason Cooper From: Julien Grall Message-ID: <56E7FF75.7060701@arm.com> Date: Tue, 15 Mar 2016 12:26:29 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160309053930.GH26583@lvm> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 984 Lines: 34 Hi Christoffer, On 09/03/16 05:39, Christoffer Dall wrote: > On Tue, Mar 08, 2016 at 11:29:29AM +0000, Julien Grall wrote: >> Even though all the variables aren't marked with __initdata, they are >> only used during initialization. So the structure is marked with >> __initdata. > > Not sure I understand this commit message. > > As I see it, this commit includes two changes: > > 1. Mark the variables only used during init with __initdata > > 2. Move the variables into a structure > > If I get that right, can you argue for both changes? What about: "The ACPI code requires to use global variables in order to collect information from the tables. To make clear those variables are ACPI specific, gather all of them in a single structure. Furthermore, even if some of the variables are not marked with __initdata, they are all only used during the initialization. Therefore, the new variable, which hold the structure, can be marked __initdata." Cheers, -- Julien Grall