On Wed,  9 Oct 2024 10:58:03 +0200
Maxime Coquelin <maxime.coque...@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.

Reply via email to