Skip to content

Commit 6bd6b28

Browse files
committed
tools/virtio: define aligned attribute
Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 3302363 commit 6bd6b28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/virtio/linux/compiler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77

88
#define READ_ONCE(var) (*((volatile typeof(var) *)(&(var))))
99

10+
#define __aligned(x) __attribute((__aligned__(x)))
1011
#endif

0 commit comments

Comments
 (0)