[PATCH] list.h: Make xorg_list_init inline

Jamey Sharp jamey at minilop.net
Tue Mar 12 13:07:56 PDT 2013


Seems like a good plan to me.

Reviewed-by: Jamey Sharp <jamey at minilop.net>

On Tue, Mar 12, 2013 at 09:40:16AM -0700, Robert Morell wrote:
> Otherwise this file is emitted in every unit that includes it.
> 
> Signed-off-by: Robert Morell <rmorell at nvidia.com>
> ---
> 
> This reduces the size of a debug Xorg binary on my system by just under 1%.
> 
>  include/list.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/list.h b/include/list.h
> index 067c679..11de7c5 100644
> --- a/include/list.h
> +++ b/include/list.h
> @@ -119,7 +119,7 @@ struct xorg_list {
>   *
>   * @param The list to initialized.
>   */
> -static void
> +static inline void
>  xorg_list_init(struct xorg_list *list)
>  {
>      list->next = list->prev = list;
> -- 
> 1.8.1.5
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20130312/f02129e5/attachment.pgp>


More information about the xorg-devel mailing list