Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp239449iob; Mon, 2 May 2022 18:10:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyghsiYKt5LyDwfhRiEmrYrRMyBpB1JdK1dQgGVmtr7zAbwcWgVIsNk6f4R+9nlhPnjacOh X-Received: by 2002:a05:6a00:2442:b0:4fd:8b00:d2f with SMTP id d2-20020a056a00244200b004fd8b000d2fmr13958833pfj.39.1651540258581; Mon, 02 May 2022 18:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540258; cv=none; d=google.com; s=arc-20160816; b=Ic2lynHp5Gu/Hla2A5xMkieine2QXCNIDzhoCsonT2GkV+B5mOz2JzCr2Q/Cf3xgCm Xo8iDXv+dv4FtedRWLNBHqoakj+dvlEsSl3kuPE9BbT+lkVrqMpPlpKMVitPFgfasyO6 AUKzcRTN+Qrn4jLYzBAQJsVtFlYIe6fEbuuYbcmOWUnKRnVrhGBwpDEGEoPjVW1kUgZS G+vKc4stmo+KjApwuu3sIi6oHNDftOOd0C0qiPRf3OgZe5isNn1pnqShmKWRpvdN3xQ5 dxzajKY84g5V4afIXSS/dJDDIbaP4xyRVPhxIJDHtOn4yljylbO0bRRJxlhJM9MTUoaK GO8w== 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=Ip38EKAxUyA5gYgEMU9Rdx1gy6OknORL/P3IAbt17YY=; b=MfjFef7nELHKbxXxuwvre5IVSbMfv+ijeiXeSisfQimibgUriAY5+WSJV2fm8u5WBI 99YGoJEEzKsgUbARyJFk/30ynf50GqUlapNn0SquObkLS4rewXARXvJSRWkVsb9fjGT9 poi1casAKoq4lZkJviblWTy3Awtz0Itkb0esIQ33ESln2Z8tf8aNt5Qsdwky3E91TpRt 77FkcaNjBEVVSXTk0UGil5R3+ch4RYQV1/eVyV6O0HKYz28VJ3jkPWEhdWCT1WftSzve wvP3WDz0OUaoiJth/gMvBEthlJ2xvEtZkul5wY6SwwZMSkGn8baqI0ezpC+qzNRMw0xb 7L/g== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x35-20020a056a0018a300b0050d2671b11esi3241962pfh.203.2022.05.02.18.10.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:10:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C61B5BE61; Mon, 2 May 2022 17:52:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378083AbiD2PBC (ORCPT + 99 others); Fri, 29 Apr 2022 11:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377444AbiD2PBB (ORCPT ); Fri, 29 Apr 2022 11:01:01 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65BFDB647F; Fri, 29 Apr 2022 07:57:43 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id C597E92009C; Fri, 29 Apr 2022 16:57:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id C093192009B; Fri, 29 Apr 2022 15:57:42 +0100 (BST) Date: Fri, 29 Apr 2022 15:57:42 +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 2/2] MIPS: IP30: 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, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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: 7505576d1c1a ("MIPS: add support for SGI Octane (IP30)") Cc: stable@vger.kernel.org # v5.5+ --- arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h | 1 - 1 file changed, 1 deletion(-) linux-mips-ip30-cpu-has-fpu.diff Index: linux-macro/arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h =================================================================== --- linux-macro.orig/arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h +++ linux-macro/arch/mips/include/asm/mach-ip30/cpu-feature-overrides.h @@ -28,7 +28,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