History

[media] uapi/media.h: Use u32 for the number of graph objects

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.

Mauro Carvalho Chehab committed 10 years ago

Commit 7c9d6731 parent ba0dd721 file · +8 −4Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/media.h+8−4
@@ -330,16 +330,20 @@ struct media_v2_link { · 329 unmodified lines
330330 struct media_v2_topology {
331331 __u64 topology_version;
332332
333− __u64 num_entities;
333+ __u32 num_entities;
334+ __u32 reserved1;
334335 __u64 ptr_entities;
335336
336− __u64 num_interfaces;
337+ __u32 num_interfaces;
338+ __u32 reserved2;
337339 __u64 ptr_interfaces;
338340
339− __u64 num_pads;
341+ __u32 num_pads;
342+ __u32 reserved3;
340343 __u64 ptr_pads;
341344
342− __u64 num_links;
345+ __u32 num_links;
346+ __u32 reserved4;
343347 __u64 ptr_links;
344348 };
345349

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t