bus: don't calculate kmsg message too large

This commit is contained in:
Lennart Poettering
2013-04-12 21:43:50 +02:00
parent 3583882c4f
commit e86b80b834
3 changed files with 8 additions and 3 deletions
+2
View File
@@ -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));
}