[PATCH v8 1/8] scripts/update-linux-headers: Copy setup_data.h to correct directory

Thomas Weißschuh posted 8 patches 6 months ago
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Cornelia Huck <cohuck@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>, Thomas Huth <thuth@redhat.com>, Laurent Vivier <lvivier@redhat.com>
[PATCH v8 1/8] scripts/update-linux-headers: Copy setup_data.h to correct directory
Posted by Thomas Weißschuh 6 months ago
Add the missing "include/" path component, so the files ends up in the
correct place like the other headers.

Fixes: 66210a1a30f2 ("scripts/update-linux-headers: Add setup_data.h to import list")
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
---
 scripts/update-linux-headers.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index 8963c391895f..a148793bd569 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -158,7 +158,7 @@ for arch in $ARCHLIST; do
         cp_portable "$hdrdir/bootparam.h" \
                     "$output/include/standard-headers/asm-$arch"
         cp_portable "$hdrdir/include/asm/setup_data.h" \
-                    "$output/standard-headers/asm-x86"
+                    "$output/include/standard-headers/asm-x86"
     fi
     if [ $arch = riscv ]; then
         cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"

-- 
2.45.1


Re: [PATCH v8 1/8] scripts/update-linux-headers: Copy setup_data.h to correct directory
Posted by Thomas Huth 6 months ago
On 27/05/2024 08.27, Thomas Weißschuh wrote:
> Add the missing "include/" path component, so the files ends up in the
> correct place like the other headers.
> 
> Fixes: 66210a1a30f2 ("scripts/update-linux-headers: Add setup_data.h to import list")
> Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
> ---
>   scripts/update-linux-headers.sh | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
> index 8963c391895f..a148793bd569 100755
> --- a/scripts/update-linux-headers.sh
> +++ b/scripts/update-linux-headers.sh
> @@ -158,7 +158,7 @@ for arch in $ARCHLIST; do
>           cp_portable "$hdrdir/bootparam.h" \
>                       "$output/include/standard-headers/asm-$arch"
>           cp_portable "$hdrdir/include/asm/setup_data.h" \
> -                    "$output/standard-headers/asm-x86"
> +                    "$output/include/standard-headers/asm-x86"

I just ran into the same issue!

Reviewed-by: Thomas Huth <thuth@redhat.com>