From nobody Thu Feb 16 11:56:27 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 4PHYM03Zlxz3q5jg; Thu, 16 Feb 2023 11:56:28 +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 4PHYM025dSz49r6; Thu, 16 Feb 2023 11:56:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548588; 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=ic6jj4R4KzwGKSVyhttX0vpzDOL3zqzpV8DuLZg/U2w=; b=E31PWDldFx/3USnvqWRyrJCqvy6Plp+nl3u/O5OA0u3LZMNlTFZ6igs3KeyB9PpPrrCUeQ Fh3EMFKPWrqnoOSQAnP+QxmWsXY/lUSrhsHLFDmGI0d6aR3uMbFAGl5+Y+goCyS2R1e8LP fr8HzF7TGwyx4IFfI+7n0uOwVoD6VOavRFHWe0joDRFXU+Tws+YUnpOfH/cmAmjkYtl+B2 85jrWKZp5g0EPjj2hvULPT3I/DaEclREI5tn2Io/i3fOme2sR2jNIG2qHjVBDLlc0qNALT 4RGeVlpZzHgWqOqVx3AYeuORAsUjEUSIQTOX9kGofA5rQ/qPI/yabn9rcrhDWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676548588; 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=ic6jj4R4KzwGKSVyhttX0vpzDOL3zqzpV8DuLZg/U2w=; b=P2d8sAevcYnJVeWGEhhE30zl2npU64ZKVjL19eJJlhq1p1midBmmd6Ym2tOXdMDCU28zj0 YL3ro9iDkFccPkXLMQYlKSaxmwSeJL/lYJowpPY9HEucuC49M1k/Jp/FsXnZ0UvbVFLKsa wfbi4LsWgZK/w/Pagiq3oZGqRivRD3LRy4BZfqTcX16mXhJD1SnxbFkvqEn/v0biTU0CZG wymyjITuIJWxWUtfhmzZW9Wgm0MrHd5HGqEW26N0R1HryQ7/mYBh/DTJb11TjGoxBXgbgm HcJHDr0fuOOeZ8HdZBIwfENVeXrYKN4L8+8eL33iLzle24H0zzEAfJhWvLfFew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676548588; a=rsa-sha256; cv=none; b=Xr3baC0n4df5oWIrav/c694DO/Fy2mHWsPk+lyQYmE2sD1xtNQsl0uc264ogVX39IN4Lgi D+O063XAxC2fHxy/ZGOPqHhy+eqO31atfvJ8xAGW8BmaSVv2U43k83po1qFF8VeCFWquuU z8N0UKei+Msn+U7D27pUqxyn4ZM1JmKTQz24kNRlnCj3r4nwK1O96GJ3V/5HQUzVTA8jPp hgoeIs7rgjYpTOXHtTEuiqu2/NrSuOpYV3R97KJFyjcA4VWWK/pnL6uSpK8/EudBt91rla 38HXVhwjb73DfAFykEK9xO4tEazwniW3yo6SC1L/+6Nje/79NKdvKpvaFo0Dow== 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 4PHYLz3vQCz13HD; Thu, 16 Feb 2023 11:56:27 +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 31GBuR5l056187; Thu, 16 Feb 2023 11:56:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31GBuRcI056186; Thu, 16 Feb 2023 11:56:27 GMT (envelope-from git) Date: Thu, 16 Feb 2023 11:56:27 GMT Message-Id: <202302161156.31GBuRcI056186@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: 8240c14d2e80 - stable/13 - linuxkpi: Move definition of `struct list_head` to 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: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 8240c14d2e80ac73e7bfa7f2ee12f17d8020da3d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=8240c14d2e80ac73e7bfa7f2ee12f17d8020da3d commit 8240c14d2e80ac73e7bfa7f2ee12f17d8020da3d Author: Jean-Sébastien Pédron AuthorDate: 2023-02-09 12:11:34 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-02-16 11:55:19 +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 (cherry picked from commit 54606590dffcd23136af1c26da38206f4d3a6269) --- 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 *));