Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3248063imm; Mon, 13 Aug 2018 08:23:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyTjtfb8zyA47bdYSZfsBdtlgR1Bsl+DazftUNnvadLU3W6qbZRiDC1K31IjOrdKy29VU+c X-Received: by 2002:a62:2744:: with SMTP id n65-v6mr19542808pfn.125.1534173809624; Mon, 13 Aug 2018 08:23:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534173809; cv=none; d=google.com; s=arc-20160816; b=CiguJN2yk0uIlH4HUqdSKrwK2AJeZ4wp27m8d031QH/51x7PqEU/CcHtkcKo1sMxEh 0saKDofMfEWgSqMklrgIHiyBrI3Fj0xyagr82urlFCknNQvYEJKkqFp87qNZVQfyrE5u x4PT8IZ/P0jrRLmTV+/oLCyXuGoIsJ7RF9ERm2r617Sl+xCWgZX7yKqSAznznjIdptoi +NKlCsaV7YPLETDZOC/3w+MHhjW0ETJaVdb3dtKi1Wvw5voZF3HeALrhxIp5TgCYntd2 HYiPbrMzRM7nFr9vIiBG8EkcQEh2sKsCwUTgiaTRNOatDaWPFkSftJ+b2mzKPEdiQN3X DyOg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=JPvWQjG8o4RyDUSjKKf/s54QR3b0wf10ftTyvmhJTHs=; b=xdpLy5ndttHKsL1Z/tqEGn6h5b1VTagEi6F5BXzxujlXp/Gn3uXjzL6Q1JIb7Vp2xK G/EMxTk9NH9skHELGrrq9AwU0SAw+SjA9T5J3iQr7IYRuQXTOngjkBrSUZ3q1k+SdOhG 3uMneeE9rWZQb9lZFt3Vxb9WwaPSwhiMLU+seQTaq9OZmN4Em8ZEbSdEVtWDyAgkexBM 0KadXbb3O7UWXgEBqkpHK+pZKxzkP3E1Y/l4a8w8RLn9XvyZGbiFRPQEV1bbtkENw1Hl eSQxEA2aG7YQY/xoujoeOkCWJgdHFcs0TS0HjfKyQ4sdYM0PKybdnhgIT41Ig9pR14g2 iHYA== ARC-Authentication-Results: i=1; mx.google.com; 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 e67-v6si13871765plb.272.2018.08.13.08.23.14; Mon, 13 Aug 2018 08:23:29 -0700 (PDT) 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; 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 S1730007AbeHMSEe (ORCPT + 99 others); Mon, 13 Aug 2018 14:04:34 -0400 Received: from foss.arm.com ([217.140.101.70]:33050 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728293AbeHMSEd (ORCPT ); Mon, 13 Aug 2018 14:04:33 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9C85D80D; Mon, 13 Aug 2018 08:21:52 -0700 (PDT) Received: from [10.4.13.119] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 20E5D3F73C; Mon, 13 Aug 2018 08:21:49 -0700 (PDT) Subject: Re: [PATCH] irqchip/bcm7038-l1: hide cpu offline callback when building for !SMP To: Jonas Gorski , linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Cc: Thomas Gleixner , Jason Cooper , Kevin Cernekee , Florian Fainelli References: <20180809085901.26568-1-jonas.gorski@gmail.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <795995ac-8cab-23df-e3f9-bf3578cd525c@arm.com> Date: Mon, 13 Aug 2018 16:21:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180809085901.26568-1-jonas.gorski@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/08/18 09:59, Jonas Gorski wrote: > When compiling bmips with SMP disabled, the build fails with: > > drivers/irqchip/irq-bcm7038-l1.o: In function `bcm7038_l1_cpu_offline': > drivers/irqchip/irq-bcm7038-l1.c:242: undefined reference to `irq_set_affinity_locked' > make[5]: *** [vmlinux] Error 1 > > Fix this by adding and setting bcm7038_l1_cpu_offline only when actually > compiling for SMP. It wouldn't have been used anyway, as it requires > CPU_HOTPLUG, which in turn requires SMP. > > Fixes: 34c535793bcb ("irqchip/bcm7038-l1: Implement irq_cpu_offline() callback") > Signed-off-by: Jonas Gorski > --- > drivers/irqchip/irq-bcm7038-l1.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/irqchip/irq-bcm7038-l1.c b/drivers/irqchip/irq-bcm7038-l1.c > index faf734ff4cf3..0f6e30e9009d 100644 > --- a/drivers/irqchip/irq-bcm7038-l1.c > +++ b/drivers/irqchip/irq-bcm7038-l1.c > @@ -217,6 +217,7 @@ static int bcm7038_l1_set_affinity(struct irq_data *d, > return 0; > } > > +#ifdef CONFIG_SMP > static void bcm7038_l1_cpu_offline(struct irq_data *d) > { > struct cpumask *mask = irq_data_get_affinity_mask(d); > @@ -241,6 +242,7 @@ static void bcm7038_l1_cpu_offline(struct irq_data *d) > } > irq_set_affinity_locked(d, &new_affinity, false); > } > +#endif > > static int __init bcm7038_l1_init_one(struct device_node *dn, > unsigned int idx, > @@ -293,7 +295,9 @@ static struct irq_chip bcm7038_l1_irq_chip = { > .irq_mask = bcm7038_l1_mask, > .irq_unmask = bcm7038_l1_unmask, > .irq_set_affinity = bcm7038_l1_set_affinity, > +#ifdef CONFIG_SMP > .irq_cpu_offline = bcm7038_l1_cpu_offline, > +#endif > }; > > static int bcm7038_l1_map(struct irq_domain *d, unsigned int virq, > Queued, thanks. M. -- Jazz is not dead. It just smells funny...