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>
This commit is contained in:
Sven Eckelmann 2025-11-23 12:02:57 +01:00 committed by Hauke Mehrtens
parent d5fec0b125
commit 5a2a2b2020

View 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;