[PATCH v5 1/3] xen/list: add LIST_HEAD_RO_AFTER_INIT

Marek Marczykowski-Górecki posted 3 patches 1 month, 4 weeks ago
There is a newer version of this series
[PATCH v5 1/3] xen/list: add LIST_HEAD_RO_AFTER_INIT
Posted by Marek Marczykowski-Górecki 1 month, 4 weeks ago
Similar to LIST_HEAD_READ_MOSTLY.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
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;
-- 
git-series 0.9.1

Re: [PATCH v5 1/3] xen/list: add LIST_HEAD_RO_AFTER_INIT
Posted by Jan Beulich 1 month, 3 weeks ago
On 19.07.2024 04:33, Marek Marczykowski-Górecki wrote:
> Similar to LIST_HEAD_READ_MOSTLY.
> 
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>

Acked-by: Jan Beulich <jbeulich@suse.com>