All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/virtio: drop phys_addr_t typedef
@ 2022-04-11  1:40 Peng Fan (OSS)
  2022-04-11  8:52   ` Jason Wang
  0 siblings, 1 reply; 7+ messages in thread
From: Peng Fan (OSS) @ 2022-04-11  1:40 UTC (permalink / raw)
  To: mst, jasowang; +Cc: virtualization, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

With commit 884ee1e585ca ("tools/include: Add phys_addr_t to types.h"),

When building virtio tools, there is a type conficting error:

"
./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
   32 | typedef unsigned long long phys_addr_t;
      |                            ^~~~~~~~~~~
In file included from /usr/include/linux/virtio_blk.h:28,
                 from virtio-ivshmem-block.c:29:
../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’ was here
   69 | typedef u32 phys_addr_t;
      |             ^~~~~~~~~~~
"

Let's drop the typedef in tools/virtio/linux/kernel.h

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 tools/virtio/linux/kernel.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
index 0b493542e61a..1d3248e3f270 100644
--- a/tools/virtio/linux/kernel.h
+++ b/tools/virtio/linux/kernel.h
@@ -29,7 +29,6 @@
 #define READ                    0
 #define WRITE                   1
 
-typedef unsigned long long phys_addr_t;
 typedef unsigned long long dma_addr_t;
 typedef size_t __kernel_size_t;
 typedef unsigned int __wsum;
-- 
2.25.1


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

* Re: [PATCH] tools/virtio: drop phys_addr_t typedef
  2022-04-11  1:40 [PATCH] tools/virtio: drop phys_addr_t typedef Peng Fan (OSS)
@ 2022-04-11  8:52   ` Jason Wang
  0 siblings, 0 replies; 7+ messages in thread
From: Jason Wang @ 2022-04-11  8:52 UTC (permalink / raw)
  To: Peng Fan (OSS); +Cc: mst, virtualization, linux-kernel, Peng Fan

On Mon, Apr 11, 2022 at 9:39 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote:
>
> From: Peng Fan <peng.fan@nxp.com>
>
> With commit 884ee1e585ca ("tools/include: Add phys_addr_t to types.h"),
>
> When building virtio tools, there is a type conficting error:
>
> "
> ./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
>    32 | typedef unsigned long long phys_addr_t;
>       |                            ^~~~~~~~~~~
> In file included from /usr/include/linux/virtio_blk.h:28,
>                  from virtio-ivshmem-block.c:29:
> ../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’ was here
>    69 | typedef u32 phys_addr_t;
>       |             ^~~~~~~~~~~
> "
>
> Let's drop the typedef in tools/virtio/linux/kernel.h
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Acked-by: Jason Wang <jasowang@redhat.com>

> ---
>  tools/virtio/linux/kernel.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
> index 0b493542e61a..1d3248e3f270 100644
> --- a/tools/virtio/linux/kernel.h
> +++ b/tools/virtio/linux/kernel.h
> @@ -29,7 +29,6 @@
>  #define READ                    0
>  #define WRITE                   1
>
> -typedef unsigned long long phys_addr_t;
>  typedef unsigned long long dma_addr_t;
>  typedef size_t __kernel_size_t;
>  typedef unsigned int __wsum;
> --
> 2.25.1
>


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

* Re: [PATCH] tools/virtio: drop phys_addr_t typedef
@ 2022-04-11  8:52   ` Jason Wang
  0 siblings, 0 replies; 7+ messages in thread
From: Jason Wang @ 2022-04-11  8:52 UTC (permalink / raw)
  To: Peng Fan (OSS); +Cc: Peng Fan, virtualization, linux-kernel, mst

On Mon, Apr 11, 2022 at 9:39 AM Peng Fan (OSS) <peng.fan@oss.nxp.com> wrote:
>
> From: Peng Fan <peng.fan@nxp.com>
>
> With commit 884ee1e585ca ("tools/include: Add phys_addr_t to types.h"),
>
> When building virtio tools, there is a type conficting error:
>
> "
> ./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
>    32 | typedef unsigned long long phys_addr_t;
>       |                            ^~~~~~~~~~~
> In file included from /usr/include/linux/virtio_blk.h:28,
>                  from virtio-ivshmem-block.c:29:
> ../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’ was here
>    69 | typedef u32 phys_addr_t;
>       |             ^~~~~~~~~~~
> "
>
> Let's drop the typedef in tools/virtio/linux/kernel.h
>
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Acked-by: Jason Wang <jasowang@redhat.com>

> ---
>  tools/virtio/linux/kernel.h | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
> index 0b493542e61a..1d3248e3f270 100644
> --- a/tools/virtio/linux/kernel.h
> +++ b/tools/virtio/linux/kernel.h
> @@ -29,7 +29,6 @@
>  #define READ                    0
>  #define WRITE                   1
>
> -typedef unsigned long long phys_addr_t;
>  typedef unsigned long long dma_addr_t;
>  typedef size_t __kernel_size_t;
>  typedef unsigned int __wsum;
> --
> 2.25.1
>

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

* RE: [PATCH] tools/virtio: drop phys_addr_t typedef
  2022-04-11  8:52   ` Jason Wang
