|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] io: make shared ring pad field less entic
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1278093508 -3600
# Node ID a8c5e5e12ec1a987a33da6be9234f6e78f87060a
# Parent feee0abed6aa75134c47ba1b712305c871e0669e
io: make shared ring pad field less enticing for users by adding a __ prefix
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Cc: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Cc: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Cc: Dongxiao Xu <dongxiao.xu@xxxxxxxxx>
---
xen/include/public/io/ring.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -r feee0abed6aa -r a8c5e5e12ec1 xen/include/public/io/ring.h
--- a/xen/include/public/io/ring.h Fri Jul 02 18:58:02 2010 +0100
+++ b/xen/include/public/io/ring.h Fri Jul 02 18:58:28 2010 +0100
@@ -112,7 +112,7 @@ struct __name##_sring {
} tapif_user; \
uint8_t pvt_pad[4]; \
} private; \
- uint8_t pad[44]; \
+ uint8_t __pad[44]; \
union __name##_sring_entry ring[1]; /* variable-length */ \
}; \
\
@@ -156,7 +156,8 @@ typedef struct __name##_back_ring __name
#define SHARED_RING_INIT(_s) do { \
(_s)->req_prod = (_s)->rsp_prod = 0; \
(_s)->req_event = (_s)->rsp_event = 1; \
- (void)memset((_s)->pad, 0, sizeof((_s)->pad)); \
+ (void)memset((_s)->private.pvt_pad, 0, sizeof((_s)->private.pvt_pad)); \
+ (void)memset((_s)->__pad, 0, sizeof((_s)->__pad)); \
} while(0)
#define FRONT_RING_INIT(_r, _s, __size) do { \
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] io: make shared ring pad field less enticing for users by adding a __ prefix,
Xen patchbot-unstable <=
|
|
|
|
|