Skip to content
Permalink
Browse files

net: make __net_buf_align 64-bit compatible

Structures to which this applies contain pointers. So the alignment
should depend on pointer width. On 32-bit builds this remains the same.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
  • Loading branch information...
Nicolas Pitre authored and jukkar committed May 26, 2019
1 parent 5ec6a53 commit a946b2cc7a2114aeb23ebd8ae4aafbcd6a204694
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/net/buf.h
@@ -27,7 +27,7 @@ extern "C" {
*/

/* Alignment needed for various parts of the buffer definition */
#define __net_buf_align __aligned(sizeof(int))
#define __net_buf_align __aligned(sizeof(void *))

/**
* @def NET_BUF_SIMPLE_DEFINE

0 comments on commit a946b2c

Please sign in to comment.
You can’t perform that action at this time.