linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [media] uapi/media.h: Use u32 for the number of graph objects
@ 2015-12-17 11:09 Mauro Carvalho Chehab
       [not found] ` <5672A69F.7020505@xs4all.nl>
  0 siblings, 1 reply; 5+ messages in thread
From: Mauro Carvalho Chehab @ 2015-12-17 11:09 UTC (permalink / raw)
  Cc: Mauro Carvalho Chehab, Linux Media Mailing List,
	Mauro Carvalho Chehab, linux-api-u79uwXL29TY76Z2rM5mHXA

While we need to keep a u64 alignment to avoid compat32 issues,
having the number of entities/pads/links/interfaces represented
by an u64 is incoherent with the ID number, with is an u32.

In order to make it coherent, change those quantities to u32.

Signed-off-by: Mauro Carvalho Chehab <mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
---
 include/uapi/linux/media.h | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/include/uapi/linux/media.h b/include/uapi/linux/media.h
index cacfceb0d81d..5dbb208e5451 100644
--- a/include/uapi/linux/media.h
+++ b/include/uapi/linux/media.h
@@ -330,16 +330,20 @@ struct media_v2_link {
 struct media_v2_topology {
 	__u64 topology_version;
 
-	__u64 num_entities;
+	__u32 num_entities;
+	__u32 reserved1;
 	__u64 ptr_entities;
 
-	__u64 num_interfaces;
+	__u32 num_interfaces;
+	__u32 reserved2;
 	__u64 ptr_interfaces;
 
-	__u64 num_pads;
+	__u32 num_pads;
+	__u32 reserved3;
 	__u64 ptr_pads;
 
-	__u64 num_links;
+	__u32 num_links;
+	__u32 reserved4;
 	__u64 ptr_links;
 };
 
-- 
2.5.0

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

end of thread, other threads:[~2015-12-17 15:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-17 11:09 [PATCH] [media] uapi/media.h: Use u32 for the number of graph objects Mauro Carvalho Chehab
     [not found] ` <5672A69F.7020505@xs4all.nl>
2015-12-17 12:45   ` Mauro Carvalho Chehab
     [not found]     ` <20151217104556.70d4f0f8-+RedX5hVuTR+urZeOPWqwQ@public.gmane.org>
2015-12-17 13:55       ` Arnd Bergmann
2015-12-17 14:58         ` Mauro Carvalho Chehab
     [not found]           ` <20151217125806.3f4f879e-+RedX5hVuTR+urZeOPWqwQ@public.gmane.org>
2015-12-17 15:20             ` Arnd Bergmann

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).