From eec32a35d74f8457fcf05d6f3752250fbae7bd5c Mon Sep 17 00:00:00 2001 From: Philippe Reynes Date: Thu, 19 Dec 2024 14:05:46 +0100 Subject: [PATCH] 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 --- tools/kwbimage.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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