[openwrt/openwrt] realtek: Use __packed helper

LEDE Commits lede-commits at lists.infradead.org
Mon Nov 24 15:30:04 PST 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/5a2a2b20200f56ce5ab48f600ba3c12f70cf93f3

commit 5a2a2b20200f56ce5ab48f600ba3c12f70cf93f3
Author: Sven Eckelmann <sven at narfation.org>
AuthorDate: Sun Nov 23 12:02:57 2025 +0100

    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 at narfation.org>
    Link: https://github.com/openwrt/openwrt/pull/20906
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 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;




More information about the lede-commits mailing list