From nobody Mon Feb 13 21:09:50 2023 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 4PFxmt5wR6z3q5QG; Mon, 13 Feb 2023 21:09:50 +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 4PFxmt516Nz4S5h; Mon, 13 Feb 2023 21:09:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676322590; 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=48B6aaTTUob2cE8D4TFnDBwZnvy3PlPiJ6eO8wvATyI=; b=okcT2lojVt8IxbSj/PSEPuENeErxir0vvL9DNdFNH5bw0KZL2/InCQZ4xQxYgsGm50dMbl c60GnI19aBdYYQC5KX6xop9xY4ZyhuIfDnsBFdbbgcxiuM43FpnNrazDtCecvyVS9SRXLP aVJzyfVZR75TavcYvyiJOjbSmqEJmodCeJWPbqZhBhzh7e8btJBFhUJEbVJFw0H1STxwm/ Xv5grmlY6MtjbYG2sIKsMWQOU0jk1m5fMc/SKTG3IiXuckzRS+3//KlVEP7R5eaQQAo0v2 +B59/XvAqjRbglu/cvZ1rZkol7Zi5wkjyrEusmNRFHzBRmpzKDMh2Fz22WYxDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676322590; 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=48B6aaTTUob2cE8D4TFnDBwZnvy3PlPiJ6eO8wvATyI=; b=YDMXVS4q07DKFuIVgwib0Jo1B1eWFXHKXT7MuJVBuujpkA5ddxaZxeDwqa8YMZn9u/4LzI KN1DoOow8d2enJD3+KQIXv3E/yvudGVX45VljrWnAyExTsDxY+be6k1z96PbhPEDmH7gPC y0W6rNXunTeQ6LH7UwubGEIne8riT9vFOgCOv8ZvujyhCsXDrxdH48v+88cRyH3vL2BJeP iq6qQJCCUxsZl7snWbMkD7jgzRha11sE+naVxNje4Ac8zsNEbgp+JlZBoWrJ0Q0LRPRlwK i//qjRnUZjbq155flr+Jx4Mj+tiee6MACeZ8UFM5smxfPHuoJT0S7KSXwPcy/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676322590; a=rsa-sha256; cv=none; b=Skn7RF8pDHl+rO3lCsW2U5nj/Jfy1KOZPZhqRklR8RVTE0CZw5WHk6RNpY2LyES6achxv+ 3cHtLWtH42CN1i7hXKFXNt5vyxQGrXGYg8vsU/2cplMGG6n2P06u62n2NUbNcf+1zF0juC wuXen031fw/W2yC7U+auK5BhmZYsAfHxmDjm2BiG0dUaWO8IPuWaNvyMb23yaVWAOTOGxQ PnVI7OHtuA8F9tCmDqhwXRnj6MDf8L39jYVWvQOwEY+yELWuNnYe62Y6yTlEX8UvTEV1GQ JCOKvUGLRSpg7Z7RZz1SR00BuY+BWK45xtAN9wP4w6y0eSXqwn1SJCnYX5fxXg== 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 4PFxmt45hFzXbh; Mon, 13 Feb 2023 21:09:50 +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 31DL9o1R056446; Mon, 13 Feb 2023 21:09:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31DL9oPs056445; Mon, 13 Feb 2023 21:09:50 GMT (envelope-from git) Date: Mon, 13 Feb 2023 21:09:50 GMT Message-Id: <202302132109.31DL9oPs056445@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: 54606590dffc - main - linuxkpi: Move definition of `struct list_head` to 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 54606590dffcd23136af1c26da38206f4d3a6269 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=54606590dffcd23136af1c26da38206f4d3a6269 commit 54606590dffcd23136af1c26da38206f4d3a6269 Author: Jean-Sébastien Pédron AuthorDate: 2023-02-09 12:11:34 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-13 21:09:31 +0000 linuxkpi: Move definition of `struct list_head` to This is the case on Linux. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38537 --- sys/compat/linuxkpi/common/include/linux/list.h | 8 -------- sys/compat/linuxkpi/common/include/linux/types.h | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h index 6ec715291807..46da7cc7bc8e 100644 --- a/sys/compat/linuxkpi/common/include/linux/list.h +++ b/sys/compat/linuxkpi/common/include/linux/list.h @@ -86,14 +86,6 @@ #define LINUX_LIST_HEAD(name) \ struct list_head name = LINUX_LIST_HEAD_INIT(name) -#ifndef LIST_HEAD_DEF -#define LIST_HEAD_DEF -struct list_head { - struct list_head *next; - struct list_head *prev; -}; -#endif - static inline void INIT_LIST_HEAD(struct list_head *list) { diff --git a/sys/compat/linuxkpi/common/include/linux/types.h b/sys/compat/linuxkpi/common/include/linux/types.h index dab5e6ddce42..aa19163ddd26 100644 --- a/sys/compat/linuxkpi/common/include/linux/types.h +++ b/sys/compat/linuxkpi/common/include/linux/types.h @@ -79,6 +79,14 @@ typedef unsigned long kernel_ulong_t; typedef unsigned long irq_hw_number_t; +#ifndef LIST_HEAD_DEF +#define LIST_HEAD_DEF +struct list_head { + struct list_head *next; + struct list_head *prev; +}; +#endif + struct rcu_head { void *raw[2]; } __aligned(sizeof(void *));