[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 1/6] scripts/update-linux-headers: Update han
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v3 1/6] scripts/update-linux-headers: Update handling of __aligned_u64 |
Date: |
Tue, 22 May 2018 15:04:46 +0100 |
On 3 May 2018 at 22:44, Alex Williamson <address@hidden> wrote:
> We'll currently replace any 'u64' with a 'uint64_t' including when
> it's embedded in an '__aligned_u64', creating a '__aligned_uint64_t'
> which doesn't exist. Add another sed entry to find these and convert
> them back to their original form.
>
> Signed-off-by: Alex Williamson <address@hidden>
> ---
> scripts/update-linux-headers.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
> index a017b53d8765..dd74cc8d5223 100755
> --- a/scripts/update-linux-headers.sh
> +++ b/scripts/update-linux-headers.sh
> @@ -56,6 +56,7 @@ cp_portable() {
> -e 's/__s\([0-9][0-9]*\)/int\1_t/g' \
> -e 's/__le\([0-9][0-9]*\)/uint\1_t/g' \
> -e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \
> + -e 's/__aligned_uint\([0-9][0-9]*\)_t/__aligned_u\1/g' \
> -e 's/"\(input-event-codes\.h\)"/"standard-headers\/linux\/\1"/' \
> -e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \
> -e 's/__bitwise//' \
Hi -- I just ran into this as well, but this fix looks odd. This
bit of the script is supposed to generate portable headers,
so we need to do something with __aligned_u64; we can't just
leave it the way it is. We should presumably be turning it into
some typedef which we have a definition of in the QEMU headers.
(That u\([0-9][0-9]*\) substitution is really broad; we should
probably switch to using perl instead so we can use regexes that
match on word-boundaries so we only change what we intend to.)
thanks
-- PMM
- [Qemu-devel] [PATCH v3 0/6] vfio/quirks: ioeventfd support, Alex Williamson, 2018/05/03
- [Qemu-devel] [PATCH v3 1/6] scripts/update-linux-headers: Update handling of __aligned_u64, Alex Williamson, 2018/05/03
- Re: [Qemu-devel] [PATCH v3 1/6] scripts/update-linux-headers: Update handling of __aligned_u64,
Peter Maydell <=
- [Qemu-devel] [PATCH v3 3/6] vfio/quirks: Add common quirk alloc helper, Alex Williamson, 2018/05/03
- [Qemu-devel] [PATCH v3 2/6] linux-headers: Update to v4.17-rc3, Alex Williamson, 2018/05/03
- [Qemu-devel] [PATCH v3 4/6] vfio/quirks: Add quirk reset callback, Alex Williamson, 2018/05/03
- [Qemu-devel] [PATCH v3 5/6] vfio/quirks: ioeventfd quirk acceleration, Alex Williamson, 2018/05/03
- [Qemu-devel] [PATCH v3 6/6] vfio/quirks: Enable ioeventfd quirks to be handled by vfio directly, Alex Williamson, 2018/05/03