Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1544211pxm; Thu, 3 Mar 2022 21:24:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJx8JBxharBt/rGMYnIOzYx7YKLZu2tniy4jGIrIQZKaifaqhnRLvY+sm9q6tJLyf49wJasb X-Received: by 2002:a17:907:948b:b0:6d8:27f8:ab4a with SMTP id dm11-20020a170907948b00b006d827f8ab4amr10158461ejc.39.1646371443600; Thu, 03 Mar 2022 21:24:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646371443; cv=none; d=google.com; s=arc-20160816; b=RM0kgpB+3gxmadv7AyGTgZtFKvNkzW8u00T85CpK9TvnmfdtYPXccfU3hsax7O5GnO mM6jKH16LsFIew8NtI6RmRsv4jISMkouRbtSPcrz2ruONlLJsP/qn9UN/S1/9o/TFdX1 E1w5c9aSzUsH3ZEnkcBZyLsa+Dcczsjrgj597j0gW5DXGuUyd/TvLQpydo5Ji+lzm2KO i90RgDQ3T85SzH9tASqgz69ZZXfpZ5acPt6+3+gfnpcRSoG6zYyr32FYwHsxi4zgc3lQ YiTgSnk0VY5Pr5wFxKQrWAFFsq06Asxoi8qMmO01AsjNtokuS6SVRy9Fhi/wA9STZYbZ UE1w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=YP/xPHEToJlBuN8DCPqXaoW92yPiieu61YrqcXy3zcY=; b=LYQ2tvaKnI0VNms7k92Sh6FDXf96cJuEPuqZ0SZsY/awAeRV6LL0lsD6eyyrbsKnO0 M8hcCqfC5Ly15LvRlTQXIfMSdPsQUlxZNUhxJ8stZ973QzMIyU3fKKp6sw+D1xNSCA5v vpDAJDQ6o2vhXAPNGjaujD9ujJ1j7Mh0zkqEYXV3QZB0UasZm9ivm68vJ+ReiQLJK673 JN2A0Nm6wtUC/gdRz4HPZBmGbqlcf53Hn1VGxyh26yys4XB2qpT+l7CCJ4nfz4NW+Gas ubHPt6UT0x3y3KWQio5WUUoR8lXpKTFXqMMJ4Iatl71fnnAzC0xcFeIhRmoVA+OR46O5 pfew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=G8Nwr9R4; 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 bi19-20020a05640221d300b00403a4e3bd5esi2930367edb.313.2022.03.03.21.23.41; Thu, 03 Mar 2022 21:24:03 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=G8Nwr9R4; 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 S236314AbiCDBOU (ORCPT + 99 others); Thu, 3 Mar 2022 20:14:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231573AbiCDBOT (ORCPT ); Thu, 3 Mar 2022 20:14:19 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1402990FF5; Thu, 3 Mar 2022 17:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=YP/xPHEToJlBuN8DCPqXaoW92yPiieu61YrqcXy3zcY=; b=G8Nwr9R47ujV1G8aAl6Pv5g91x SibuUE/P+DNqz6CqPwJWnXtwUQBBdPP1Hj+NCZAjVy8Gv5Jm8Ee0Kec83IdY+lTiSvWVbM5RdjF6G JG6tpMekhLPjFctVHoNl4h42K/tZtaGvkbiQbdVs3PSfrqmBZh5d5gSg+5vpIhognJejdExqWOXV/ X92kUfOnrQF9WibzNGdfv9952u002NOn9e3TmpDR1pCpg7/sbnh3xv5p0qYnJ4/zj4m8rm+WTBjQV zhWsnmZP60mEWKpZ5wn5E6tpytH0Rf3kT5729EYmD3WEVcH+cxFZfsQ30IKxUQZbvKRBdyBY3RTRB nO6fOvTg==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPwVd-008Dgj-P7; Fri, 04 Mar 2022 01:13:29 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: patches@lists.linux.dev, Randy Dunlap , kernel test robot , Paul Burton , Thomas Bogendoerfer , "Maciej W. Rozycki" , linux-mips@vger.kernel.org Subject: [PATCH] mips: DEC: honor CONFIG_MIPS_FP_SUPPORT=n Date: Thu, 3 Mar 2022 17:13:28 -0800 Message-Id: <20220304011328.27459-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Include the DECstation interrupt handler in opting out of FPU support. Fixes a linker error: mips-linux-ld: arch/mips/dec/int-handler.o: in function `fpu': (.text+0x148): undefined reference to `handle_fpe_int' Fixes: 183b40f992c8 ("MIPS: Allow FP support to be disabled") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Paul Burton Cc: Thomas Bogendoerfer Cc: "Maciej W. Rozycki" Cc: linux-mips@vger.kernel.org --- This builds OK. Is it enough for runtime interrupt handling? arch/mips/dec/int-handler.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- mmotm-2022-0302-1653.orig/arch/mips/dec/int-handler.S +++ mmotm-2022-0302-1653/arch/mips/dec/int-handler.S @@ -139,7 +139,7 @@ beqz t0,spurious -#ifdef CONFIG_32BIT +#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) and t2,t0 bnez t2,fpu # handle FPU immediately #endif @@ -280,7 +280,7 @@ handle_it: j dec_irq_dispatch nop -#ifdef CONFIG_32BIT +#if defined(CONFIG_32BIT) && defined(CONFIG_MIPS_FP_SUPPORT) fpu: lw t0,fpu_kstat_irq nop