tools: renesas_spkgimage.h: use linux/compiler_attributes.h
authorPhilippe Reynes <philippe.reynes@softathome.com>
Thu, 19 Dec 2024 13:05:47 +0000 (14:05 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 18 Jan 2025 23:12:47 +0000 (17:12 -0600)
The attribute __packed was defined in the file
tools/renesas_spkgimage.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>
tools/renesas_spkgimage.h

index 367e113..83ec567 100644 (file)
 #ifndef _SPKGIMAGE_H_
 #define _SPKGIMAGE_H_
 
-#ifdef __GNUC__
-#define __packed __attribute((packed))
-#else
-#define __packed
-#endif
+#include <linux/compiler_attributes.h>
 
 #define SPKG_HEADER_MARKER     {'R', 'Z', 'N', '1'}
 #define SPKG_HEADER_SIZE       24