1 From: Florian Fainelli <f.fainelli@gmail.com>
2 To: netdev@vger.kernel.org
3 Subject: [PATCH ethtool v2 3/3] marvell.c: Fix build with musl-libc
4 Date: Sat, 14 Jan 2023 08:34:11 -0800
6 After commit 1fa60003a8b8 ("misc: header includes cleanup") we stopped
7 including net/if.h which resolved the proper defines to pull in
8 sys/types.h and provide a definition for u_int32_t. With musl-libc we
9 would need to define _GNU_SOURCE to ensure that sys/types.h does provide a
10 definition for u_int32_t.
12 Rather, just replace u_uint{16,32}_t with the more standard
13 uint{16,32}_t types from stdint.h
15 Fixes: 1fa60003a8b8 ("misc: header includes cleanup")
16 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
18 marvell.c | 34 +++++++++++++++++-----------------
19 1 file changed, 17 insertions(+), 17 deletions(-)
23 @@ -31,23 +31,23 @@ static void dump_timer(const char *name,
24 static void dump_queue(const char *name, const void *a, int rx)
32 - u_int32_t timestamp;
35 - u_int16_t csum2_start;
36 - u_int16_t csum1_start;
41 - u_int32_t byte_count;
52 + uint16_t csum2_start;
53 + uint16_t csum1_start;
58 + uint32_t byte_count;
62 const struct desc *d = a;