qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: Use normal types
@ 2023-05-11  8:45 Juan Quintela
  2023-05-11 10:14 ` Philippe Mathieu-Daudé
  2023-05-15 16:55 ` Warner Losh
  0 siblings, 2 replies; 4+ messages in thread
From: Juan Quintela @ 2023-05-11  8:45 UTC (permalink / raw)
  To: qemu-devel
  Cc: Warner Losh, Peter Maydell, Kyle Evans, Juan Quintela,
	Richard Henderson

This is the only use of u_int32_t in the whole tree.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
 bsd-user/arm/target_arch_reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsd-user/arm/target_arch_reg.h b/bsd-user/arm/target_arch_reg.h
index 070fa24da1..fe9e6584e6 100644
--- a/bsd-user/arm/target_arch_reg.h
+++ b/bsd-user/arm/target_arch_reg.h
@@ -32,7 +32,7 @@ typedef struct target_reg {
 typedef struct target_fp_reg {
     uint32_t        fp_exponent;
     uint32_t        fp_mantissa_hi;
-    u_int32_t       fp_mantissa_lo;
+    uint32_t        fp_mantissa_lo;
 } target_fp_reg_t;
 
 typedef struct target_fpreg {
-- 
2.40.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: Use normal types
  2023-05-11  8:45 [PATCH] ARM: Use normal types Juan Quintela
@ 2023-05-11 10:14 ` Philippe Mathieu-Daudé
  2023-05-15 16:55 ` Warner Losh
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-05-11 10:14 UTC (permalink / raw)
  To: Juan Quintela, qemu-devel
  Cc: Warner Losh, Peter Maydell, Kyle Evans, Richard Henderson

On 11/5/23 10:45, Juan Quintela wrote:
> This is the only use of u_int32_t in the whole tree.
> 
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   bsd-user/arm/target_arch_reg.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: Use normal types
  2023-05-11  8:45 [PATCH] ARM: Use normal types Juan Quintela
  2023-05-11 10:14 ` Philippe Mathieu-Daudé
@ 2023-05-15 16:55 ` Warner Losh
  1 sibling, 0 replies; 4+ messages in thread
From: Warner Losh @ 2023-05-15 16:55 UTC (permalink / raw)
  To: Juan Quintela; +Cc: qemu-devel, Peter Maydell, Kyle Evans, Richard Henderson

[-- Attachment #1: Type: text/plain, Size: 1046 bytes --]

On Thu, May 11, 2023 at 2:45 AM Juan Quintela <quintela@redhat.com> wrote:

> This is the only use of u_int32_t in the whole tree.
>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>

Reviewed-by: Warner Losh <imp@bsdimp.com>

I'll queue this version if others don't beat me to it. I plan on merging
that around June 1st.

Warner


> ---
>  bsd-user/arm/target_arch_reg.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bsd-user/arm/target_arch_reg.h
> b/bsd-user/arm/target_arch_reg.h
> index 070fa24da1..fe9e6584e6 100644
> --- a/bsd-user/arm/target_arch_reg.h
> +++ b/bsd-user/arm/target_arch_reg.h
> @@ -32,7 +32,7 @@ typedef struct target_reg {
>  typedef struct target_fp_reg {
>      uint32_t        fp_exponent;
>      uint32_t        fp_mantissa_hi;
> -    u_int32_t       fp_mantissa_lo;
> +    uint32_t        fp_mantissa_lo;
>  } target_fp_reg_t;
>
>  typedef struct target_fpreg {
> --
> 2.40.1
>
>

[-- Attachment #2: Type: text/html, Size: 1818 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] ARM: Use normal types
@ 2023-10-17 13:13 Juan Quintela
  0 siblings, 0 replies; 4+ messages in thread
From: Juan Quintela @ 2023-10-17 13:13 UTC (permalink / raw)
  To: qemu-devel; +Cc: Kyle Evans, Warner Losh, Juan Quintela, Richard Henderson

A bit of history from Warner:

This has been that way the bsd-user sources were reorganized in
2015. I can find no good reason in the FreeBSD sources to do
this (we've been transitioning from the pre-standardized BSD
convention of u_intXX_t -> uintXX_t for 25 years now it seems). I
don't see any old or ancient usage as far back as I looked why they'd
be different. Up through FreeBSD 12.x, this was u_int32_t (for all of
them), but they switched to __uint32_t in FreeBSD 13 to avoid
namespace pollution.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by:  Warner Losh <imp@bsdimp.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>

---

It looks this got lost on previous release
---
 bsd-user/arm/target_arch_reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsd-user/arm/target_arch_reg.h b/bsd-user/arm/target_arch_reg.h
index 070fa24da1..5f1eea4291 100644
--- a/bsd-user/arm/target_arch_reg.h
+++ b/bsd-user/arm/target_arch_reg.h
@@ -32,7 +32,7 @@ typedef struct target_reg {
 typedef struct target_fp_reg {
     uint32_t        fp_exponent;
     uint32_t        fp_mantissa_hi;
-    u_int32_t       fp_mantissa_lo;
+    uint32_t       fp_mantissa_lo;
 } target_fp_reg_t;
 
 typedef struct target_fpreg {
-- 
2.41.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-17 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-11  8:45 [PATCH] ARM: Use normal types Juan Quintela
2023-05-11 10:14 ` Philippe Mathieu-Daudé
2023-05-15 16:55 ` Warner Losh
  -- strict thread matches above, loose matches on Subject: below --
2023-10-17 13:13 Juan Quintela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).