Skip to content

Commit

Permalink
net: make __net_buf_align 64-bit compatible
Browse files Browse the repository at this point in the history
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 Jun 12, 2019
1 parent 5ec6a53 commit a946b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/buf.h
Expand Up @@ -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
Expand Down

0 comments on commit a946b2c

Please sign in to comment.