Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp716103imm; Thu, 13 Sep 2018 06:44:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdagkSOGnN2AnjX/eSmgaAnpB48Qmngpjt70EPpsOG5vzHdalLxIZSG7djkj0BNnGwfGAPPF X-Received: by 2002:a17:902:aa83:: with SMTP id d3-v6mr7361020plr.242.1536846287100; Thu, 13 Sep 2018 06:44:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846287; cv=none; d=google.com; s=arc-20160816; b=C7SlI/AI6I/+cUeSBCiKwVujibt7hqTiCtWiCX2R0TlVzTQ86dvifNyCRFTGHqapSV HtLMbiz7ewLclhBIrQl9u/FGAzAv4W+aLrHm+vXXV+RgztDvfu2chRtgNhXO76ksk6wV /mp0t9+8vNNkbkYjmUowWXjBO1r4LtV9yUOei4/xZuLa46xhCDTWBd1io94Zv+bEUWWI rp79fmzoOB0ENXiLwyB1UY9EOPEJkWEJmk2oSv4tBDCZ7I7s9JA1GVUhFRQK5b3n/kn8 2kzej5Qfheq50axog/rUgOsvY3PgAz57e4e5NS+esTB0MNDfdz5SYpIszK9XGxATVqfY VuRg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=D30IZMXfs4n5/DgGo+D8PMukExCWNbl6tgFqyl9Dfts=; b=Nb+KgHT4kNoVl5tTxIMY0k2xCIW0hLbaNdaRkGYVBN03r0+B8FkRUt0yr1c8FsP+LK CvAf4eL5hpCxY9JszsXO87GvsjXoAWcTxbwD2bOosfzBzS1l0KEXJTjqDQgKrYaxxRG5 MyBGr4oOsR6y+tNf6tCHCY+WZskQGaJK5jc/r9BL2wzUZjKAcDAQKXwMfhVwXbGpS3D5 PwJlwi6M//NISzviW5EaP7UJNL9/xZgkgGoAAcd6lpb+uAFpP1jNsJt02szJApRAX5rj umFF/lpoyGQgpju8bEaQgSn+uCLJ5CIzjx49sVXJhMJNbzgxqJ8hUlEZmco15Crw7J2a sahQ== 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 z19-v6si4324950pgi.388.2018.09.13.06.44.32; Thu, 13 Sep 2018 06:44:47 -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 S1730015AbeIMSyA (ORCPT + 99 others); Thu, 13 Sep 2018 14:54:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60534 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728261AbeIMSx6 (ORCPT ); Thu, 13 Sep 2018 14:53:58 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id B7912CF3; Thu, 13 Sep 2018 13:44:25 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jonas Gorski , Marc Zyngier , Sasha Levin Subject: [PATCH 4.14 049/115] irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP Date: Thu, 13 Sep 2018 15:31:09 +0200 Message-Id: <20180913131826.645626946@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131823.327472833@linuxfoundation.org> References: <20180913131823.327472833@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jonas Gorski [ Upstream commit 0702bc4d2fe793018ad9aa0eb14bff7f526c4095 ] 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 Signed-off-by: Marc Zyngier Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/irqchip/irq-bcm7038-l1.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/irqchip/irq-bcm7038-l1.c +++ b/drivers/irqchip/irq-bcm7038-l1.c @@ -217,6 +217,7 @@ static int bcm7038_l1_set_affinity(struc 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(struc } 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_ch .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,