From nobody Wed Jan 4 15:43:43 2023 X-Original-To: dev-commits-src-all@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 4NnDR36yb1z2qn0v; Wed, 4 Jan 2023 15:43:43 +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 4NnDR36Ph4z3xlh; Wed, 4 Jan 2023 15:43:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672847023; 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=642QzouP1v/L/2wH59IFr7C6NvsTZtvoBS+l997IWfw=; b=cFNCFHXoSXt+yFbDJ7O3pg0mYm2ZjRvOcx7K7X9TDlBIdITaQ0mGeP/oXg3zGp6aVux3Ck OvyULezaH5yc/UcJgYjCW4r0miVNJM71wNzflY20hsR+XyK7OSjmXUDrJUwXaicuvlIrBV SqKvUPF8lFBLJZXQkRhrbeLCgvrbQMNNvfJczO/ELQZUNT24lTmYTZ9Fj+2FjX1mgWh1iJ Q8OV5tBb8U/edlBNBooaeLC2UyNtrOBlHJ1cMaL/IjGrASMYwHX/vtozrWyiD5Sf65p4Ny urGqDR66YaFxy1IlI5/uLMwZxoTFFpxlX4Ck3/OWbCv1KXytxR54YN6Gft68cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672847023; 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=642QzouP1v/L/2wH59IFr7C6NvsTZtvoBS+l997IWfw=; b=Ekuk9R+lMIfsbp4ZNR/7d8JpB5glOOQ1IZk5Yw1t1B5xg5LUoCFwVpgml9UFWGvG7Isixs eNBM7FWH2ao8Tg6GWs8vcmFA6WqE8ClXHDCZTRcpAqp6Zc0WDIBYulkQOg68FgJKXz07+H dHKEcPJU4NoUIhTOJ9HZxSO9jYq1M7tFijlcNdRgGPdNZZK7nhcyWIMmBq67flDBsFROmG vU6T1u+BDk7ZdnkzAMeFBVP7tGPVpdip9u60SmJcwBnZ1OSJ5E8LLues1gANTsuospSulb tSHtvJMNTy9NGXxG8n3n6iE2+slUbqJrIpFhp0EhwZ9JvYJk/9DGUq1S+DsMAA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672847023; a=rsa-sha256; cv=none; b=a6GSbup5xNmIL6FP1q4tbvO2LCauh1E14oy6u1S0CY+vVIT7857inFtX8O0aMIIzYrCI4b 8gNWRVZjPvzQPpPKtDs7+oR41PEuE2XKsq6/v9+p7Se4t2DVH3+gnozFOtkppYfDcZaHxS 0UXGfzmP5472YH0wu/K2FMJ7uCIOmuMWn2K478cbHdmq1PNjiEBYol9wqo3VG9p6gy4dUl rvmLMbr0LbleuuUsOsUtCp9dyES+8Msh6+tpaSvWZv445uAGpQ3HDIHIS61ItkK/VcVllH pavK72jqveTWQiZWQeE4TWAQuyBtNjR2A4Tcnh33tvnCEI5GPzZj0khfAmwheA== 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 4NnDR35Qk2zGg8; Wed, 4 Jan 2023 15:43:43 +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 304Fhhc9087970; Wed, 4 Jan 2023 15:43:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 304Fhhru087969; Wed, 4 Jan 2023 15:43:43 GMT (envelope-from git) Date: Wed, 4 Jan 2023 15:43:43 GMT Message-Id: <202301041543.304Fhhru087969@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 6ebd8466af2a - main - atomic: Make atomic_san.h self-contained List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6ebd8466af2a33d88f491799287035aa0477a5c8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=6ebd8466af2a33d88f491799287035aa0477a5c8 commit 6ebd8466af2a33d88f491799287035aa0477a5c8 Author: Mark Johnston AuthorDate: 2023-01-04 02:47:52 +0000 Commit: Mark Johnston CommitDate: 2023-01-04 15:43:01 +0000 atomic: Make atomic_san.h self-contained This file assumes that uint*_t and __typeof() are defined, so ensure that consumers don't have to pull in the requisite includes themselves. This is consistent with sys/atomic_common.h. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37939 --- sys/sys/atomic_san.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/sys/atomic_san.h b/sys/sys/atomic_san.h index 1f7d615ebd11..9ceea2988db2 100644 --- a/sys/sys/atomic_san.h +++ b/sys/sys/atomic_san.h @@ -43,6 +43,9 @@ #error do not include this header, use machine/atomic.h #endif +#include +#include + #define ATOMIC_SAN_FUNC_1(sp, op, name, type) \ void sp##_atomic_##op##_##name(volatile type *, type); \ void sp##_atomic_##op##_acq_##name(volatile type *, type); \