Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp939912pxb; Fri, 22 Jan 2021 03:12:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXLi0N5nEYmzjDl79wjEy1M1Dnt0laksF6CkUVkm0zo7FQ3pskygT1dRRrEqxgrlhs40ga X-Received: by 2002:a05:6402:c92:: with SMTP id cm18mr2891453edb.367.1611313927826; Fri, 22 Jan 2021 03:12:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611313927; cv=none; d=google.com; s=arc-20160816; b=OHnCT+1w8AXUFJnbAA2hU8vL1gd+S4aOVQN0np0dIr99GSZDxCS31AoEJanaPDugct GMtGHfs7lXEJ294ov33NRWH8NRm8F0k2lv8JNaSe5I1qrkAVvJfA27lma3nEPVAMk92G SlFe2vdYzPqmQkJsDuRa60I5cxRJZzguXbOIQMF6y/YoyS0n/voTXPAjsPyxEMRSzXR9 EqOQsVtcraT6lTlT14Fsp134p4eUdrfpqysHN0z9nMe+RHZ7crZHy28wFJN/Ujchkv+q q7ooARbrjXJjYb2rAYBDU62G9ad6pNcP7ecCh7WdsFQMK/YEBDVCI5Je6Z/Fa266ZDB4 fNqA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=C5447rCQ58ODQMYl8CYfI0FLeID1Nnx8Ubc8xwg6zuQ=; b=jaowesrMFJVQ+fSmSFW4e+Htg/PRz3tI91jPsFj03KoDZt2I/jHbE3cXBnjOLMAYnc 91/zx/qZqsgpjgOAnNFCqVPkFCBbFVFDmjLyMFw18hJqYj5jrEdDPDaQKsgUYDCyawLg ETFsqHOgTQXC5TVHdMOjTDwD8TJpTNK3P7lVqeE6+WcAvOQIjV01AOmVYcXRwmzY63Qf 44YmrUUMoxBRDpjxCCvoIg5fqdk3PQnJYQc6P++Q191Agtgu4LMEdQWR+Nf5n0FF947F 4juUVRXDuhvF+O78yefSRVsyEibtFbXP5oHT1pamVHx/B2o3zNEkEUMFmsXg4JLrRkLi k+ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n8toSNaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si2656743ejj.426.2021.01.22.03.11.44; Fri, 22 Jan 2021 03:12:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n8toSNaA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728220AbhAVLJS (ORCPT + 99 others); Fri, 22 Jan 2021 06:09:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:54526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727460AbhAVLEH (ORCPT ); Fri, 22 Jan 2021 06:04:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0BE40239EE; Fri, 22 Jan 2021 11:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611313403; bh=H3dvS7z1dpIycPUnlikAwY9JX62iMQkndlpCnas/7tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n8toSNaA1wuY9Fde0EW/luaN3+HBy+B33bzDxTlV7FsfWbR4jLf+z5quCEINTy8uR 7n2k8wiFltsOsS9pFHu+SSz+cIGDIjhZILV9tHtY2cXfsSPOsDLKh6Sp3t+j7Ah29G EdcaQxy8PhvVdxpeuuJKLf1J9c0WxSJ+z5do0/bKJRqlUH/wOWyYauFiVvlmEXPPre hzeu999c9ruFUFz3OXnOlPzmsfvTuV5RADx3slSvcfF/vv6OY70xx1pIkVKLwmLuZv eG2j5thvZ2VapxYhX/r5dineDMXe0iZuf4ktu3gsUl86Gt6T8WE3gxxP30nXXn9o8R BrJayyxMpXW9Q== From: Arnd Bergmann To: Thomas Bogendoerfer Cc: Arnd Bergmann , kernel test robot , Jiaxun Yang , Paul Cercueil , Paul Burton , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] MIPS: make kgdb depend on FPU support Date: Fri, 22 Jan 2021 12:02:51 +0100 Message-Id: <20210122110307.934543-2-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210122110307.934543-1-arnd@kernel.org> References: <20210122110307.934543-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann kgdb fails to build when the FPU support is disabled: arch/mips/kernel/kgdb.c: In function 'dbg_set_reg': arch/mips/kernel/kgdb.c:147:35: error: 'struct thread_struct' has no member named 'fpu' 147 | memcpy((void *)¤t->thread.fpu.fcr31, mem, | ^ arch/mips/kernel/kgdb.c:155:34: error: 'struct thread_struct' has no member named 'fpu' 155 | memcpy((void *)¤t->thread.fpu.fpr[fp_reg], mem, This is only relevant for CONFIG_EXPERT=y, so disallowing it in Kconfig is an easier workaround than fixing it properly. Reported-by: kernel test robot Signed-off-by: Arnd Bergmann --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index e6bd1eee70f2..7fea149f63cf 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -41,7 +41,7 @@ config MIPS select HANDLE_DOMAIN_IRQ select HAVE_ARCH_COMPILER_H select HAVE_ARCH_JUMP_LABEL - select HAVE_ARCH_KGDB + select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT select HAVE_ARCH_MMAP_RND_BITS if MMU select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT select HAVE_ARCH_SECCOMP_FILTER -- 2.29.2