summaryrefslogtreecommitdiff
path: root/src/shared/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-12 21:43:50 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-12 21:43:50 +0200
commite86b80b834016d273196c5ec9687fddcddcf9381 (patch)
tree6c220e24a2e12d78687126709926925a2c5be252 /src/shared/macro.h
parent3583882c4ff8ced09867691175e1a7396ae8e413 (diff)
bus: don't calculate kmsg message too large
Diffstat (limited to 'src/shared/macro.h')
-rw-r--r--src/shared/macro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/macro.h b/src/shared/macro.h
index 84a453a8f2..99dc733853 100644
--- a/src/shared/macro.h
+++ b/src/shared/macro.h
@@ -65,6 +65,8 @@
#error "Wut? Pointers are neither 4 nor 8 bytes long?"
#endif
+#define ALIGN8_PTR(p) ((void*) ALIGN8((unsigned long) p))
+
static inline size_t ALIGN_TO(size_t l, size_t ali) {
return ((l + ali - 1) & ~(ali - 1));
}