From nobody Thu Nov 10 11:51:54 2022 X-Original-To: dev-commits-src-main@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 4N7Kty5M4Xz4d9N4; Thu, 10 Nov 2022 11:51:54 +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 4N7Kty4xqsz3wFd; Thu, 10 Nov 2022 11:51:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668081114; 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=KIVWdBhObZTzkJfrQs6RTkKBR7euvwxDEOZW0jYKIug=; b=T7gxiLecY2L36aT9HHQ9Bs02AbuO1lWFxObuvL5wjbsUG2AR7yLXKEvKfBeKegjsHZOxQL B1NrVj9eek73AbiYn64eAL4r40JFlzbZeYaInBKdogb0W3UguB6oVJtp6QE6pj0RwgtZBD 2fbtUFGgzoC8fta/6vPcqYdk5rLyGn1gPx0UJ2EsxbDK1dDBZvLHwUhlyl3rjNoUkamS2z n289o52SlY+JbJdCu/eZ5yBSM+2+a0iFyKpYDQfFXEPiocddfNNagEkO73iIGaonD0ymB7 QoSftqF/auPYV8/+n/dUdUqUSN/gvCWiN/FKV+d0vEKFH5vUlBMtXx8IlFCesw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668081114; 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=KIVWdBhObZTzkJfrQs6RTkKBR7euvwxDEOZW0jYKIug=; b=mpSVlWtnj0o03W77Omf30ujeaRUpKbSrr/hi/KEXtA1JswxZ7cWxvvglxvycrmyRhxA+0Y 74WAOPIhfzeZmkqSAvVX79dro3S6el99MM/FZ7JlNvzXApZLP+qipSh/kCsd1rmIQJD0QC jpiL4XVIJvSqBlJzO2Hv0WcKclKpjH7R+PjVjI72S0yfu2wSOn/bIl1WdaPIjPMXRJTbpj 8xND1UskwqNvVElgDXHJ1ly3bFVLcs49068JcWUfe6GNuNFEc45Yura9AephC9Bp11jAqf KSQMZTe3N812F68TBcbOs2zXBQDlS1hiCWeSMXP0NnfWvpfdMywE3gCBwQnoWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668081114; a=rsa-sha256; cv=none; b=htTiSWoo9L2M6X7KK8zO6AS7JUa0HvsI4GIdgUXWI4t0gYlf/YPAG2iikUObiqdaywm/ZZ eK3QRxsrGOe8BSRpdjAfX9JiPK9dbPLzONmjVtcC9408mGvSDtzOseeiGoTi/+P1L3OacV esX4BZnqAIo2k4X8fscPelUqvY5Agt3hY3JBdTnp/pYyORx7ZqB8PBraoWQXW1vQ/MGw9+ vfCNGbc2icu99hRrbzAuRXV6hGbw9qy9TegTAvUhoOSC9cZo6Dhd3bm0EgOZF9bQ3VOQTI /P5IdpOPdFFdY24oBWHwvsN+s5LXGbxDCJPrDKG8XeXS4Aq7shSrQvqmfIFu5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4N7Kty414vz10sn; Thu, 10 Nov 2022 11:51:54 +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 2AABpsvY073128; Thu, 10 Nov 2022 11:51:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AABpsiO073127; Thu, 10 Nov 2022 11:51:54 GMT (envelope-from git) Date: Thu, 10 Nov 2022 11:51:54 GMT Message-Id: <202211101151.2AABpsiO073127@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: ee247fc1e93e - main - linuxkpi: Move cpu_relax out of ifdef for x86 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee247fc1e93e6d37cf509a640a7d273616056f5d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=ee247fc1e93e6d37cf509a640a7d273616056f5d commit ee247fc1e93e6d37cf509a640a7d273616056f5d Author: Emmanuel Vadot AuthorDate: 2022-11-10 11:50:51 +0000 Commit: Emmanuel Vadot CommitDate: 2022-11-10 11:50:51 +0000 linuxkpi: Move cpu_relax out of ifdef for x86 It's needed by drm-kmod and this allow building on arm64 and powerpc. Reported by: jhibbits Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/compat/linuxkpi/common/include/asm/processor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/asm/processor.h b/sys/compat/linuxkpi/common/include/asm/processor.h index 450192750612..0b34031392ac 100644 --- a/sys/compat/linuxkpi/common/include/asm/processor.h +++ b/sys/compat/linuxkpi/common/include/asm/processor.h @@ -38,9 +38,9 @@ struct cpuinfo_x86 { uint16_t x86_clflush_size; }; -#define cpu_relax() cpu_spinwait() - extern struct cpuinfo_x86 boot_cpu_data; #endif +#define cpu_relax() cpu_spinwait() + #endif /* _LINUXKPI_ASM_PROCESSOR_H_ */