In the Linux kernel, it is preferred not to use compiler specific
attributes but instead utilize the kernel specific helpers.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
/* SPDX-License-Identifier: GPL-2.0-only */
-struct __attribute__ ((__packed__)) part {
+struct __packed part {
uint16_t start;
uint8_t wordsize;
uint8_t words;
};
-struct __attribute__ ((__packed__)) fw_header {
+struct __packed fw_header {
uint32_t magic;
uint32_t phy;
uint32_t checksum;