From: Michal Kubecek <mkubecek@suse.cz>
To: netdev@vger.kernel.org
Cc: Thomas Devoogdt <thomas@devoogdt.com>
Subject: [PATCH ethtool 0/3] close uapi header copies w.r.t. include
Date: Wed, 19 Apr 2023 01:02:16 +0200 (CEST) [thread overview]
Message-ID: <cover.1681858286.git.mkubecek@suse.cz> (raw)
On multiple occasion, build on older systems with system <linux/...>
headers missing definitions or later changes failed which we either worked
around by adding conditional defines or fixed by adding a sanitized copy of
such header to uapi/ directory.
To prevent these problems, add sanitized copies of all uapi headers that we
include from any source file or from an already present uapi header copy
(and repeat the process recursively). For this purpose, add the update
scripts to the repository, update it to add missing files automatically and
run the update.
Michal Kubecek (3):
scripts: add ethtool-import-uapi
scripts: add all included uapi files on update
update UAPI header copies
scripts/ethtool-import-uapi | 67 +++++++++
uapi/linux/const.h | 36 +++++
uapi/linux/if_addr.h | 77 +++++++++++
uapi/linux/if_ether.h | 181 ++++++++++++++++++++++++
uapi/linux/libc-compat.h | 267 ++++++++++++++++++++++++++++++++++++
uapi/linux/neighbour.h | 224 ++++++++++++++++++++++++++++++
uapi/linux/posix_types.h | 38 +++++
uapi/linux/rtnetlink.h | 1 +
uapi/linux/socket.h | 38 +++++
uapi/linux/stddef.h | 47 +++++++
uapi/linux/types.h | 53 +++++++
11 files changed, 1029 insertions(+)
create mode 100755 scripts/ethtool-import-uapi
create mode 100644 uapi/linux/const.h
create mode 100644 uapi/linux/if_addr.h
create mode 100644 uapi/linux/if_ether.h
create mode 100644 uapi/linux/libc-compat.h
create mode 100644 uapi/linux/neighbour.h
create mode 100644 uapi/linux/posix_types.h
create mode 100644 uapi/linux/socket.h
create mode 100644 uapi/linux/stddef.h
create mode 100644 uapi/linux/types.h
--
2.40.0
next reply other threads:[~2023-04-18 23:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 23:02 Michal Kubecek [this message]
2023-04-18 22:13 ` [PATCH ethtool 3/3] update UAPI header copies Michal Kubecek
2023-04-18 23:02 ` [PATCH ethtool 1/3] scripts: add ethtool-import-uapi Michal Kubecek
2023-04-18 23:02 ` [PATCH ethtool 2/3] scripts: add all included uapi files on update Michal Kubecek
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=cover.1681858286.git.mkubecek@suse.cz \
--to=mkubecek@suse.cz \
--cc=netdev@vger.kernel.org \
--cc=thomas@devoogdt.com \
/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).