Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3586052imu; Tue, 18 Dec 2018 00:28:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xi0yZ/Cdvz0l26vjf/aNb02jsC5q1IirorWwgo1nW+BYn7YmcjMIIGPrnoA5Qp75yWCH3k X-Received: by 2002:a17:902:27a8:: with SMTP id d37mr15929648plb.182.1545121687373; Tue, 18 Dec 2018 00:28:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545121687; cv=none; d=google.com; s=arc-20160816; b=Ta41TWJNhM9QXEw7OgTPuYXTh8Lpw+UTPySpDW8XyBqbC9mSCFNDbRTi+/jmrDt30H rKRm+H/c6PScRXe2tm7X3a3sp+YwRi2Za7LIKE/Cd8CoIM1ShNHmo/jQO/M3WaUXWQL+ haxCJxGo+khzYOIm1LGf4E+REqc1Z5mk0SbTO/q2u1eEh/VCmmlTk0s1d6/9/2Mu5QHq fx/FAO+LW/z0D8Rr/w3xOYF5KUEkkuoFo0GWPMBtScCcDBTC42+r3C4yGWJr9N9TXREl juxNzPGS2xShiQl+mVh9sqn5uKyJ66ztJLyliQTGQsUto68XGcS0oFCoVQETZjQxrmIb ARRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IpykpJoy63zv5Qr2sa4YjvLcDK9nBwqseXtSqQ+mgA4=; b=jnsQDND/W/bnqLWmWhmakxpKCQ/ZRyKsAzgzAoSW6vqeZby2EC5D9vMdOyVubhVMWD HZPusPxNvygYLq3G+HC9FQZp9CGC1esQ/wAMHD3oRWvpLvQgJ7b1JRB8gRO+YW1uWI27 Wbwlc81xPPSeM9qcjbt3iRpQyRmiTV2D04AlXldMRcPNhvoLXU4pTUdLoVs0CpgeagPO 1iblcYR5AMXH7SMwdNNnW0q83VnU0cJAdo3FwYkp47unxxjbaTXEPCQLQCpThLlJoE7r x3bU8cw4knz2Ub7Pd/XZqh86LIvAyVUjUyNgf0Qerh1N23d3kDRUlbl+QqKH0h/EgeVP 5Mig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=ckuzd2hi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13si12675919pgi.227.2018.12.18.00.27.52; Tue, 18 Dec 2018 00:28:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=ckuzd2hi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726589AbeLRIZO (ORCPT + 99 others); Tue, 18 Dec 2018 03:25:14 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33554 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726316AbeLRIZN (ORCPT ); Tue, 18 Dec 2018 03:25:13 -0500 Received: by mail-wm1-f67.google.com with SMTP id r24so6549621wmh.0 for ; Tue, 18 Dec 2018 00:25:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IpykpJoy63zv5Qr2sa4YjvLcDK9nBwqseXtSqQ+mgA4=; b=ckuzd2hi1aO4C8vNbcH8WxP+w7qciNjsquy0ycxsGqWOI6gOBgVIjVsQFl6ZSWQVGs lWwHW3bTLXqVisGxPiE7aBUIiVdI+837SUHideezgE207xsd/2/kLnpW8MteUDN2czcn y2pOL5akqm2QyqUN56z4gTA9xBjpfEh8qRdvJnKolRUHnuNXCOgDZNf9ysTBluFn4DbE IQUqgG5rZsVbpyIaIMTj68UDbNv1B//FsMx4v7xa3mYtvYseeTsSV8qNXFnV8+EyrEb2 /YCC20RwHcB3p7U0NcG116a4U5Vix0bff50v5bt27uB+wHPeJBv1D+eNYVyg4yZwV7XZ bgFw== 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; bh=IpykpJoy63zv5Qr2sa4YjvLcDK9nBwqseXtSqQ+mgA4=; b=UTZAYSfpPGUttPCHpPJ3ryo0oD2eM5ZBTGwpc/mc2hp2GUHVn5QHKt1UCX4DyOMZMX lm7pGLkzti4HdhlzMQdFLWf520xkm5AO9OFLtSEyIYv1sZInKhWs79CvklUjyd2r7LGY v6S+fTHtL3ATXDoB10XogpjVWE3Kkdo5uHJM+TzTxLXOk6GAzMD+zDno0lQtztt+iGCZ tLxBPTolinPsDZcTklh1O+jaELIH4Bdnd/65pT8pqNpeRDbtoZVM8Ae85/428Kpu91wq OhXTi18DWtlBn/QaSiZdAhz1f1bVBl34gTklQnrfBPMhKbUqGE1XNJgqIVpZopHy8llR 54xQ== X-Gm-Message-State: AA+aEWb7kSKw/q8AL6ynL15B30zIlM+TGkLME1b13wHMzkcpba/hZN1x m5gxl2bFFpRMxyI62lJgHgL3dAH8WjZdHUNbZTFwHA== X-Received: by 2002:a1c:a3c3:: with SMTP id m186mr2205887wme.16.1545121511510; Tue, 18 Dec 2018 00:25:11 -0800 (PST) MIME-Version: 1.0 References: <20181130080207.20505-1-anup@brainfault.org> <20181130080207.20505-3-anup@brainfault.org> <20181217182415.GA7086@infradead.org> In-Reply-To: <20181217182415.GA7086@infradead.org> From: Anup Patel Date: Tue, 18 Dec 2018 13:55:00 +0530 Message-ID: Subject: Re: [PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details To: Christoph Hellwig Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Atish Patra , linux-riscv@lists.infradead.org, "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 11:54 PM Christoph Hellwig wrote: > > > +struct plic_hw { > > + u32 nr_irqs; > > + u32 nr_handlers; > > + u32 nr_mapped; > > + void __iomem *regs; > > + struct irq_domain *irqdomain; > > +}; > > + > > +static struct plic_hw plic; > > Please use local variables instead of a single instance struct. > And only add these variables in the patches where you actually need > them. I am sure it will be useful in-future but for now I will remove the struct instance. Regards, Anup