Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1865823iob; Fri, 29 Apr 2022 14:58:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLpuAmBeD2BQl4tZGemtfxzuIe6pyL1tMob1AB8HhMaAOSRhZHOVuPuB9Sc+mJc07qJcHM X-Received: by 2002:a2e:904b:0:b0:24f:5af:4f86 with SMTP id n11-20020a2e904b000000b0024f05af4f86mr779776ljg.511.1651269495123; Fri, 29 Apr 2022 14:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651269495; cv=none; d=google.com; s=arc-20160816; b=p4aqmO6/5fLD51nxWZ531ToUiAmkm7e951Wf7bLvgMZwMQh3oUi9RpfAnz0OXJg91d sma0atsQY0yIrq4u+Sx5S69FZTjCU2VouXXEiMbejfKMBXDMTDZtIb6+zH51iMngbJMC 4+KYdfVW189e93Sv7l9wgYNkU3ki7Uf0pddf6KmqLslhvVeQwVWFYWb0XyJ4EB3jVeJP 82eCP+PN3/keQYnunXvVbkv70Yrc1tQ/8UDekssDSNWGQm+Kq0pe3SYgHJODDZ6acOYR V2UStZhGvuSCdN18VVw+UPUntyMnzFXbTH+KM9ztm6en7UQ6fBjRLTGNei+irdDTi/RO ZYzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=eN9uJhhBhd6KdzVK4Ufp3oHKBDq72kRCPTYtw7AnnaU=; b=qQtH93+cqZBqoyXgpS9RGKOCcfzfLfp5ltKrk2wKKCt3y8lCyFGUPfkoTA5p+KslXt bcGfGz5WXIHWG1QhPiuh9rls8NAY5chtxjx3l3vf6XzjZnusUVhwYmi5viMPhQ+Pba9b r99JSuuZvi+s80fcPHeYWVO+a10h5nx6Fn7WH4BEMFcC4qKzUlBqlSOji0Z3oPLvbYns /+u3tFuH0zCRv/Yn+oEKv3V4smA1/Fo9cRKTjXeadhMbCdpYyyP8iABW5T76R7EyzgaT 2KcYLpukgGsL8SIKegnWwocMJn3XoW5Q0STVltj+tWd1JJFkqw9bu6LMjVymyrrJ+W3/ b2eQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a2e8546000000b0024f0f6d9e2asi8208951ljj.497.2022.04.29.14.57.46; Fri, 29 Apr 2022 14:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378085AbiD2PAc (ORCPT + 99 others); Fri, 29 Apr 2022 11:00:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378079AbiD2PAa (ORCPT ); Fri, 29 Apr 2022 11:00:30 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDC59AD11C; Fri, 29 Apr 2022 07:57:11 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 345C392009D; Fri, 29 Apr 2022 16:57:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 2D5BC92009B; Fri, 29 Apr 2022 15:57:11 +0100 (BST) Date: Fri, 29 Apr 2022 15:57:11 +0100 (BST) From: "Maciej W. Rozycki" To: Thomas Bogendoerfer cc: Joshua Kinard , Stephen Zhang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH 1/2] MIPS: IP27: Remove incorrect `cpu_has_fpu' override In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unsupported forcing of `cpu_has_fpu' to 1, which makes the `nofpu' kernel parameter non-functional, and also causes a link error: ld: arch/mips/kernel/traps.o: in function `trap_init': ./arch/mips/include/asm/msa.h:(.init.text+0x348): undefined reference to `handle_fpe' ld: ./arch/mips/include/asm/msa.h:(.init.text+0x354): undefined reference to `handle_fpe' ld: ./arch/mips/include/asm/msa.h:(.init.text+0x360): undefined reference to `handle_fpe' where the CONFIG_MIPS_FP_SUPPORT configuration option has been chosen. Signed-off-by: Maciej W. Rozycki Fixes: 0ebb2f4159af ("MIPS: IP27: Update/restructure CPU overrides") Cc: stable@vger.kernel.org # v4.2+ --- arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h | 1 - 1 file changed, 1 deletion(-) linux-mips-ip27-cpu-has-fpu.diff Index: linux-macro/arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h =================================================================== --- linux-macro.orig/arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h +++ linux-macro/arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h @@ -25,7 +25,6 @@ #define cpu_has_4kex 1 #define cpu_has_3k_cache 0 #define cpu_has_4k_cache 1 -#define cpu_has_fpu 1 #define cpu_has_nofpuex 0 #define cpu_has_32fpr 1 #define cpu_has_counter 1