Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp228472iob; Mon, 2 May 2022 17:51:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRLUzX0/pio2zlHAAsIAJ2TkUpJcxVg5FgfjEQzCGD22cBRgomi+eaau0jhA1nA0YQPaAx X-Received: by 2002:a17:90b:3e82:b0:1c7:2920:7c54 with SMTP id rj2-20020a17090b3e8200b001c729207c54mr2045443pjb.2.1651539101237; Mon, 02 May 2022 17:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539101; cv=none; d=google.com; s=arc-20160816; b=Y1F2vMfsZIugWCjtESLkSLKLACBCVd7lu6pk74cpYsQa4xHrKiRXPaQRaA50LJy/+L wHB2UiBxpzvwj4HedZ5idocYSKRayMjijvzifNH2nM7yhUAKqJjbaFfpYpKTY5z2y/Eu Rn6f0/EPfroGmILli1kees6D3Lu8Ej14OxCVp4vIKatjTrwep7xQ0509VJfe6u8wALyO PJr94Qi24uwGuMpiqviauFt5gtc62okk9cRco6JJIosjD5EYFPYFqTu09hwrWJ8yjf7h JVk3RjAhx0BGCxJW4TFhO8MZZgUPV0hw8Zr6RBoR6xp99SoM5Y7pu7D1doX7lt32iq1m 1WYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=Oo28RM2KAsrJYbN3BsrxV7tbKWtWzc3IrsLkmr1MtUU=; b=VUHJt5u8LXo+rqKG1NakfR1GshQZc2P7gyZ05TeLrwUC53s75RelO9ce3JbLVPX3mY mk6wveXfwzKAtuc/pekzW++CmGofb/IJTYYR2Ju5GCt/AZEo+clabfrrzoY45LCknYFp F3gjOyaEz3cOck1hvx2GWvwvdqCvJF4q5GXZ7ixNycRBOFr/bg/++tUecfqrc3EuIP+k gnzQQrPBThtlI1m2FW79g0rIjS+b3a1TpiBxF9+O+E1lZwULlob384mslwBSDsSrR+Yd FAKw24GWTcOGv57v8fgKXMU+CZj4oSH6Vu3cyJQF5XYWdCfO+AhYYpaPa4qAlk5ZYU7p eJ5A== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e18-20020a170902ef5200b00153b2d1649asi13702104plx.162.2022.05.02.17.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:51:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 26DC04FC77; Mon, 2 May 2022 17:39:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376474AbiD3PMs (ORCPT + 99 others); Sat, 30 Apr 2022 11:12:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242596AbiD3PMq (ORCPT ); Sat, 30 Apr 2022 11:12:46 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [78.133.224.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E44EB49CB0; Sat, 30 Apr 2022 08:09:24 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id 2EDE592009C; Sat, 30 Apr 2022 17:09:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 2799B92009B; Sat, 30 Apr 2022 16:09:24 +0100 (BST) Date: Sat, 30 Apr 2022 16:09:24 +0100 (BST) From: "Maciej W. Rozycki" To: Stephen Zhang cc: Thomas Bogendoerfer , Joshua Kinard , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [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=UTF-8 Content-Transfer-Encoding: 8BIT 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 On Sat, 30 Apr 2022, Stephen Zhang wrote: > > 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. > > > > Sorry, but I have a question. From the code in > arch/mips/kernel/genex.S:567, 'handle_fpe’‘s > definition is controlled by CONFIG_MIPS_FP_SUPPORT. Then how can it > still report such > error when the CONFIG_MIPS_FP_SUPPORT configuration option has been chosen. Good catch, thanks! For some reason I inverted the condition in my mind as I wrote the change description. I have now posted v2 with the mistake corrected. Maciej