Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9168202imu; Sat, 29 Dec 2018 11:59:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN4jaO4odsk40oDJfoXGcaj5/7gxl/6dF3FiTBNrPyToOlUDperziLG4WGpB09nVGq1tolmu X-Received: by 2002:a63:451a:: with SMTP id s26mr2637926pga.150.1546113549217; Sat, 29 Dec 2018 11:59:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546113549; cv=none; d=google.com; s=arc-20160816; b=EcyX8uqdLoj/22GjMzH0yqUd7Erfks/9XA7/3cut93/tTdriAOdwoMYuPBMUwKoydo CYHnqapdufJ2DN60abqygPkId5fYG4XY9se3Gb4n6MroIsgWECrFH077n3n1Ix8H23Kr DYWm6MHSpR7mtbgX5oL0Z9fzJiDfTkQj/+WYLxxx/Mi5FFSEsEQ/hoJa3VlAdhfX5rDW kAN4K+fQnMba7GFvJuh84sE6q6Awd6YAkm76u29Q03GWRHrJubKgpzcF8JqpR+f3jBDn 2hf4Jh5+IA/qHSsdUYGgS5oUIPIWJiaSwRUpPHptRJCChLxb7Huj75Hl9BhwcrBfXGfo q4Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1MUz9x2LpbVOrd430j/KtspEUhUTKidFBEQv87V8yXM=; b=LFOpve5tEbEU395B8s33zifgaq/E2XWG1d0nOKAfqoOD7e3flxrwhXuqDWMVkco/12 edQgGPr5OGKYC0J/lM5i+8HaFQq/U8KRUDyR46yfaY/oE7Ez5wRKfo5JQxZLsED7t2+m fQ4DxJQrQrY2nlqxIcJTrG5OzYe/ovjybX1hMlvIJL8RwYq/FQ/Q/8QBIOVeck8Odpzl T6olvyj2potSWz34DclA27pFZmzd3uF4+xAwWh5KrIUd6w7CY7zrr22Ldsyx+CeDxyqh q/lQq2cBFcmfgiiqvbOBZRcOUc01CRQ1TZdcliEOmP42D0oXUMH6fw//JbwJTvpe8gbA xyKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=ekX1oiMk; 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 k30si40518536pgb.113.2018.12.29.11.58.53; Sat, 29 Dec 2018 11:59:09 -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=@agner.ch header.s=dkim header.b=ekX1oiMk; 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 S1726023AbeL2OO7 (ORCPT + 99 others); Sat, 29 Dec 2018 09:14:59 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:58048 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbeL2OO7 (ORCPT ); Sat, 29 Dec 2018 09:14:59 -0500 Received: from zyt.lan (unknown [37.17.239.109]) by mail.kmu-office.ch (Postfix) with ESMTPSA id C49295C0471; Sat, 29 Dec 2018 15:14:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1546092897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=1MUz9x2LpbVOrd430j/KtspEUhUTKidFBEQv87V8yXM=; b=ekX1oiMkwSbfqWJS/Oh1Uworw8MC8aJP8HIxz5SykZBBF8kvCpZ/7NaFmSe9tq4GlBVYgM gYL81PoqIbp8yoJ1zadGmRf6hRdgKo+1OE9Qrp3wVUyByTrLxtLROBIxhdrvi1k6D9N1sC wiVlIxbXsSSUdq6fcZrSQDNPjf3nXKQ= From: Stefan Agner To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel-bounces@lists.infradead.org, Stefan Agner Subject: [PATCH] irqchip/gic-v3: use __init where appropriate Date: Sat, 29 Dec 2018 15:14:58 +0100 Message-Id: <478402dd50e3237b14f4d0b41cd945de92de1756.1546092851.git.stefan@agner.ch> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Compiling with section mismatch debugging enabled prints the following warning: WARNING: vmlinux.o(.text+0xffa1b8): Section mismatch in reference from the function gic_smp_init() to the function .init.text:set_smp_cross_call() Avoid this warning by adding __init to gic_smp_init(). While add it, also add it where appropriate. Signed-off-by: Stefan Agner --- drivers/irqchip/irq-gic-v3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c index 0868a9d81c3c..3b33c94041e5 100644 --- a/drivers/irqchip/irq-gic-v3.c +++ b/drivers/irqchip/irq-gic-v3.c @@ -768,7 +768,7 @@ static void gic_raise_softirq(const struct cpumask *mask, unsigned int irq) isb(); } -static void gic_smp_init(void) +static void __init gic_smp_init(void) { set_smp_cross_call(gic_raise_softirq); cpuhp_setup_state_nocalls(CPUHP_AP_IRQ_GIC_STARTING, @@ -848,7 +848,7 @@ static struct notifier_block gic_cpu_pm_notifier_block = { .notifier_call = gic_cpu_pm_notifier, }; -static void gic_cpu_pm_init(void) +static void __init gic_cpu_pm_init(void) { cpu_pm_register_notifier(&gic_cpu_pm_notifier_block); } -- 2.20.1