We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 444f036 commit 83dcc12Copy full SHA for 83dcc12
tools/include/vdso/unaligned.h
@@ -2,14 +2,14 @@
2
#ifndef __VDSO_UNALIGNED_H
3
#define __VDSO_UNALIGNED_H
4
5
-#define __get_unaligned_t(type, ptr) ({ \
6
- const struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \
7
- __pptr->x; \
+#define __get_unaligned_t(type, ptr) ({ \
+ const struct { type x; } __packed * __get_pptr = (typeof(__get_pptr))(ptr); \
+ __get_pptr->x; \
8
})
9
10
-#define __put_unaligned_t(type, val, ptr) do { \
11
- struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \
12
- __pptr->x = (val); \
+#define __put_unaligned_t(type, val, ptr) do { \
+ struct { type x; } __packed * __put_pptr = (typeof(__put_pptr))(ptr); \
+ __put_pptr->x = (val); \
13
} while (0)
14
15
#endif /* __VDSO_UNALIGNED_H */
0 commit comments