From nobody Wed Jun 14 16:55:41 2023 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QhBPp1pnLz4dJSW; Wed, 14 Jun 2023 16:55:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QhBPp1LWVz3FMN; Wed, 14 Jun 2023 16:55:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686761742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sH8iin7wP8XX8OTqRwBrW0tNACkpCedh2KHIP8Aq8rk=; b=JthnsF/82LA4gXcYrfwH4l53+rIOc4CcIkn6wdafmVBCkRGLNqqL00F7lrY/iQLA2TVUQe tUlVEqxF5+txNhseykVtyq7B8Gro4eyxGlbreI0K+l2qjR0hQLrtdIMl6acuzQjY4Z1rVh EHFQEtWQVcD9JUMKX4FRBDp/OID4wEBNQxitfFFgqxKpLA6G0Tzi9vQCxxdGB9T2/TK9xj k55nH91c94mnGf3ShBoqp2xUtEZhp1zSX7ci8FJvvpTiVzoQD/gBjCuORXFAxnSTHp4rPs wtbsyfwrbXZupfusWokfrQSDe9ykKIfYQbRqaj1yMMypR438UlhDTINGYslTEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686761742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sH8iin7wP8XX8OTqRwBrW0tNACkpCedh2KHIP8Aq8rk=; b=nrteUC1d/Mdq0EnreWlCW55zE9uPKwzrUmv60MPsylxVsBD9y4uuUCtdF3UxVT4Xv66CiT d3Gz4pDFD6hH7m77o2f4jEEIFsaiQIzlqIWaaR1zuRGfN4hacA09ttkR7JvFwt+17AR6EI 5sPnN5vnAv4XdrO+mnVr7BqlzZcQgRLqIFTGLUkXTkWzwKBuwAlptcRmaUE4b83KXumivu 0U6/jc0KFAPR2DhvhxR3S0iDLgOQzNj0m2SmC9b46uE09ziGaae+p8el1SbR1IC+uJ3CL9 WDurlHWQ3IjBnqGovhYbkb23m2q4zQUEdcXAz5G4bXLZwcp86BfE3bB+P7b1Gw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686761742; a=rsa-sha256; cv=none; b=Nyo5ed48q6PV5PCg12xF5NikUWRH4c7pI96aBmOmIYhOnA+tJQvucjtiaZ9Bl/lZ6GsCHn 3G7MtTtjBNQMpPqYuJr9inE9nySiYnzN1yKSD5vYNfhH7NsKzvVADQ0Q3ieF+W2DUEapug re4yxImkUrVOKNuQe8EsS6vphHkENrAn98kZqTZjs6+Mm8w004aVbHHOKIJG0FRshg98VM GtUjjJWgcJxm0S6nW5hoPPGcel+E8dc5TRPrbYml8bRcLhd/RY6Yk7tZxpSOsu1DIGQxAL STPaS6rHwO1WbEQo5sjtyX15Id1hWbLLw4oiRhMa4Jus1WqcznC2+nzj4XGRsA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QhBPp0PzBz19xD; Wed, 14 Jun 2023 16:55:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35EGtfS6044644; Wed, 14 Jun 2023 16:55:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35EGtf2F044643; Wed, 14 Jun 2023 16:55:41 GMT (envelope-from git) Date: Wed, 14 Jun 2023 16:55:41 GMT Message-Id: <202306141655.35EGtf2F044643@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 894492f5bf4e - stable/13 - linuxkpi: #ifdef guard fpu_kern(9) usage List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 894492f5bf4e74f49a927f4c584779aeed983cc7 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=894492f5bf4e74f49a927f4c584779aeed983cc7 commit 894492f5bf4e74f49a927f4c584779aeed983cc7 Author: Mitchell Horne AuthorDate: 2023-06-12 13:51:16 +0000 Commit: Mitchell Horne CommitDate: 2023-06-14 16:54:52 +0000 linuxkpi: #ifdef guard fpu_kern(9) usage The recent revert of 8ca78eb03fd4 removed the guards around these calls. As a result, LINT builds for architectures which do not implement this API on the branch are failing -- armv7, powerpc, powerpc64, riscv. This is a direct commit to stable/13. Fixes: fa6603d4a725 (Revert "LinuxKPI: Make FPU sections thread-safe...") Differential Revision: https://reviews.freebsd.org/D40497 --- sys/compat/linuxkpi/common/src/linux_fpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_fpu.c b/sys/compat/linuxkpi/common/src/linux_fpu.c index 976e55e68ca1..2f05ef94d5ac 100644 --- a/sys/compat/linuxkpi/common/src/linux_fpu.c +++ b/sys/compat/linuxkpi/common/src/linux_fpu.c @@ -30,6 +30,7 @@ #include #include +#if defined(__aarch64__) || defined(__amd64__) || defined(__i386__) #include struct fpu_kern_ctx *__lkpi_fpu_ctx; @@ -48,3 +49,4 @@ linux_fpu_uninit(void *arg __unused) fpu_kern_free_ctx(__lkpi_fpu_ctx); } SYSUNINIT(linux_fpu, SI_SUB_EVENTHANDLER, SI_ORDER_SECOND, linux_fpu_uninit, NULL); +#endif