From nobody Mon Jun 26 12:09:00 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 4QqRTS6kf8z4k70K; Mon, 26 Jun 2023 12:09:00 +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 4QqRTS3mSbz3jyT; Mon, 26 Jun 2023 12:09:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781340; 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=DV+UwG+fpXW64dfnT9B4C8Ygtyu65p/Dsk9T5C2+mBg=; b=nQ1VAR+09RlyV9tD27ztaj2SZGsAE9IwgHj24OzuuJOCnGwXhxZ3gQgr8DrEVaDyk+Kjhu MzScKDymhZeo0DHvZEMjc4VLi3/8dzIFfLaEj7V/f4si0Q7/g5eZ2QpCp6fMHKKH2cOYdy Nu1+EZBBE9I4G1gV5tpGZ5jwX+YLoNkvIl1RW+vWDMY3Zasg+JP7Vz8vOy3rSFSaWopO/t AegqakOewcfFH+9uxqlNrHj6RV7yq46ccy80pz5fZ60nMAifzTvmzbkXh16+nl2zwUbnNR j+tqSFMJgF8yrJQewntuYa9Q9f8H/OpURZO0Ny0rsLjdyEd5SFlGvKh4Eza1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781340; 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=DV+UwG+fpXW64dfnT9B4C8Ygtyu65p/Dsk9T5C2+mBg=; b=BpkBDXKPINmYOMjpFjOwskhCZXN249DBWq1uuBg9RBXWAVcb+51TofoLAhzyIWa7Xw+8rL ZVHa0r2seWBp+yW5oduAyGAeyc11oz4YDqKLOAgAPZTZdowCs7LE1crzLghzrHtIULeLYc Oo9ipRy06aqm1vO3t6jYti2nyY7XcU1YeXyShefIrHm4kvhMeT0/0dXtsMo5ULUxgNJmSG 0sfZQDZG95REb5ACbdbY2TB63CR2e295WkNTURAVBPCwhUcZCeW+P+A0NcG/K/grvUw/c0 wsCefhKoBenNrmwDa2k0HG4PDxF9OQwe67DaXiF4gloqJJieauQi1jwiD5AQ0Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687781340; a=rsa-sha256; cv=none; b=nKRTzzNz0ollyOd1GYX3ueUBaBRYYOc5ysoWkz+GN0dSVK2Zn34/BSCurwxDwEh0g820cq 1GFFPn4YWDwSPfSG7gzxaI7YNW1TfNOtB/UiB71rjo0UhcdzZItQ9a3Z2O8k2mRXdQA9wE QbKKPsAkEN5l2BAFq/iKtFwD4nQUg68FZlzwHej5cU89sbrD5p3Kd5ABJRFm8sHjb42hfv Ji/K21mTClFaUKNuO5Oy1vlNql0tv9Dhy9v0a8cN1wQM97j8Ius671QkH4c7zJoWgVNv3z Zd8VU7O0khKPiMZCjcgBDXo4yN5IzzFPmcuO9xkiZkTIcAWkU0qFfLK5l2xIhw== 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 4QqRTS2szLz17df; Mon, 26 Jun 2023 12:09:00 +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 35QC90br083543; Mon, 26 Jun 2023 12:09:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35QC90tT083542; Mon, 26 Jun 2023 12:09:00 GMT (envelope-from git) Date: Mon, 26 Jun 2023 12:09:00 GMT Message-Id: <202306261209.35QC90tT083542@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 28dc06cfb4d9 - stable/13 - LinuxKPI: Add linux/stddef.h and add struct_group(...) 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 28dc06cfb4d9249bdf6fe7ace75284309e56d6f1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=28dc06cfb4d9249bdf6fe7ace75284309e56d6f1 commit 28dc06cfb4d9249bdf6fe7ace75284309e56d6f1 Author: Bjoern A. Zeeb AuthorDate: 2023-05-17 22:22:13 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-26 09:22:30 +0000 LinuxKPI: Add linux/stddef.h and add struct_group(...) Merge the original addition of stddef.h. (cherry picked from commit 7c7419f60cafa4f666f5a22b5e5f090081516cd2) Add a struct_group() macro needed by a wireless driver. Sponsored by: The FreeBSD Foundation Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D40138 (cherry picked from commit 7c0c69d1a0f3735e315a48436bffbd482f956270) --- sys/compat/linuxkpi/common/include/linux/stddef.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/stddef.h b/sys/compat/linuxkpi/common/include/linux/stddef.h new file mode 100644 index 000000000000..a3bc6b13765e --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/stddef.h @@ -0,0 +1,15 @@ +/* Public domain */ + +#ifndef _LINUXKPI_LINUX_STDDEF_H_ +#define _LINUXKPI_LINUX_STDDEF_H_ + +#include + +#define struct_group(NAME, ...) \ + union { \ + struct { __VA_ARGS__ }; \ + struct { __VA_ARGS__ } NAME; \ + } + +#endif /* _LINUXKPI_LINUX_STDDEF_H_ */ +