ERR_PTR pattern in phylib

David Miller davem at davemloft.net
Fri Sep 3 02:34:51 EST 2010


From: "Maciej W. Rozycki" <macro at linux-mips.org>
Date: Thu, 2 Sep 2010 16:20:34 +0100 (BST)

>  Arguably using a union here would make things cleaner and any reasonable 
> ABI will place small unions used as arguments or return values in 
> registers, but I'm not sure if the cost of the rewrite is worth the 

Well, sparc 32-bit's ABI for one is "not reasonable" and these return
values will always get stack slots and passed back by reference.


More information about the Linuxppc-dev mailing list