Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1950489ima; Thu, 25 Oct 2018 07:28:04 -0700 (PDT) X-Google-Smtp-Source: AJdET5eLblW2cFhpM0xTqX58XKvvuZdHCG6Q1yyJMj+VUm86n8EzxO4CgVeWfihBF3SIotusJmjP X-Received: by 2002:a17:902:bb88:: with SMTP id m8-v6mr1699997pls.120.1540477684006; Thu, 25 Oct 2018 07:28:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540477683; cv=none; d=google.com; s=arc-20160816; b=dEklKGhYBOW27APKq2/8CybOhtNwkVATgrrJZMT4IbdV2TuHFJDMcRqkijp7YrkfH7 90nGN6YPM++MOdUfyWzKgq0RQ4Qtm8d4gA2Cg6CiU71tCunnUG64FqAR27ezDA+dCdvR n1Q27MaRB//iYApmBbsMPWlridcCXO96aRCq7lqf60tY3oM+yMUesT3JG/WFv9rprM5+ /qxyPQ5sYK9B9ucaWXhYwc8/g5J9r8akuxAFvP0URg9hcsUP9tl6KDrU/NVL+21dkRGD EGUaokmLnLrsSdK6K8j3540L7/C3TqL+GngtLQdbNE0xfCLEfZoDEYbUsnq3p/051yQm 7uoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=4FRgA1mY0DcgGTsYLLBNKLIQq0TA7GKHLF89iIHDMF4=; b=I6DV7EpTd4RDacx8fJkWOtMQnZF2WDfvcVUSHUkaqsZqdoFoEAclvjON70kbpckcyL 8Z6sULhkRDQBZUfzZ10wB98860UhGmpqSx7k2+2dnLBHNYqIiCl52mMsnJyyQLbMwXm6 F1cbqDK5Y4lKb3S9Q3LNvtEgoDPwts2XgAbk7XMEnBeMX227kRWnSJvyoYcAZzEouDM4 X6s7L0W8zcWF0GM4phOefW2fSqm4x9ip3uD6J5bvIvEExXwwSKP+qkJyiLlu40Oa9yM3 4HKuTmXPXm/rAFoGzBMYXoKUma9OGeezvu/ObqGyxYpH8UyAo5MfcQbcD276PT4Ston7 uyzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PiktR36W; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17-v6si8337509pgk.140.2018.10.25.07.27.00; Thu, 25 Oct 2018 07:28:03 -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=@kernel.org header.s=default header.b=PiktR36W; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731140AbeJYWxk (ORCPT + 99 others); Thu, 25 Oct 2018 18:53:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:36228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729491AbeJYWxh (ORCPT ); Thu, 25 Oct 2018 18:53:37 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0A8A5214ED; Thu, 25 Oct 2018 14:20:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540477239; bh=voPVtmi5Psb82y3VOxnXPsApORsVNEZ5aBnqcdZ3Pik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PiktR36WAavXbvaIBPB5boOk0Mp/Tk2L3BGDSZIcc+HibHpydFbyzyLRrAKTuRJ72 la0pGSh+Q2fht7p4JjQrb49VZl74HWJ9JVEdrOYQGvhz9FdsO7cgqLxetlgjMqO8i8 detWpFRnHGb3Nw6m/KafQXC22XY8IHE5yo7JxuxU= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ezequiel Garcia , linux-mips@linux-mips.org, Ralf Baechle , Sasha Levin Subject: [PATCH AUTOSEL 3.18 69/98] MIPS: Fix up obsolete cpu_set usage Date: Thu, 25 Oct 2018 10:18:24 -0400 Message-Id: <20181025141853.214051-69-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141853.214051-1-sashal@kernel.org> References: <20181025141853.214051-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ezequiel Garcia [ Upstream commit 7363cb7de3999e84243bca79ffea257fd86a2cc6 ] cpu_set was removed (along with a bunch of cpumask helpers) by commit 2f0f267ea072 ("cpumask: remove deprecated functions."). Fix this by replacing cpu_set with cpumask_set_cpu. Without this fix the following error is triggered when CONFIG_MIPS_MT_FPAFF=y. arch/mips/kernel/smp-cps.c: In function 'cps_smp_setup': arch/mips/kernel/smp-cps.c:95:3: error: implicit declaration of function 'cpu_set' [-Werror=implicit-function-declaration] Fixes: 90db024f140d ("MIPS: smp-cps: cpu_set FPU mask if FPU present") Signed-off-by: Ezequiel Garcia Acked-by: Niklas Cassel Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9912/ Signed-off-by: Ralf Baechle Signed-off-by: Sasha Levin --- arch/mips/kernel/smp-cps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp-cps.c index 0854f17829f3..5680ff0eb599 100644 --- a/arch/mips/kernel/smp-cps.c +++ b/arch/mips/kernel/smp-cps.c @@ -92,7 +92,7 @@ static void __init cps_smp_setup(void) #ifdef CONFIG_MIPS_MT_FPAFF /* If we have an FPU, enroll ourselves in the FPU-full mask */ if (cpu_has_fpu) - cpu_set(0, mt_fpu_cpumask); + cpumask_set_cpu(0, &mt_fpu_cpumask); #endif /* CONFIG_MIPS_MT_FPAFF */ } -- 2.17.1