Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1794694imm; Thu, 9 Aug 2018 02:00:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPypbkFgztRe9ahmvzoKAi2xUPONAW1YYcNHGgm6ic6aTikSd6xlWs56iwR5SIlXMq/73EcH X-Received: by 2002:a65:60cd:: with SMTP id r13-v6mr1317387pgv.232.1533805229883; Thu, 09 Aug 2018 02:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533805229; cv=none; d=google.com; s=arc-20160816; b=G0Skykj4egIsdrL0mwiNBmOy2szK9ZJBH5kmKCqIIKnKqjee6hhPhFnvvDENk0qqE9 OF0WqNuJh5WBx+XOczKmJQK8lrgnQbASt2SphuouDiDdqoYMvPUywjFLwfzCyZbqyjv+ mFR6aQ9MmSGHzIRtWXJKL6pj+eOIlresI2cH1w2nKlF7lCMqk0UWFPRBt30LtjzqRwe1 LODAwXuwbpswxeN2Ppf5DlXCBsuWdmU5ERKt0IW+PgzaPW9tiOQYRYkitBw51u56rL9D VX1tmcq8cR/9WS3RRt2r4yI/rn5D1QCO7JZb3Ng9YA8VcZwVBV+/0bwHHRAtZ+Y7gMhk vzzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=F7KHAUGCcRku+LbHtcagWA+vrgOv2XDa19iGg6969S8=; b=F2yQg9JEcT0+5RzHYHKWNSYKsJ5+ulcuh6VQxl/5n9AXk9fAn24rqUaO6QxVR94DI4 NGTg9vLj/djA4zUQiV8v71u+sRix/kvoaBneOtJU9ZQE029CZ5DpNG948Uxki/O1OPx+ rva0VCHE+pKJHo4OQuIy97raJFEqaGoTgWUuAVEGnPFIR3SfWfrf7PZ4vC/ERDoLCvot 4zxeN9ija9mwWYUKGQgdfj4ki6P7yrCVOGkiqe2gU2ZEdyKvJrz5UXx96PRWN7vukcDs yM5F1ERM9437o48K6ZRKpCaLQ5cggBuol1Is4OmcZThiMFXHdL7XW8Wk9nG94FY2zIPG wVMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oaI4opN9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12-v6si5016988plg.487.2018.08.09.02.00.15; Thu, 09 Aug 2018 02:00: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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oaI4opN9; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728549AbeHILXQ (ORCPT + 99 others); Thu, 9 Aug 2018 07:23:16 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34032 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727371AbeHILXQ (ORCPT ); Thu, 9 Aug 2018 07:23:16 -0400 Received: by mail-wr1-f67.google.com with SMTP id c13-v6so4477021wrt.1 for ; Thu, 09 Aug 2018 01:59:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=F7KHAUGCcRku+LbHtcagWA+vrgOv2XDa19iGg6969S8=; b=oaI4opN9upeJCU/58x3Ksgl5A2I3sw6YNleoHpt2tl+JuoK3nswJW6zwccE/6bwipm Nz9StJceVWLxs1GmVV3PMKXuRLWGRX8Qgld/uXTjaFMWM27ejoURQbSbXUKqfpZc45zc tUZEWZzdJy94fQTJGu4TO4F22n9wFmyNP9d+zx3rgIdMtPRayOKhWmVo2DTZORJgpwj/ mhzQle7MGwBPsQK7DCGSbXC9+LcO48S0onMmzh+Pe22qASg1s1T4Eqv3xacwBSj9dZUr mYBEXljzLF1wppn8MctD8fexcRNOgWwztKH73iaJNwyT5wrs80YvYhMj3wTOGn2pCryw IsIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=F7KHAUGCcRku+LbHtcagWA+vrgOv2XDa19iGg6969S8=; b=g2b6kg/cpEy/kGxnPe1bpASnI/tU6vn+CkR/8OxGeNdLYEkzI6usjZwF2v46k8xJeW TZVXXuWUQ+JCKpQJmsmtJZ1J4NGEEYyN+6MjPcymD6AxCwGdwsctr0qoPwzdOu4/T3hy wdHOcj1laZOGFB4UmOhVoy3LvYTxZodPLQdCrr7Z9bGRvTDip+6rQxNr1Hdqs9SiHO8E Y6LTveKrybENZDkdP4QmwarJeKET+zO55YzBTv3ggrpkLFLQ8vE99Jq8rZH0jGuTG8u6 3ddXO6GWJ+svpNVkiB6/Y66wPzDMPW4ygi1EyfpbMAs+8cAv5He2fR/tvMJCOaEi55Qh lCqw== X-Gm-Message-State: AOUpUlH2tQFborWVj2py8FH+IyH816FxP+qWEaGeY0Y5qJRy8pVf0omR 0C+ET1yAUoqXu/cgrPnp7VMdINxd X-Received: by 2002:adf:b309:: with SMTP id j9-v6mr800998wrd.207.1533805162758; Thu, 09 Aug 2018 01:59:22 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::64]) by smtp.gmail.com with ESMTPSA id a6-v6sm11219702wmf.22.2018.08.09.01.59.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Aug 2018 01:59:21 -0700 (PDT) From: Jonas Gorski To: linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Cc: Thomas Gleixner , Jason Cooper , Marc Zyngier , Kevin Cernekee , Florian Fainelli Subject: [PATCH] irqchip/bcm7038-l1: hide cpu offline callback when building for !SMP Date: Thu, 9 Aug 2018 10:59:01 +0200 Message-Id: <20180809085901.26568-1-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.13.2