[PATCH v1 1/3] uapi: introduce kernel uAPI headers import
Stephen Hemminger
stephen at networkplumber.org
Wed Oct 9 16:50:04 CEST 2024
On Wed, 9 Oct 2024 10:58:03 +0200
Maxime Coquelin <maxime.coquelin at redhat.com> wrote:
> +fixup_includes()
> +{
> + local path=$1
> +
> + sed -i -E -e '
> + s/([[:space:](])(__user|__force|__iomem)[[:space:]]/\1/g
> + s/__attribute_const__([[:space:]]|$)/\1/g
> + s@^#include <linux/compiler(|_types).h>@@
> + s/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g
> + s/(^|[[:space:](])(inline|asm|volatile)([[:space:](]|$)/\1__\2__\3/g
> + s@#(ifndef|define|endif[[:space:]]*/[*])[[:space:]]*_UAPI@#\1 @
> + ' $path
> +
Rather than copy-pasting headers_install.sh, could you use it directly?
The copy/paste from GPL-2.0 concerns me.
And the potential upstream change as well.
More information about the dev
mailing list