From: Philippe Reynes Date: Thu, 19 Dec 2024 13:05:46 +0000 (+0100) Subject: tools: kwbimage.h: use linux/compiler_attributes.h X-Git-Tag: v2025.04-rc1~46^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eec32a35d74f8457fcf05d6f3752250fbae7bd5c;p=thirdparty%2Fu-boot.git tools: kwbimage.h: use linux/compiler_attributes.h The attribute __packed was defined in the file tools/kwbimage.h but this attribute is already defined in linux/compiler_attributes.h. So we include and do not define __packed. Signed-off-by: Philippe Reynes --- diff --git a/tools/kwbimage.h b/tools/kwbimage.h index 505522332bd..e1fa2e4e215 100644 --- a/tools/kwbimage.h +++ b/tools/kwbimage.h @@ -11,11 +11,7 @@ #include #include -#ifdef __GNUC__ -#define __packed __attribute((packed)) -#else -#define __packed -#endif +#include #define KWBIMAGE_MAX_CONFIG ((0x1dc - 0x20)/sizeof(struct reg_config)) #define MAX_TEMPBUF_LEN 32