diff options
Diffstat (limited to 'firmware/2lib/include/2common.h')
-rw-r--r-- | firmware/2lib/include/2common.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/firmware/2lib/include/2common.h b/firmware/2lib/include/2common.h index 0a6dccd2..4b80e12c 100644 --- a/firmware/2lib/include/2common.h +++ b/firmware/2lib/include/2common.h @@ -45,23 +45,6 @@ struct vb2_public_key; #endif #endif -/* - * Alignment for work buffer pointers/allocations should be useful for any - * data type. When declaring workbuf buffers on the stack, the caller should - * use explicit alignment to avoid run-time errors. For example: - * - * int foo(void) - * { - * struct vb2_workbuf wb; - * uint8_t buf[NUM] __attribute__ ((aligned (VB2_WORKBUF_ALIGN))); - * wb.buf = buf; - * wb.size = sizeof(buf); - */ - -/* We might get away with using __alignof__(void *), but since GCC defines a - * macro for us we'll be safe and use that. */ -#define VB2_WORKBUF_ALIGN __BIGGEST_ALIGNMENT__ - /** * Round up a number to a multiple of VB2_WORKBUF_ALIGN * |