Skip to content

close uapi header copies w.r.t. include

Michal Kubecek netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scripts: add ethtool-import-uapiscripts/ethtool-import-uapi+41 -00 replies
2/3scripts: add all included uapi files on updatescripts/ethtool-import-uapi+26 -00 replies
3/3update UAPI header copiesuapi/linux/const.h uapi/linux/if_addr.h uapi/linux/if_ether.h +7 more+962 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH ethtool 0/3] close uapi header copies w.r.t. include

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
Signature · 1 line
2.40.0