Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2070623pxa; Sun, 16 Aug 2020 22:49:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGXkiyadtZ4VaN9V+2dTaoHfNW0tIvdAiTC4EYv8Jo12DgOqBy5k5ze1UwxFv5Mpolz4gj X-Received: by 2002:a17:907:2805:: with SMTP id eb5mr13280405ejc.139.1597643391345; Sun, 16 Aug 2020 22:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597643391; cv=none; d=google.com; s=arc-20160816; b=WFB/zySFEy/Byg8Uxkt4/9h11KKVvK9U9J63P9dxw1uImtJrDOCKY2DghU5jFxGiBC I4Zu+hQd8UvL/1H/UzGq2voGbo+D4ySceM6R1182/oKkQ2bEzGJxTaNUz3AKMTE2ZEO9 K844DPfwddP8lBjG1rVfNI2hYFirloD17u/MUq3h/QVBiHuFMFK2YIxxDBAdxC+2V2LZ fUEx/KhI9NwuwH35HRVqhc8vrMVpre6AqCngCqhRhMwpXj7LwoR1b0DQ4vuuXjrUNYkD YYM5ZlANRsGUl/sfIOfl4pbRYMtqg8MYiorLclYXObpjZbGEobTOjvUEPuWyNXwBMlUZ jdVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id; bh=jXPxMwkTwNwQxGAo3jxFkpjPPZDPTTHcA81fTMdxhUA=; b=KkxvyBC/GW+g8Fn+q6rgXOKvJs8FqlmZw/LXkfEE9SUzLaLN1LAuGWfBlDFHKkClAk 9QbOlh4fi4wAxkG9XKRob11bju+VAwGYCQ5ChGdfkwjPwvmPrre0nMvFpyg0nPI/Uae2 iwUWIyDVIyFn1fG01/lpRbRE30BHTZSkgaR+gx+7yqA45eEYo284MLaeRvOZQrpRoFPh a8mx6MGLiPKQdGOrWlHO9IHfaoJlY7KmyoclaDCdHmQ9OGJ3khL+fFx15azBJpeBXnBs rCdhzxd40gCqnZ+Dk9AQypRdtV3WxpbWJgxyOYmSA7oWuk5b6Adf6XuDRlISXKk0jcXy 70kQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si10573769edu.518.2020.08.16.22.49.28; Sun, 16 Aug 2020 22:49:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726730AbgHQFsC (ORCPT + 99 others); Mon, 17 Aug 2020 01:48:02 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:31624 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbgHQFr7 (ORCPT ); Mon, 17 Aug 2020 01:47:59 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4BVNP36Zdkz9tytn; Mon, 17 Aug 2020 07:47:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id Q31TzKBgDRfA; Mon, 17 Aug 2020 07:47:51 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4BVNP35csXz9tytl; Mon, 17 Aug 2020 07:47:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9216E8B772; Mon, 17 Aug 2020 07:47:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id szLHl23uqWEw; Mon, 17 Aug 2020 07:47:56 +0200 (CEST) Received: from po17688vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.104]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 6CE298B75B; Mon, 17 Aug 2020 07:47:56 +0200 (CEST) Received: by po17688vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 6210965CDD; Mon, 17 Aug 2020 05:47:56 +0000 (UTC) Message-Id: <03ba6b52344ca7c336df2bc6e3d31d736c804ae2.1597643221.git.christophe.leroy@csgroup.eu> In-Reply-To: <0eb61cf0dc66d781d47deb2228498cd61d03a754.1597643221.git.christophe.leroy@csgroup.eu> References: <0eb61cf0dc66d781d47deb2228498cd61d03a754.1597643221.git.christophe.leroy@csgroup.eu> From: Christophe Leroy Subject: [PATCH v1 2/4] powerpc/process: Remove useless #ifdef CONFIG_ALTIVEC To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 17 Aug 2020 05:47:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cpu_has_feature(CPU_FTR_ALTIVEC) returns false when CONFIG_ALTIVEC is not set. There is no need to enclose the test in an #ifdef CONFIG_ALTIVEC. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/process.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b64d71188715..360415689f8a 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -409,10 +409,8 @@ static int __init init_msr_all_available(void) #ifdef CONFIG_PPC_FPU msr_all_available |= MSR_FP; #endif -#ifdef CONFIG_ALTIVEC if (cpu_has_feature(CPU_FTR_ALTIVEC)) msr_all_available |= MSR_VEC; -#endif if (cpu_has_feature(CPU_FTR_VSX)) msr_all_available |= MSR_VSX; #ifdef CONFIG_SPE @@ -446,10 +444,8 @@ void giveup_all(struct task_struct *tsk) if (usermsr & MSR_FP) __giveup_fpu(tsk); #endif -#ifdef CONFIG_ALTIVEC if (usermsr & MSR_VEC) __giveup_altivec(tsk); -#endif #ifdef CONFIG_SPE if (usermsr & MSR_SPE) __giveup_spe(tsk); -- 2.25.0