qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 6/9] hw/mips: Include missing 'exec/tswap.h' header


From: Richard Henderson
Subject: Re: [PATCH v2 6/9] hw/mips: Include missing 'exec/tswap.h' header
Date: Wed, 11 Dec 2024 18:01:56 -0600
User-agent: Mozilla Thunderbird

On 12/11/24 17:03, Philippe Mathieu-Daudé wrote:
Some files indirectly get "exec/tswap.h" declarations via
"exec/cpu-all.h". Include it directly to be able to remove
the former from the latter, otherwise we get:

   hw/mips/malta.c:674:22: error: call to undeclared function 'tswap32'; ISO 
C99 and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
     674 |                      tswap32((1 << 31) /* ConfigEn */
         |                      ^
   hw/mips/fuloong2e.c:89:23: error: call to undeclared function 'tswap32'; ISO 
C99 and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
      89 |     prom_buf[index] = tswap32(ENVP_VADDR + table_addr);
         |                       ^

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  hw/mips/fuloong2e.c | 1 +
  hw/mips/malta.c     | 1 +
  2 files changed, 2 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]