From nobody Mon Feb 14 00:14:59 2022 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 EF9921954AB1; Mon, 14 Feb 2022 00:14:59 +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 4Jxl8z6Qcsz4d1J; Mon, 14 Feb 2022 00:14:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644797699; 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=LczKMx9Nexc8ULgLriTWgKS301l0Y2rZSxQ03/XFf5A=; b=ycbUg4xV5mK1i0TwXX5kzwau/IbU5RlJyOSqPzD2AQFCDId2t8dhkl8S+FPDIWBcVRosQH S102u4FpEUKCoUPLb4Hp/uf9OdFdy9UC5pNGXDhyekKzkM+m2NEVMo6YlQi5/53VN5GTa8 t8Sbq6pR/3YB3WCWTRYIBwjLDGXGTlRH+1MrJzt1Xm2gXIzHOcHgkZvXGf9e6/GcQjwd9n AbupMZArO2qX+5gwORbnTmpL8hbsU/j5+L0EeIUCCVln4nm7q27icfyPO1FrKiJwsCLZ4C ZOPNVsZv+09uOW7RgHdpAV/y61vG/RmEGiGUugR4nI3PY74HRjSk8mf6j+V5+A== 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 BC4E424848; Mon, 14 Feb 2022 00:14:59 +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 21E0ExsI070015; Mon, 14 Feb 2022 00:14:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21E0Exej070014; Mon, 14 Feb 2022 00:14:59 GMT (envelope-from git) Date: Mon, 14 Feb 2022 00:14:59 GMT Message-Id: <202202140014.21E0Exej070014@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: e5b95b220135 - main - LinuxKPI: add sizeof_field() 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e5b95b220135bba90154c9c27803f54bf1a75548 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644797699; 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=LczKMx9Nexc8ULgLriTWgKS301l0Y2rZSxQ03/XFf5A=; b=TN3skjw2vTDsNFrWsSNBD3BI8I9y7IasV1BfRqJ2+De+LBEHgPfgLb6baPjuTxzE429u+f gRVW7PJhz9io0/4bTITY8iycxBf1EIMcCsz2Cdxfq0IotMlq6NKII/kKe4IMLFJHrS7gok eq9+SSodVltwGJHzwuOw9X8Uevfhj6hrGHdki7m85hJiw/4cr+6HwVgVeRNPtC8tclJ5D3 LRKkuMgQUb3e/wm7kY6gg0YW9uKsSkakFVF8/CCrW8+YtnyTOdLmsn3STHM1VAPQ7XLhdZ tY4y4lRZ931FxB4o5ky63LHn6Er1Fq1RXKDMWow0xf3JehRr1cXf8jp1ku5MlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644797699; a=rsa-sha256; cv=none; b=kMwneJFLDkvpWZoMa6hVDaz8d4WoDQMvCdvIx8OiMUi1cYzhg6JrGBnSLiI3MzYW1dp303 tqsmXl21f/bWCfIsV+hK6yQ+ETfw+01vwPFmkO1E91e8z3USebpPYXZG2zH4X7H7M1ZjDA 8XHMU2MTIbDE6sF64oXYSvCQNV8EtmbzBAesyyWljSLrqbeeYU/3l3NnqTJXKxInlHUKZ9 4O8Aehk8tEG/eWIkuAlRVyENsHKOHXtbzcdsgc2Uy1XKA24b6tL+rdpcgY5HxTAHIVsZXq +lgoolqbO8M3T28i9CN92Tc39bnZdDO33iZmZ/O87ZR6l+pALwr2paMcY79yzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e5b95b220135bba90154c9c27803f54bf1a75548 commit e5b95b220135bba90154c9c27803f54bf1a75548 Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 11:46:15 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 00:13:56 +0000 LinuxKPI: add sizeof_field() Add sizeof_field() to linux/compiler.h needed by a driver. MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D34226 --- sys/compat/linuxkpi/common/include/linux/compiler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h index 1f2edecbaee7..87a37228736f 100644 --- a/sys/compat/linuxkpi/common/include/linux/compiler.h +++ b/sys/compat/linuxkpi/common/include/linux/compiler.h @@ -111,4 +111,6 @@ #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) #define __must_be_array(a) __same_type(a, &(a)[0]) +#define sizeof_field(_s, _m) sizeof(((_s *)0)->_m) + #endif /* _LINUXKPI_LINUX_COMPILER_H_ */