[PATCH] list.h: Make xorg_list_init inline

Robert Morell rmorell at nvidia.com
Tue Mar 12 09:40:16 PDT 2013


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



More information about the xorg-devel mailing list