include/scripts/linux/kernel.h included via #include <linux/kernel.h> later on already defines these three macros. Remove them here to avoid the warnings about the duplicate macro definition. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- scripts/bareboximd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/bareboximd.c b/scripts/bareboximd.c index cf1b8f693ac0..e5000e0aea5b 100644 --- a/scripts/bareboximd.c +++ b/scripts/bareboximd.c @@ -16,10 +16,6 @@ * */ -#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask)) -#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a) - 1) -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - #include <stdio.h> #include <sys/types.h> #include <stdint.h> -- 2.25.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox