diff options
| author | Anup Patel <[email protected]> | 2019-01-14 14:53:52 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2019-01-16 11:25:25 +0530 |
| commit | 4485b5cba86a2488c326c0dee9a1fec2d788b6e8 (patch) | |
| tree | a8b9dbb713c54d066bdb01aa427e13d45825c6ea | |
| parent | 924a26d82fd948318619c6645865eaa0691640f9 (diff) | |
include: Add __packed define for packed structures
This patch adds __packed define for specifying packed
attribute of structures.
Signed-off-by: Anup Patel <[email protected]>
| -rw-r--r-- | include/sbi/sbi_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h index 136cd47e..39938420 100644 --- a/include/sbi/sbi_types.h +++ b/include/sbi/sbi_types.h @@ -54,6 +54,7 @@ typedef unsigned long physical_size_t; #define NULL ((void *)0) +#define __packed __attribute__((packed)) #define __noreturn __attribute__((noreturn)) #endif |