@ 2022-07-12  4:59     ` Peng Fan
  -1 siblings, 0 replies; 7+ messages in thread
From: Peng Fan @ 2022-07-12  4:59 UTC (permalink / raw)
  To: Jason Wang; +Cc: mst, virtualization, linux-kernel

> Subject: Re: [PATCH] tools/virtio: drop phys_addr_t typedef

Would anyone pick up this patch? Or any comments?

Thanks,
Peng.

> 
> On Mon, Apr 11, 2022 at 9:39 AM Peng Fan (OSS) <peng.fan@oss.nxp.com>
> wrote:
> >
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > With commit 884ee1e585ca ("tools/include: Add phys_addr_t to
> > types.h"),
> >
> > When building virtio tools, there is a type conficting error:
> >
> > "
> > ./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
> >    32 | typedef unsigned long long phys_addr_t;
> >       |                            ^~~~~~~~~~~
> > In file included from /usr/include/linux/virtio_blk.h:28,
> >                  from virtio-ivshmem-block.c:29:
> > ../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’
> was here
> >    69 | typedef u32 phys_addr_t;
> >       |             ^~~~~~~~~~~
> > "
> >
> > Let's drop the typedef in tools/virtio/linux/kernel.h
> >
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> 
> Acked-by: Jason Wang <jasowang@redhat.com>
> 
> > ---
> >  tools/virtio/linux/kernel.h | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
> > index 0b493542e61a..1d3248e3f270 100644
> > --- a/tools/virtio/linux/kernel.h
> > +++ b/tools/virtio/linux/kernel.h
> > @@ -29,7 +29,6 @@
> >  #define READ                    0
> >  #define WRITE                   1
> >
> > -typedef unsigned long long phys_addr_t;  typedef unsigned long long
> > dma_addr_t;  typedef size_t __kernel_size_t;  typedef unsigned int
> > __wsum;
> > --
> > 2.25.1
> >


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

* RE: [PATCH] tools/virtio: drop phys_addr_t typedef
@ 2022-07-12  4:59     ` Peng Fan
  0 siblings, 0 replies; 7+ messages in thread
From: Peng Fan @ 2022-07-12  4:59 UTC (permalink / raw)
  To: Jason Wang; +Cc: virtualization, linux-kernel, mst

> Subject: Re: [PATCH] tools/virtio: drop phys_addr_t typedef

Would anyone pick up this patch? Or any comments?

Thanks,
Peng.

