[2/4] util: add macro to align a buffer
diff mbox series

Message ID 20190828052014.2466-2-sbabic@denx.de
State Accepted
Headers show
Series
  • [1/4] cpio: export get_cpiohdr function
Related show

Commit Message

Stefano Babic Aug. 28, 2019, 5:20 a.m. UTC
It is a generic macro but not exported in standard headers. Added as own
macro.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 include/util.h | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/include/util.h b/include/util.h
index a4edbef..662feb9 100644
--- a/include/util.h
+++ b/include/util.h
@@ -24,6 +24,7 @@ 
 #define AES_BLOCK_SIZE	16
 
 #define HWID_REGEXP_PREFIX	"#RE:"
+#define SWUPDATE_ALIGN(A,S)    (((A) + (S) - 1) & ~((S) - 1))
 
 extern int loglevel;