Skip to contentSkip to conversation

evtchn: Change evtchn port type to evtchn_port_t

PATCH In review Yan Yankovskyi 2 participants 2 messages Mar 23, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 evtchn: Change evtchn port type to evtchn_port_t

struct evtchn_set_priority uses uint32_t type for event channel port. Replace the type with evtchn_port_t. Such change is also done in Linux.

---
 xen/include/public/event_channel.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/public/event_channel.h +1 -1
index 44c549dd6b..cfb7929fef 100644
@@ -307,7 +307,7 @@ typedef struct evtchn_expand_array evtchn_expand_array_t;
  */
 struct evtchn_set_priority {
     /* IN parameters. */
-    uint32_t port;
+    evtchn_port_t port;
     uint32_t priority;
 };
 typedef struct evtchn_set_priority evtchn_set_priority_t;
Signature · 1 line
2.17.1
Reviewed-by on v1 2/2
#1 lore raw
Quoted 4 lines · Yan Yankovskyi

struct evtchn_set_priority uses uint32_t type for event channel port. Replace the type with evtchn_port_t. Such change is also done in Linux.

As a general remark, the order of changes would better be the other way
around: The canonical header in the Xen repo be adjusted first, and the change then propagated to repos carrying clones.

Thanks, Jan