From: Sven Eckelmann Date: Sun, 23 Nov 2025 11:02:57 +0000 (+0100) Subject: realtek: Use __packed helper X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5a2a2b20200f56ce5ab48f600ba3c12f70cf93f3;p=openwrt%2Fopenwrt.git realtek: Use __packed helper 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 Link: https://github.com/openwrt/openwrt/pull/20906 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h b/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h index ef7650eb6a..7dcbb45c8b 100644 --- a/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h +++ b/target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h @@ -1,12 +1,12 @@ /* 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;