Here are patches which make major()/minor() return a
32-bit value again, which avoids 64-bit arithmetics
where major and minor numbers are used as array
indices. This would also make sure that device
unit numbers in drivers are still plain integers,
so no PRI64s are needed to print out device instances.
I've introduced new type names for this. This doesn't
make a difference technically but serves as a kind
of comment. (Some OSes have this too, or major_t/minor_t,
so the idea is not that exotic.)
What do you think?
best regards
Matthias
-------------------------------------------------------------------
-------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt
-------------------------------------------------------------------
-------------------------------------------------------------------
<devmaj.txt>