> 
> On Mon, Apr 11, 2022 at 9:39 AM Peng Fan (OSS) <peng.fan@oss.nxp.com>
> wrote:
> >
> > From: Peng Fan <peng.fan@nxp.com>
> >
> > With commit 884ee1e585ca ("tools/include: Add phys_addr_t to
> > types.h"),
> >
> > When building virtio tools, there is a type conficting error:
> >
> > "
> > ./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
> >    32 | typedef unsigned long long phys_addr_t;
> >       |                            ^~~~~~~~~~~
> > In file included from /usr/include/linux/virtio_blk.h:28,
> >                  from virtio-ivshmem-block.c:29:
> > ../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’
> was here
> >    69 | typedef u32 phys_addr_t;
> >       |             ^~~~~~~~~~~
> > "
> >
> > Let's drop the typedef in tools/virtio/linux/kernel.h
> >
> > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> 
> Acked-by: Jason Wang <jasowang@redhat.com>
> 
> > ---
> >  tools/virtio/linux/kernel.h | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
> > index 0b493542e61a..1d3248e3f270 100644
> > --- a/tools/virtio/linux/kernel.h
> > +++ b/tools/virtio/linux/kernel.h
> > @@ -29,7 +29,6 @@
> >  #define READ                    0
> >  #define WRITE                   1
> >
> > -typedef unsigned long long phys_addr_t;  typedef unsigned long long
> > dma_addr_t;  typedef size_t __kernel_size_t;  typedef unsigned int
> > __wsum;
> > --
> > 2.25.1
> >

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

* Re: [PATCH] tools/virtio: drop phys_addr_t typedef
  2022-07-12  4:59     ` Peng Fan
@ 2022-07-12 12:30       ` Michael S. Tsirkin
  -1 siblings, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2022-07-12 12:30 UTC (permalink / raw)
  To: Peng Fan; +Cc: Jason Wang, virtualization, linux-kernel

Will do.

On Tue, Jul 12, 2022 at 04:59:44AM +0000, Peng Fan wrote:
> > Subject: Re: [PATCH] tools/virtio: drop phys_addr_t typedef
> 
> Would anyone pick up this patch? Or any comments?
> 
> Thanks,
> Peng.
> 
> > 
> > On Mon, Apr 11, 2022 at 9:39 AM Peng Fan (OSS) <peng.fan@oss.nxp.com>
> > wrote:
> > >
> > > From: Peng Fan <peng.fan@nxp.com>
> > >
> > > With commit 884ee1e585ca ("tools/include: Add phys_addr_t to
> > > types.h"),
> > >
> > > When building virtio tools, there is a type conficting error:
> > >
> > > "
> > > ./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
> > >    32 | typedef unsigned long long phys_addr_t;
> > >       |                            ^~~~~~~~~~~
> > > In file included from /usr/include/linux/virtio_blk.h:28,
> > >                  from virtio-ivshmem-block.c:29:
> > > ../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’
> > was here
> > >    69 | typedef u32 phys_addr_t;
> > >       |             ^~~~~~~~~~~
> > > "
> > >
> > > Let's drop the typedef in tools/virtio/linux/kernel.h
> > >
> > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > 
> > Acked-by: Jason Wang <jasowang@redhat.com>
> > 
> > > ---
> > >  tools/virtio/linux/kernel.h | 1 -
> > >  1 file changed, 1 deletion(-)
> > >
> > > diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
> > > index 0b493542e61a..1d3248e3f270 100644
> > > --- a/tools/virtio/linux/kernel.h
> > > +++ b/tools/virtio/linux/kernel.h
> > > @@ -29,7 +29,6 @@
> > >  #define READ                    0
> > >  #define WRITE                   1
> > >
> > > -typedef unsigned long long phys_addr_t;  typedef unsigned long long
> > > dma_addr_t;  typedef size_t __kernel_size_t;  typedef unsigned int
> > > __wsum;
> > > --
> > > 2.25.1
> > >
> 


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

* Re: [PATCH] tools/virtio: drop phys_addr_t typedef
@ 2022-07-12 12:30       ` Michael S. Tsirkin
  0 siblings, 0 replies; 7+ messages in thread
From: Michael S. Tsirkin @ 2022-07-12 12:30 UTC (permalink / raw)
  To: Peng Fan; +Cc: linux-kernel, virtualization

Will do.

On Tue, Jul 12, 2022 at 04:59:44AM +0000, Peng Fan wrote:
> > Subject: Re: [PATCH] tools/virtio: drop phys_addr_t typedef
> 
> Would anyone pick up this patch? Or any comments?
> 
> Thanks,
> Peng.
> 
> > 
> > On Mon, Apr 11, 2022 at 9:39 AM Peng Fan (OSS) <peng.fan@oss.nxp.com>
> > wrote:
> > >
> > > From: Peng Fan <peng.fan@nxp.com>
> > >
> > > With commit 884ee1e585ca ("tools/include: Add phys_addr_t to
> > > types.h"),
> > >
> > > When building virtio tools, there is a type conficting error:
> > >
> > > "
> > > ./linux/kernel.h:32:28: error: conflicting types for ‘phys_addr_t’
> > >    32 | typedef unsigned long long phys_addr_t;
> > >       |                            ^~~~~~~~~~~
> > > In file included from /usr/include/linux/virtio_blk.h:28,
> > >                  from virtio-ivshmem-block.c:29:
> > > ../include/linux/types.h:69:13: note: previous declaration of ‘phys_addr_t’
> > was here
> > >    69 | typedef u32 phys_addr_t;
> > >       |             ^~~~~~~~~~~
> > > "
> > >
> > > Let's drop the typedef in tools/virtio/linux/kernel.h
> > >
> > > Signed-off-by: Peng Fan <peng.fan@nxp.com>
> > 
> > Acked-by: Jason Wang <jasowang@redhat.com>
> > 
> > > ---
> > >  tools/virtio/linux/kernel.h | 1 -
> > >  1 file changed, 1 deletion(-)
> > >
> > > diff --git a/tools/virtio/linux/kernel.h b/tools/virtio/linux/kernel.h
> > > index 0b493542e61a..1d3248e3f270 100644
> > > --- a/tools/virtio/linux/kernel.h
> > > +++ b/tools/virtio/linux/kernel.h
> > > @@ -29,7 +29,6 @@
> > >  #define READ                    0
> > >  #define WRITE                   1
> > >
> > > -typedef unsigned long long phys_addr_t;  typedef unsigned long long
> > > dma_addr_t;  typedef size_t __kernel_size_t;  typedef unsigned int
> > > __wsum;
> > > --
> > > 2.25.1
> > >
> 

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

end of thread, other threads:[~2022-07-12 12:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-11  1:40 [PATCH] tools/virtio: drop phys_addr_t typedef Peng Fan (OSS)
2022-04-11  8:52 ` Jason Wang
2022-04-11  8:52   ` Jason Wang
2022-07-12  4:59   ` Peng Fan
2022-07-12  4:59     ` Peng Fan
2022-07-12 12:30     ` Michael S. Tsirkin
2022-07-12 12:30       ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.