Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp730992imm; Thu, 13 Sep 2018 06:58:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZnUMAoL/R4pvkymIKopAARjQNqHQ3BXzcOpbrCLxaOra5yGuWYJiUjucbro+LXYpUeugIt X-Received: by 2002:a62:4dc1:: with SMTP id a184-v6mr7607117pfb.5.1536847117476; Thu, 13 Sep 2018 06:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847117; cv=none; d=google.com; s=arc-20160816; b=GUIlaHlFA4LveHjq2NFDCFGvDzIj+qHMHz9a3ep8bmHGgH+nUk/afSmEYAm9eakPeO /8HgEsXT2Ff8/IzpCJre1Iuqfj3jblzxvYypH8+YM2za01dPxzbFU4EeiMDZ5fGLuytR Po1I2MYxMbfmf7Ds47sB6pRqrI8ItvXQSHzwHKvNrjDb9O7eptqtCXfC70aCm8B9RzEt E/DQvM8ghY462EftiyrG4xJ+5YvjViBfzSZgc6tKT+Ipigi4AY2W8sgEv29KgI6Js8/9 w5kz0xfky/F8WXpKpOjaZslOp8Ij2PjuQAY4eQnkpfMoEe0DGWWKqCb4AR2Nf6rqPbZz 7gHg== 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=KpDlLpcPWggmGk+W6aLS55al1Suay2a7Ysdm8CnzjFE=; b=d0WPWBjM8vDzFG2B+3Vu0Leen36a7Rq30BfV+RA5YXbGnXIvDecV0U5wO5QNa0QyfM BMCFYh16ze0lzNkOQcX7ZGGHV8m+Ns4UHYJaTZ8vGFTOl0/217eqfXuRAFVlkPjn7Hk+ 87wxztasHOYhMMfN0HujZ/WReDWX6oWkWLeSb7fnPR8WsHXIpPVdxocQik/B2IpEHhDg FDKaCGhrkogPMET6aKF14R125mXuH0uls1PXOMm8bHsQv4f+FaQfuVs2IOLpWsteLDlQ 6M4YZENWPlajYelGVlhr3r/JeTwfBGfUAEpS8CWyyFsktX7ptbbiPeVPxy2tPPez6bcJ s92w== 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 p19-v6si4022980plo.432.2018.09.13.06.58.22; Thu, 13 Sep 2018 06:58:37 -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 S1731136AbeIMTGf (ORCPT + 99 others); Thu, 13 Sep 2018 15:06:35 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34228 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729477AbeIMTGe (ORCPT ); Thu, 13 Sep 2018 15:06:34 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 2D0F7CE7; Thu, 13 Sep 2018 13:56:56 +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.18 092/197] irqchip/bcm7038-l1: Hide cpu offline callback when building for !SMP Date: Thu, 13 Sep 2018 15:30:41 +0200 Message-Id: <20180913131845.216530525@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@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.18-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,