realtek: Use __packed helper
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 11:02:57 +0000 (12:02 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:28:50 +0000 (00:28 +0100)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/phy/rtl83xx-phy.h

index ef7650eb6abce6c5bdbb6225cc9f52221a5ad427..7dcbb45c8b20cc60c7ead4eabdaa2776a07495db 100644 (file)
@@ -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;