From: Florian Fainelli <f.fainelli@gmail.com>
To: Michal Kubecek <mkubecek@suse.cz>
Cc: netdev@vger.kernel.org, Markus Mayer <mmayer@broadcom.com>,
Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH ethtool 3/3] marvell.c: Fix build with musl-libc
Date: Fri, 13 Jan 2023 18:07:12 -0800 [thread overview]
Message-ID: <a370fcd9-0a66-cfad-309d-dceebcf362de@gmail.com> (raw)
In-Reply-To: <20230114001346.tm3f7f5px7swjuzf@lion.mk-sys.cz>
On 1/13/2023 4:13 PM, Michal Kubecek wrote:
> On Fri, Jan 13, 2023 at 03:31:48PM -0800, Florian Fainelli wrote:
>> After commit 1fa60003a8b8 ("misc: header includes cleanup") we stopped
>> including net/if.h which resolved the proper defines to pull in
>> sys/types.h and provide a definition for u_int32_t. With musl-libc we
>> need to define _GNU_SOURCE to ensure that sys/types.h does provide a
>> definition for u_int32_t.
>>
>> Fixes: 1fa60003a8b8 ("misc: header includes cleanup")
>> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
>> ---
>> marvell.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/marvell.c b/marvell.c
>> index d3d570e4d4ad..be2fc36b8fc5 100644
>> --- a/marvell.c
>> +++ b/marvell.c
>> @@ -6,7 +6,7 @@
>> */
>>
>> #include <stdio.h>
>> -
>> +#define _GNU_SOURCE
>> #include "internal.h"
>>
>> static void dump_addr(int n, const u8 *a)
>
> I would prefer replacing u_intXX_t types with standard uintXX_t and
> including <stdint.h>. That would be consistent with the rest of the
> code which uses ISO uintXX_t types or (older code) kernel uXX types.
Sounds good, I will do that in v2.
--
Florian
prev parent reply other threads:[~2023-01-14 2:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-13 23:31 [PATCH ethtool 0/3] Build fixes for older kernel headers and musl Florian Fainelli
2023-01-13 23:31 ` [PATCH ethtool 1/3] misc: Fix build with kernel headers < v4.11 Florian Fainelli
2023-01-13 23:57 ` Michal Kubecek
2023-01-14 0:11 ` Florian Fainelli
2023-01-14 2:07 ` Florian Fainelli
2023-01-13 23:31 ` [PATCH ethtool 2/3] netlink: Fix maybe uninitialized 'meters' variable Florian Fainelli
2023-01-14 0:09 ` Michal Kubecek
2023-01-14 0:12 ` Florian Fainelli
2023-01-13 23:31 ` [PATCH ethtool 3/3] marvell.c: Fix build with musl-libc Florian Fainelli
2023-01-14 0:13 ` Michal Kubecek
2023-01-14 2:07 ` Florian Fainelli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a370fcd9-0a66-cfad-309d-dceebcf362de@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=mkubecek@suse.cz \
--cc=mmayer@broadcom.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).