From 5a2a2b20200f56ce5ab48f600ba3c12f70cf93f3 Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Sun, 23 Nov 2025 12:02:57 +0100 Subject: [PATCH] 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 --- target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.30.2