From patchwork Fri Mar 4 01:13:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12768380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A85C6C433F5 for ; Fri, 4 Mar 2022 01:13:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232594AbiCDBOT (ORCPT ); Thu, 3 Mar 2022 20:14:19 -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 Precedence: bulk List-ID: X-Mailing-List: linux-mips@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