[PATCH 1/2] wrapper: rename offset in offset_devp().

Stephen Rothwell sfr at canb.auug.org.au
Wed Dec 12 15:45:28 EST 2007


On Tue, 11 Dec 2007 15:23:04 -0600 Scott Wood <scottwood at freescale.com> wrote:
>
>  #define offset_devp(off)	\
>  	({ \
> -		int offset = (off); \
> -		check_err(offset) ? NULL : (void *)(offset+1); \
> +		int _offset = (off); \
> +		check_err(_offset) ? NULL : (void *)(_offset+1); \
>  	})

Just wondering if this could be a static inline function?

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20071212/938d5ea8/attachment.pgp>


More information about the Linuxppc-dev mailing list