Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2550979pxb; Sun, 24 Jan 2021 11:04:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxre60/yG2dsr0NEWlkBHYZ4yC9h4V5NPjBa8nHThS3ri5A9KScUh8YzwGQoge/6x/5xQ+e X-Received: by 2002:aa7:d94b:: with SMTP id l11mr1192539eds.1.1611515096869; Sun, 24 Jan 2021 11:04:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611515096; cv=none; d=google.com; s=arc-20160816; b=bJfXRnSxy+OGGyCpZZR3zNTDXxzuw9/fv0nj3jScngXpimG/+E/hrPuGlJugJgNaYv rJ7KMkxl3XNlmlln/l2qSZ0Z26d5L9zflU4dHY+M/rVjzwpX5tTKIjFhpwPFX2cfFbPB QtdO+KDZ+8qdvW3wOJLa/8CPBQpmvXX1uxyc2vn6AYfjxVFpvvNoaL3RQmjuZsm2AZrr f4D5k2xSIpZt9SyYjGE0R3WJWwgPtDA4p0oHeQojMCbGV2np/37htGJuQW+z/IHFpnrC PCSEtnwK9Cr8aSMQxdFfGA+bszDZXpSaV5sL7cD+02EOC6DawYnzRdBEkvkx/I0aDsaS 4EbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=T8Xox0mVKij7hfTwftiETyirl/IMDsZ/+hqCr9UPd4M=; b=ouik08Mq1Ma0vZI8G2lBHSWaq6mkbwonlTGZZ6/GyIefCt8AVpXHCOYp8jR+yG5PfJ XW0LURmFyhGniHFTAtDmO2XdTcnfziE2+pYI08NmxPk20d5yfp1BK8hfcgAmvhfp+5k0 +3b68vi5B4+gOip+kxV6bLH7GYoYQRZ2kYW0GfXluqQE0my5DctkgpG/SD4LzNgC6V8/ Iv/fXW9ntXGSQjqG0ufGOXB6fiwekH7XZ4gM8V3jbJIg4Ga/GC2FqwRP5EIRYCP5WtTW v5R2XckIpfYAXDArM8cE/Kp68Dd56jhs3r5RL8a/pEwxoBN4y13dVsKLO6K7Xg7dl3ka qjOw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce15si5282384ejb.507.2021.01.24.11.04.33; Sun, 24 Jan 2021 11:04:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726628AbhAXTCl (ORCPT + 99 others); Sun, 24 Jan 2021 14:02:41 -0500 Received: from elvis.franken.de ([193.175.24.41]:36786 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726540AbhAXTCf (ORCPT ); Sun, 24 Jan 2021 14:02:35 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1l3kdz-0001qW-01; Sun, 24 Jan 2021 20:01:51 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 3180FC0C0E; Fri, 22 Jan 2021 14:06:09 +0100 (CET) Date: Fri, 22 Jan 2021 14:06:09 +0100 From: Thomas Bogendoerfer To: Arnd Bergmann Cc: Arnd Bergmann , kernel test robot , Jiaxun Yang , Paul Cercueil , Paul Burton , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] MIPS: make kgdb depend on FPU support Message-ID: <20210122130608.GB10580@alpha.franken.de> References: <20210122110307.934543-1-arnd@kernel.org> <20210122110307.934543-2-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210122110307.934543-2-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 12:02:51PM +0100, Arnd Bergmann wrote: > 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(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]