Hi Paolo,

On 30/5/25 09:11, Paolo Bonzini wrote:
Do not leave the __le* macros defined, in fact do not use them at all.  Fixes a
build failure on Alpine with the TDX patches:

In file included from ../hw/net/rocker/rocker_of_dpa.c:25:
../hw/net/rocker/rocker_hw.h:14:16: error: conflicting types for 'uint64_t'; 
have '__u64' {aka 'long long unsigned int'}
    14 | #define __le64 uint64_t
       |                ^~~~~~~~
In file included from /usr/include/stdint.h:20,
                  from ../include/qemu/osdep.h:111,
                  from ../hw/net/rocker/rocker_of_dpa.c:17:
/usr/include/bits/alltypes.h:136:25: note: previous declaration of 'uint64_t' 
with type 'uint64_t' {aka 'long unsigned int'}
   136 | typedef unsigned _Int64 uint64_t;
       |                         ^~~~~~~~

because the Linux headers include a typedef of __leNN.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>

Your tools sometimes miss R-b tags:
https://lore.kernel.org/qemu-devel/4d8013d1-3787-4d8a-8b8d-3eee7d389...@linaro.org/

---
  hw/net/rocker/rocker.h        | 14 +++---------
  hw/net/rocker/rocker_hw.h     | 20 +++++++-----------
  hw/net/rocker/rocker_of_dpa.c | 40 +++++++++++++++++------------------
  3 files changed, 31 insertions(+), 43 deletions(-)


Reply via email to