From patchwork Tue Jan 19 13:11:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Nowicki X-Patchwork-Id: 8061721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 215139F818 for ; Tue, 19 Jan 2016 13:14:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05259203AA for ; Tue, 19 Jan 2016 13:14:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3885E20397 for ; Tue, 19 Jan 2016 13:14:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLW5N-00041m-3F; Tue, 19 Jan 2016 13:12:37 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aLW4f-0003Ak-OC for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2016 13:11:56 +0000 Received: by mail-wm0-x22d.google.com with SMTP id 123so90849781wmz.0 for ; Tue, 19 Jan 2016 05:11:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=3SZfvBUntTo17Ohta9qOAmcNqo386anU/d+TwfjruME=; b=Tph6Sm1LXk89Di0+uyRdmNSbYO57JbkzzVAwoHpnqTcu6/c9YaUZfajKJGLB/iP8db 0sXCPy4apneVnf4KS9rrWy9wNvVHcMKsHNvUU+WBeyfcr+XLNjruazxRs0T89rsmIDCK B7xPscnPrfuL8tDnRkjVr+7f9EZ33dW7AUp1aHs4xSZfFq36Yfx+jgC2yvOmINiT2Jen Ypv03vg8iTJKGXNzk1qZeneP91T5QkCRO5SMJXz2dZVIKaHPEqmqjoDiUX1srqSs/hxw IlnKtezCzfRTW798aTZA59K1il2oKCVJpFJT9KGSzYuY/wwHXdXkzAT7uFbRJQ014crr yQyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3SZfvBUntTo17Ohta9qOAmcNqo386anU/d+TwfjruME=; b=j0dcEBwS3Phsrvuut0ahuuS7opxo2LXwYvpaCrhoO58AwN1Wzf3nZW8sMWvvxkzAB3 8NogcD9V7M1gUYRDrLjtgemZlS2qyZjhkssugGlRG+w7JA0UkQ6nKSn5jcrtA77FIzyw bQnV1TMw+6o4BO0qArJC75Znpa4xl+3mOT1Rg8dFwybsh50TKqO8MR3oEUt972YCBxmp y4P3FsL49axPCSBKUemKZ4g/R8cAKFxbPFFGGmeC0YcC9TmNVfWfO0cyVOsIIh2FKxrs rBqup8HcftZAKZSc7hJhhqVEdBFfW0tCBwh/ux7tmzohkXqDRA0ka0AWBZmRSYrgNR/r stOA== X-Gm-Message-State: AG10YOSEfpRFT9IwSBq7a8JXceYv5i5npy3OLG7FEViuU3ZROtL+0sa3CAj8DvSZF+FBsQ== X-Received: by 10.28.226.139 with SMTP id z133mr20128157wmg.75.1453209092850; Tue, 19 Jan 2016 05:11:32 -0800 (PST) Received: from tn-HP-4.semihalf.local ([80.82.22.190]) by smtp.gmail.com with ESMTPSA id w194sm17762623wmd.0.2016.01.19.05.11.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 05:11:32 -0800 (PST) From: Tomasz Nowicki To: marc.zyngier@arm.com, tglx@linutronix.de, jason@lakedaemon.net, rjw@rjwysocki.net, lorenzo.pieralisi@arm.com, robert.richter@caviumnetworks.com, shijie.huang@arm.com, guohanjun@huawei.com, Suravee.Suthikulpanit@amd.com Subject: [PATCH V3 05/10] irqchip, gicv3, its: Mark its_init() and its children as __init Date: Tue, 19 Jan 2016 14:11:18 +0100 Message-Id: <1453209083-3358-6-git-send-email-tn@semihalf.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453209083-3358-1-git-send-email-tn@semihalf.com> References: <1453209083-3358-1-git-send-email-tn@semihalf.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160119_051154_130039_58C2A82A X-CRM114-Status: GOOD ( 11.50 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: graeme.gregory@linaro.org, Catalin.Marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, hanjun.guo@linaro.org, ddaney.cavm@gmail.com, Tomasz Nowicki , mw@semihalf.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP gicv3_init_bases() is the only caller for its_init(), also it is a __init function, so mark its_init() as __init too, then recursively mark the functions called as __init. This will help to introduce ITS initialization using ACPI tables as we will use acpi_table_parse_entries family functions there which belong to __init section as well. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki Acked-by: Marc Zyngier --- drivers/irqchip/irq-gic-v3-its.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 7ca7f9a..2bbed18 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -669,7 +669,7 @@ static int its_chunk_to_lpi(int chunk) return (chunk << IRQS_PER_CHUNK_SHIFT) + 8192; } -static int its_lpi_init(u32 id_bits) +static int __init its_lpi_init(u32 id_bits) { lpi_chunks = its_lpi_to_chunk(1UL << id_bits); @@ -1424,7 +1424,8 @@ static void its_enable_quirks(struct its_node *its) gic_enable_quirks(iidr, its_quirks, its); } -static int its_probe(struct device_node *node, struct irq_domain *parent) +static int __init its_probe(struct device_node *node, + struct irq_domain *parent) { struct resource res; struct its_node *its; @@ -1585,7 +1586,7 @@ static struct of_device_id its_device_id[] = { {}, }; -int its_init(struct device_node *node, struct rdists *rdists, +int __init its_init(struct device_node *node, struct rdists *rdists, struct irq_domain *parent_domain) { struct device_node *np;