Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp893253imu; Thu, 3 Jan 2019 09:00:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN5dgriupY/Sz35KiNezSiFqsfsB9wSPHpGkzKP5yIXdpkrd2w+p5115F4DBBdzZ5fZW7q6o X-Received: by 2002:a63:8ac4:: with SMTP id y187mr17759668pgd.446.1546534853708; Thu, 03 Jan 2019 09:00:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546534853; cv=none; d=google.com; s=arc-20160816; b=g4HJYxOr7e21Iwp8TnMjWY3DBfHNr91KwneCglA+zZfEIRRGqATor7GLv+eQGfXI4+ YQ3BCpZDovyNhmSyfyd5OKgmsNiorZfHfrUKLyfU5ED2XBWHlbXlJKwYJnI5lzo+hZQs 59MKD2ynGGrBVrFm+yn6l5I2TOhp3X0v48pIbn5Fx4WgePSirENtW5SRTBIm/1XvNCg1 lrVCIkL9A/of3tcpPPYSPLRTF4BRqrdfdkfoanFsgRn0A/JVJ8waezSfLa9MUg2No93f vSH6n7CFCiM1Z2Wc/FTsZFYDZI3+dhIDqvBs5lbLACau1VqG65WgbuQA2ckG/ltUArkD DBRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=ggRgkjLBaQu5jsNSiFvkh+541Jo2GKcqHj4ha4H/WBg=; b=Fpz24LtKrpcbF2oDHJOuIme5wX+za2yCe1BRaS1nUhy2OEKDPFl4uP6/fR3mzH8FkC Xl2jjP2uBxpXB+BBWpf4u6aUPsBhPtC9hdWcphWk4v1V94mA1TJQR8qc1bxffm4YKwsV qA5PIYZcd2rUuX3haFGfW3NGxJ1KU6twXppo+B3MjwjTyapMB8z0PezEBe+wBPq8H2Zk cByr+OeYXyrEwsszhKiFdR5I8tdcYfgkQj7TEvjaBzaU1ejkuSAdocwyR1LGxL4rwJAb Ah31k6nORSzezPR8twYZ70i78Y5MSwBmUnmPQO/liCvAXnketSKK8ICUctymG8K9HOWN kL+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@agner.ch header.s=dkim header.b=Vft3GXKo; 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 m38si30284230pgl.125.2019.01.03.09.00.38; Thu, 03 Jan 2019 09:00:53 -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=Vft3GXKo; 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 S1731488AbfACNWj (ORCPT + 99 others); Thu, 3 Jan 2019 08:22:39 -0500 Received: from mail.kmu-office.ch ([178.209.48.109]:49628 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbfACNWj (ORCPT ); Thu, 3 Jan 2019 08:22:39 -0500 Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 424625C0096; Thu, 3 Jan 2019 14:22:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1546521757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ggRgkjLBaQu5jsNSiFvkh+541Jo2GKcqHj4ha4H/WBg=; b=Vft3GXKo+PAdnTIgX6h6kGM4C3l7yAmQnwl1ZQpCuQf4LxU34ouCwvTcnmxRrZaO31vbNB M0AZ6+UIVVi/QYVg6TzmQD/zAt5IPgw6PlAqiBhPaGh3jOHHa6bQ4xQHk9tP8eUarnhu+C 6jPTTMr9w+Z8ksEAvMJI+pd6WNuYs6c= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Thu, 03 Jan 2019 14:22:37 +0100 From: Stefan Agner To: Marc Zyngier Cc: tglx@linutronix.de, jason@lakedaemon.net, linux-kernel@vger.kernel.org, linux-arm-kernel-bounces@lists.infradead.org Subject: Re: [PATCH] irqchip/gic-v3: use __init where appropriate In-Reply-To: <5c4d154b-037d-25a0-7dad-7d2c80a252f9@arm.com> References: <478402dd50e3237b14f4d0b41cd945de92de1756.1546092851.git.stefan@agner.ch> <5c4d154b-037d-25a0-7dad-7d2c80a252f9@arm.com> Message-ID: X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.01.2019 12:08, Marc Zyngier wrote: > Hi Stephan, > > On 29/12/2018 14:14, Stefan Agner wrote: >> 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); >> } >> > > Interesting. I don't see this warning at all. How do you trigger this? I noticed that it suddenly disappeared again too. I used some crazy configurations while doing tests with LLVM/Clang, I think it was with allyesconfig. -- Stefan > > Thanks, > > M.