diff options
| author | Sven Eckelmann | 2025-11-23 11:02:57 +0000 |
|---|---|---|
| committer | Hauke Mehrtens | 2025-11-24 23:28:50 +0000 |
| commit | 5a2a2b20200f56ce5ab48f600ba3c12f70cf93f3 (patch) | |
| tree | c8686292ae879a8e33b21b03122693e23e1c5c24 | |
| parent | d5fec0b125a31c148cf398b5106d49f361bd377b (diff) | |
| download | openwrt-5a2a2b20200f56ce5ab48f600ba3c12f70cf93f3.tar.gz | |
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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
| -rw-r--r-- | target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h | 4 |
1 files 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; |