From patchwork Fri Jul 19 02:33:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= X-Patchwork-Id: 13736821 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 923CBC3DA49 for ; Fri, 19 Jul 2024 02:34:34 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.760835.1170782 (Exim 4.92) (envelope-from ) id 1sUdRo-00027c-FK; Fri, 19 Jul 2024 02:34:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 760835.1170782; Fri, 19 Jul 2024 02:34:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sUdRo-00027V-CS; Fri, 19 Jul 2024 02:34:16 +0000 Received: by outflank-mailman (input) for mailman id 760835; Fri, 19 Jul 2024 02:34:15 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sUdRn-0001tG-CY for xen-devel@lists.xenproject.org; Fri, 19 Jul 2024 02:34:15 +0000 Received: from fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 61b5b205-4577-11ef-bbfd-fd08da9f4363; Fri, 19 Jul 2024 04:34:12 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 3DBA5114026D; Thu, 18 Jul 2024 22:34:11 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 18 Jul 2024 22:34:11 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Jul 2024 22:34:08 -0400 (EDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 61b5b205-4577-11ef-bbfd-fd08da9f4363 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1721356451; x=1721442851; bh=295JPg7IQt Dkp5dvhP0fy0GSyAQJ2jLNGYtHNK1RIsM=; b=BHSpjF7xqAYkGMUrdvS1RJ+fSn Kv0Io3ezVIeVXBLyib8vOeRjymWnJSlY8ou1xJy/ihwd4limbIseforhDNCRxYAM EKWYYndOGzT9weVVoIpzE7q9584DA9wewO2JSaOPUYLjdx4sG49nSetTf+3FbMSh DcpBTXkhLj67HQF3kDGpKMOvoHOhXklaXRdJBMEMNdsvWhghkKXai7rKw591PKm9 4ixIbOBMcg74iA7Tb81B6FdllRdfx/S6/hTXlt2j3D80rEYPwzyAQxMlOwX6Nhcb 6x5KdjOK74amBrka28tF1dQDeMStc6MUnTQBxrQEafOg7PSRa4cvRXbmB+EA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1721356451; x= 1721442851; bh=295JPg7IQtDkp5dvhP0fy0GSyAQJ2jLNGYtHNK1RIsM=; b=m hCStaCj27+X9rrmQlGc8Yiuanf3Zl1mSJCUjxXqFVacCW0fmrPH2OLEIlGaCxp5o rMvBMK9X1omCMbFCiZMiU4BpHpT3IUuzi5HV48gGrEvnCo5CaBe4QFfgJYy7UzDF FB096Hu48u1NjiaT27QaQRrTlzHXT4zQrGz6Sa0j1tWcULJgZApJ7FGzW9Ho8GEV 1jPYayAb5YIIG76+trBdgoQtSKP+XyAO48R5Maz4MWiEzl0i4jbZ6/zg/dSoElyQ rVl9HYEKxl5IYxEZlo93Aj5o4ltCFWkgVKzOjag9k6+9mHfWBQDA2tkdKk89hbmy a75AYiIareqke/JsImqAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrhedtgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepofgrrhgv khcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomhgrrhhmrghrvghksehinh hvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecuggftrfgrthhtvghrnhepgfeu udehgfdvfeehhedujeehfeduveeugefhkefhheelgeevudetueeiudfggfffnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghk sehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomh X-ME-Proxy: Feedback-ID: i1568416f:Fastmail From: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= To: xen-devel@lists.xenproject.org Cc: =?utf-8?q?Marek_Marczykowski-G=C3=B3recki?= , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH v5 1/3] xen/list: add LIST_HEAD_RO_AFTER_INIT Date: Fri, 19 Jul 2024 04:33:36 +0200 Message-ID: <1994087de901c7520db559724ae95b2b0e1b1f5d.1721356393.git-series.marmarek@invisiblethingslab.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Similar to LIST_HEAD_READ_MOSTLY. Signed-off-by: Marek Marczykowski-Górecki Acked-by: Jan Beulich --- New in v5 --- xen/include/xen/list.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/include/xen/list.h b/xen/include/xen/list.h index 6506ac40893b..62169f46742e 100644 --- a/xen/include/xen/list.h +++ b/xen/include/xen/list.h @@ -42,6 +42,9 @@ struct list_head { #define LIST_HEAD_READ_MOSTLY(name) \ struct list_head __read_mostly name = LIST_HEAD_INIT(name) +#define LIST_HEAD_RO_AFTER_INIT(name) \ + struct list_head __ro_after_init name = LIST_HEAD_INIT(name) + static inline void INIT_LIST_HEAD(struct list_head *list) { list->next = list;