diff options
author | Philippe Reynes <philippe.reynes@softathome.com> | 2024-12-19 14:05:46 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-01-18 17:12:47 -0600 |
commit | eec32a35d74f8457fcf05d6f3752250fbae7bd5c (patch) | |
tree | 0a91c287bcd9d82cc6e34f7910d0beaa29d20fe7 | |
parent | c06705a9a13d58e799b98927c360e93954b62860 (diff) |
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 <linux/compiler_attributes.h.h> and
do not define __packed.
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
-rw-r--r-- | tools/kwbimage.h | 6 |
1 files changed, 1 insertions, 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 <compiler.h> #include <stdint.h> -#ifdef __GNUC__ -#define __packed __attribute((packed)) -#else -#define __packed -#endif +#include <linux/compiler_attributes.h> #define KWBIMAGE_MAX_CONFIG ((0x1dc - 0x20)/sizeof(struct reg_config)) #define MAX_TEMPBUF_LEN 32 |