Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3191371imu; Mon, 17 Dec 2018 15:11:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/UT1Hqzpq7kJXRRgFKn3pPa7aN3Gip2oqz+dG03n5BMNMhsRgvTLM69FpRR+FvdjEMNFIVY X-Received: by 2002:a63:d5e:: with SMTP id 30mr13769447pgn.54.1545088263967; Mon, 17 Dec 2018 15:11:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545088263; cv=none; d=google.com; s=arc-20160816; b=jxToAdKfgiAq1lVLNmv/Mv0xru9LB6TA5BPJfmEWDV1YO6qLVZzrszfw/e/2nU4W5y 7YB4zhN5Jifx5VbpeOmX2Wxu3KhAr7D8YOS61GWfPUAY/oXE8T2osAFxF5WTezVjsdeR 1G/fOfKZTuBcjZwsRYf/upqRAWH+cJKC4NiDbwuaw+KxJObvboPtjCl45V2dYm4viV/G vBaFOS+kO2ltwfDmWIqhOmBEAX8eKTbdWII0kQ5cskVLvPe2UsrHqcmUENDAembEdWL0 T5E0HpLpIbjmd87K8pN17kaI/9ImFrmwlYXaYxa0NcitQ2d7Au3cvYuoCyySmcDjF3mF z7Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9uKih18xxBxoVrJ97uTPhA2eumFqjVsrn7XJLu5sWWc=; b=eY0qqDHkuBcht8FyC0KxlfPCmiXEbx70HHepVAqOFYWpuZud7glCBS6W7+Cdwgk+Kx X2Y3lZM5Eu8yPs13nlmxmB9aI0wdSe8Xqaf9atgI0sl9AvHxQfEnX10APTXS2TMwAaGJ FsOfSo2LoYdy4nJPyCV5A4d9nZxpi1vmCoLzY+BZiPDY5MqJY9V2XyGacL9CdY7Pmxh7 weyEPd7fIXgOATQ0TJQgC14O27Sx7S4zhk+GdbPPlh6BsxUoWVdcO7K3IJ0c8sqKXuri Uqmbd+Psen7itg1UhsdqdD8uOskop2fsq/hxgfLWIe14YfPem479yfNlsi5nc0EiqFvt x1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ejJ6cQLb; 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 b24si11926871pgg.288.2018.12.17.15.10.48; Mon, 17 Dec 2018 15:11:03 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ejJ6cQLb; 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 S2388849AbeLQSYW (ORCPT + 99 others); Mon, 17 Dec 2018 13:24:22 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:37666 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387696AbeLQSYW (ORCPT ); Mon, 17 Dec 2018 13:24:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding: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=9uKih18xxBxoVrJ97uTPhA2eumFqjVsrn7XJLu5sWWc=; b=ejJ6cQLbQWo/2Rungg0f/l71S v/uJjchECvIrjxqJc6I29s2S/MEs6GQHGFwvjKN7g94GA1Lz1oGLqZtVQO6pBdswRe38ppsuCRLPS pHPkZYhn/DCjp6mmPimYpEWcdw9N0zL7XBZyYVe3kr3B/UFM2UyplXZ3rh9p+M5zivjgJFkekVw0H o12Vw5EfkHTvtlmgMDlMqv65HZK2hHGUd1xkh4ckcLBZtQ4a39964HqqHSULxEDVdBpR3RXWiOi+B 86BCEFE4rl7TsZLnDN29diRVNILfgLnZjuHbIKpd+ICFuWJTr4ViLdd1eiQDxTkm0zn+vo9Fk5HAD hb/IuJdxQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gYxYt-00022m-Qp; Mon, 17 Dec 2018 18:24:15 +0000 Date: Mon, 17 Dec 2018 10:24:15 -0800 From: Christoph Hellwig To: Anup Patel Cc: Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Jason Cooper , Marc Zyngier , Christoph Hellwig , Atish Patra , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/6] irqchip: sifive-plic: Add struct plic_hw for global PLIC HW details Message-ID: <20181217182415.GA7086@infradead.org> References: <20181130080207.20505-1-anup@brainfault.org> <20181130080207.20505-3-anup@brainfault.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181130080207.20505-3-anup@brainfault.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +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.