Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1291606pxk; Fri, 18 Sep 2020 08:39:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5lshZg/Cbtn9Pz75Ru0x9hjK1841edFhEoZL8UJLzLDWVA8QQUGQRGecZGYC4qJOMXtlF X-Received: by 2002:aa7:c648:: with SMTP id z8mr39720209edr.239.1600443574335; Fri, 18 Sep 2020 08:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600443574; cv=none; d=google.com; s=arc-20160816; b=Ik9jANQZyZOSdY5jcM8LBlTdKbe2oKad0dgjYcC/erL3O7kFR5gnrmrnRHCE9euQ6m aoxbmb6MftyiY1tYRUkQfmmBKb9SBf3LyhrhSYRxBvW+RHV6hBU69EmGwZ7Jpg20uBmL V1q8mm0lM/fXM9pArAO+EGzzj4Y7nwYzBVB5X3mP5HT7Ghi2gCCJmE4Aw6UobvW8txhr ejbKQ1g57wYFLDEY3vMch5Lq9G3QSG7eCGr6DA5V5r7IBX+Jgbh8X6OJNYSGAC4omgyq apdmgk6mXeVP3WydiCAfgVWSsh80ns5RxTWEUP+N8on+vTgdCZPRv0MU3yr6j6mQDK/K FW7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QcopGDK9hSIqTxMAksLRcaCuxtkJfGidWzxvqmPC0LQ=; b=d5eslyScec4fZANTpBFNxhOtQUKLNubeHtmFdIPYO3c9FQxpvFc57H8ZJL93RxCsx5 kv8peexQZZorvvM7v7LO5I2s30O4u3mKqJzWhwVnhQLFqFFBns7NqNNq0dsuDBUZEr5u wP3wHRf3ILlLrXhiT+3n7PJSYw/O1h8j6JjiOEGc5pu2FwYx78YxWYH831LaNSrvGlSD em72JJ3Qxekj/hEVImvX7zcr+4rL5fh+UumTSJnXRxtoFZTE8Y8xIMkJCqck6lf2nes2 WWwXu29HUDiq08RmLjDKHK26QWxeiCddltGfojY6YdBXPkQeXOVYWQrHQO8JWaOd6Vk3 7/cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rF1V+JFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u26si2285790edy.360.2020.09.18.08.39.09; Fri, 18 Sep 2020 08:39:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rF1V+JFD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726149AbgIRPfy (ORCPT + 99 others); Fri, 18 Sep 2020 11:35:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726044AbgIRPfx (ORCPT ); Fri, 18 Sep 2020 11:35:53 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CD1C0613CE for ; Fri, 18 Sep 2020 08:35:53 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id k13so3185735plk.3 for ; Fri, 18 Sep 2020 08:35:53 -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:mime-version :content-transfer-encoding; bh=QcopGDK9hSIqTxMAksLRcaCuxtkJfGidWzxvqmPC0LQ=; b=rF1V+JFDa5AQPi3fis7yf6icTw5fAdLTA7IvNSYm5Jg7mKZcqMwY6CpvJ08/7xYEiE 0gt5PxOVHldqv/dlf1h/yTTAC/VDW9gfnuSvGI6WwlOihhLsYyYjRuYo81xpg1WDxEz7 1fqiM15pGYTN3gyOVg40BpunAltKQd3snX0+BN3bSTiNTN2suNE89iHboOR32eysWA5Y 3k6SbPV5/HLvo2IgqZZWEBkDc80sNaVOcFeBQ/0CFTgzQsr2D4+DSA0CwA4LURjDAP1F Bz5ohMbUGOzvov/LH0Dg3tHEOl2qGF+hjC2IApFZGFyyg3rDhC+esG8jPClg20eNCI4a XQXw== 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:mime-version :content-transfer-encoding; bh=QcopGDK9hSIqTxMAksLRcaCuxtkJfGidWzxvqmPC0LQ=; b=YlSs7Mjfx7zIamA6Ibgbvcojv5We7vj2S3XreNb/+PrEEDZLX3leY0E4wkOFhzBouB 0v/GqXlJj6Mg5R6tMuCBnar126YtWCGBFYKhhDS1/4U13T+SsVuHm40jRFHmPSEHMNwd 36eiEdlJ/fUMO63Kt2buP8/45u0b+TPXK/qXP3MObv9EIMCMUaJ3yyUCGRLf3kVu/vk5 YpaDL6Og45kBw72vQFmagX9uZmjZNm+jWs/n18Qy+pKxTOBQsY394meeLWObW/yLWR7x Lxu7ZP8ekCU717nzcFtver9nUz0PfeyeOkzn+kbsxGjvlfqtN0FwvpMdbKB4aQYRwAMl 8BXA== X-Gm-Message-State: AOAM530jx6m/BlioWQCZXADDj4k6rCss24UXJG9EFkpKfKOkDJ83qwA8 ifQ2lrvpa4Y3KEaEIc90VBw= X-Received: by 2002:a17:902:8306:b029:d0:cbe1:e7aa with SMTP id bd6-20020a1709028306b02900d0cbe1e7aamr33728872plb.27.1600443353096; Fri, 18 Sep 2020 08:35:53 -0700 (PDT) Received: from localhost.localdomain ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id y29sm4047910pfq.207.2020.09.18.08.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2020 08:35:52 -0700 (PDT) From: Sergey Senozhatsky To: Catalin Marinas , Will Deacon Cc: Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: [PATCH] arm64: ipi_teardown() should depend on HOTPLUG_CPU Date: Sat, 19 Sep 2020 00:35:48 +0900 Message-Id: <20200918153548.836986-1-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ipi_teardown() is used only when CONFIG_HOTPLUG_CPU is set. Signed-off-by: Sergey Senozhatsky --- arch/arm64/kernel/smp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index b6bde2675ccc..82e75fc2c903 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c @@ -82,9 +82,9 @@ static int nr_ipi __read_mostly = NR_IPI; static struct irq_desc *ipi_desc[NR_IPI] __read_mostly; static void ipi_setup(int cpu); -static void ipi_teardown(int cpu); #ifdef CONFIG_HOTPLUG_CPU +static void ipi_teardown(int cpu); static int op_cpu_kill(unsigned int cpu); #else static inline int op_cpu_kill(unsigned int cpu) @@ -964,6 +964,7 @@ static void ipi_setup(int cpu) enable_percpu_irq(ipi_irq_base + i, 0); } +#ifdef CONFIG_HOTPLUG_CPU static void ipi_teardown(int cpu) { int i; @@ -974,6 +975,7 @@ static void ipi_teardown(int cpu) for (i = 0; i < nr_ipi; i++) disable_percpu_irq(ipi_irq_base + i); } +#endif void __init set_smp_ipi_range(int ipi_base, int n) { -- 2.28.0