From patchwork Tue Jul 23 03:24:12 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: 13739297 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 C5CFEC3DA70 for ; Tue, 23 Jul 2024 03:25:02 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.762546.1172708 (Exim 4.92) (envelope-from ) id 1sW68o-0005ib-BA; Tue, 23 Jul 2024 03:24:42 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 762546.1172708; Tue, 23 Jul 2024 03:24:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sW68o-0005hS-4n; Tue, 23 Jul 2024 03:24:42 +0000 Received: by outflank-mailman (input) for mailman id 762546; Tue, 23 Jul 2024 03:24:41 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sW68n-0005f5-Fr for xen-devel@lists.xenproject.org; Tue, 23 Jul 2024 03:24:41 +0000 Received: from fhigh6-smtp.messagingengine.com (fhigh6-smtp.messagingengine.com [103.168.172.157]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 17732e67-48a3-11ef-8776-851b0ebba9a2; Tue, 23 Jul 2024 05:24:39 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 09960114027C; Mon, 22 Jul 2024 23:24:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 22 Jul 2024 23:24:38 -0400 Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jul 2024 23:24:35 -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: 17732e67-48a3-11ef-8776-851b0ebba9a2 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=1721705078; x=1721791478; bh=5mBbeJ3IgD DqpZgnQ/L6S/O0FCGdtdLv+JP7rpu5cRQ=; b=vrqmjrav9JygAnUk/Smp9aPtN3 +Y4Isu6Oy6TEAaDSK8dtH+tighNDS9vKRmcDVKuJ3i+zgpDdS9j7/j1YsfzqmUbc eKXfka44UGJ8Jeb5OxfZt/jqz4ZbdrlWRY2NK7jJbpsfVyeVu8mMIr+kgjP0fztk fqenkX8GVg9Jcl0341NEL0I2HIG5GXX4DuRuy13wTbiO/Y4L+VVdTHOWH421CLGr 1mBtHBh3vYEgbSw/ZGrv7WfQL4eu/g7ByfzaqtYi7iMUOZB44gfVPVMRk1M/3Mei oxat8QZS9G2R//2QmFpUKp7+8WXWjAND9P3HzPBe/HbrwkmTrwbSPxGx8YVQ== 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=fm3; t=1721705078; x= 1721791478; bh=5mBbeJ3IgDDqpZgnQ/L6S/O0FCGdtdLv+JP7rpu5cRQ=; b=B U8hV5yrhzpKs2+YbqSB3+/YKwg5zPuHeI7eKoNdgO8NMk4MSncpRAKn3IXofNIG9 Nd1DYw7jABwQKg5D/J1x35rTNJOTuBNMPwppS+IrYCdVZntORqE+uqmAI8wNSTOF k1b1FBAaKW5AN8jv5yrxmWjtAx0PO6Zv1MMgsqxmxF9JrW/fhzRVUCDwHaORoZVp IzFN/DJpJzhmtMxrQpvAP/PUQPiMVs3qDlkkkSuSGYulVdXZrTjquME3Wa+uQx3U d/MKbBzyuqWNLlCeIxp4UVWVlQ8zDJKxaeTNDLiWzHOvTkuvo5H1SshfqTyoharr MQvJWZTdMQbJEFqGyI6lg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheekgdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepofgrrhgv khcuofgrrhgtiiihkhhofihskhhiqdfikphrvggtkhhiuceomhgrrhhmrghrvghksehinh hvihhsihgslhgvthhhihhnghhslhgrsgdrtghomheqnecuggftrfgrthhtvghrnhepgfeu udehgfdvfeehhedujeehfeduveeugefhkefhheelgeevudetueeiudfggfffnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrrhhmrghrvghk sehinhhvihhsihgslhgvthhhihhnghhslhgrsgdrtghomhdpnhgspghrtghpthhtoheptd 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?= , Jan Beulich , Andrew Cooper , Julien Grall , Stefano Stabellini Subject: [PATCH v6 1/3] xen/list: add LIST_HEAD_RO_AFTER_INIT Date: Tue, 23 Jul 2024 05:24:12 +0200 Message-ID: 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;