Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3305855imc; Wed, 13 Mar 2019 14:22:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzS3fAbVLN7SwJ4cY79FzZwqz91B40+HLIxA3SOwoipw6ao4qIIhXiL/qbAvMFa5PASTHin X-Received: by 2002:a63:6f09:: with SMTP id k9mr24198648pgc.326.1552512136190; Wed, 13 Mar 2019 14:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552512136; cv=none; d=google.com; s=arc-20160816; b=oeM+iEUz9u5Q6X14CoFWs+5STXWLpnrMLma+WWd8KFWologJfi25i14PfSBrvB2G/k HyJ0YCouENXQtWUvHchRtJueqXKqj718F9paxKh45nYsxBqIz+2Ryr/CYdAVKlb/OK6X iQMDXeKvJQUJ9ql+GwbDhpbPWArYKhJa/zvT6/cA8UcwiTZ73Kx6Ghiy9x2WlLcexx1R pTiaAS/+Yxj/YobgleS6QkijxA2xXGYoLhkCf/GdL+hjsu/kXavMWSlyyIQ0H2meVIDH wPazCo4LVwGnbzwGuvFw4brTcLhHaxhdPhv+62Bplb97oaT9Y8JfiEqQrBl/U32VXqSn /YLA== 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 :message-id:date:subject:cc:to:from; bh=wxTldz+SJy1vRCRDZ56Ay93f1TLjZSoaP/aBFQP/S3I=; b=dsratQWHwcW+UPVr7DmM7kVM8c4On4ky61OkYhoSiclkiW7MT3a8VRxkGDqFUZ6E1N jMqU5zrZYA1y3F+rTJgzKcG95Sf48fQ1t8xEGPX+iGXPMQUS69vy/B0ZsenA2bJIaSZo gx4vjMvQtW20zG8hVlmQh8lCObYUeb91gOe//29crcqugdcj507N9LbeFNx8QKe+huew PW+LSEvYQ52puq0rtpT5+xDx2ceSEeumwJNgV9ysSN2JMqnmZPVpkR7HkjoPTBrV/k+k oPXzcuelVTsNT9UkshWvA9PSRESLDvrpZKeGCPW+eB+ci1rdFba1j4XkmnAp6IPqxCGF APNQ== 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 w2si10502802pgs.6.2019.03.13.14.22.00; Wed, 13 Mar 2019 14:22:16 -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 S1727686AbfCMVTw (ORCPT + 99 others); Wed, 13 Mar 2019 17:19:52 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:39541 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727392AbfCMVTv (ORCPT ); Wed, 13 Mar 2019 17:19:51 -0400 Received: from wuerfel.lan ([109.192.41.194]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MHWvH-1hH3Ji2Grh-00Dbj0; Wed, 13 Mar 2019 22:19:39 +0100 From: Arnd Bergmann To: arm@kernel.org, Sugaya Taichi Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: milbeaut: fix build with !CONFIG_HOTPLUG_CPU Date: Wed, 13 Mar 2019 22:19:16 +0100 Message-Id: <20190313211935.646291-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:SXNlNulCXyLfbw3+cDxZgf8+Ve61fMFD/kBGzv32wV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precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When HOTPLUG_CPU is disabled, some fields in the smp operations are not available or needed: arch/arm/mach-milbeaut/platsmp.c:90:3: error: field designator 'cpu_die' does not refer to any field in type 'struct smp_operations' .cpu_die = m10v_cpu_die, ^ arch/arm/mach-milbeaut/platsmp.c:91:3: error: field designator 'cpu_kill' does not refer to any field in type 'struct smp_operations' .cpu_kill = m10v_cpu_kill, ^ Hide them in an #ifdef like the other platforms do. Fixes: 9fb29c734f9e ("ARM: milbeaut: Add basic support for Milbeaut m10v SoC") Signed-off-by: Arnd Bergmann --- arch/arm/mach-milbeaut/platsmp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-milbeaut/platsmp.c b/arch/arm/mach-milbeaut/platsmp.c index 591543c81399..3ea880f5fcb7 100644 --- a/arch/arm/mach-milbeaut/platsmp.c +++ b/arch/arm/mach-milbeaut/platsmp.c @@ -65,6 +65,7 @@ static void m10v_smp_init(unsigned int max_cpus) writel(KERNEL_UNBOOT_FLAG, m10v_smp_base + cpu * 4); } +#ifdef CONFIG_HOTPLUG_CPU static void m10v_cpu_die(unsigned int l_cpu) { gic_cpu_if_down(0); @@ -83,12 +84,15 @@ static int m10v_cpu_kill(unsigned int l_cpu) return 1; } +#endif static struct smp_operations m10v_smp_ops __initdata = { .smp_prepare_cpus = m10v_smp_init, .smp_boot_secondary = m10v_boot_secondary, +#ifdef CONFIG_HOTPLUG_CPU .cpu_die = m10v_cpu_die, .cpu_kill = m10v_cpu_kill, +#endif }; CPU_METHOD_OF_DECLARE(m10v_smp, "socionext,milbeaut-m10v-smp", &m10v_smp_ops); -- 2.20.0