[PATCH 3/4] pblimage: use roundup() from kernel.h
Sascha Hauer
s.hauer at pengutronix.de
Tue Dec 19 05:00:39 PST 2023
We already have roundup() defined in linux/kernel.h, so use it instead
of adding a local definition.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
scripts/pblimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/pblimage.c b/scripts/pblimage.c
index d0a589f2fe..e8108bbb17 100644
--- a/scripts/pblimage.c
+++ b/scripts/pblimage.c
@@ -14,12 +14,12 @@
#include <getopt.h>
#include <endian.h>
#include <byteswap.h>
+#include <linux/kernel.h>
#include "common.h"
#include "common.c"
#include "../crypto/crc32.c"
-#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))
#define PBL_ACS_CONT_CMD 0x81000000
#define PBL_ADDR_24BIT_MASK 0x00ffffff
--
2.39.2
More information about the barebox
mailing list