From patchwork Mon Feb 23 14:56:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 5865781 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E7F8C9F399 for ; Mon, 23 Feb 2015 14:53:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FC6D20635 for ; Mon, 23 Feb 2015 14:53:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4E8722060E for ; Mon, 23 Feb 2015 14:53:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2BD06E41C; Mon, 23 Feb 2015 06:53:46 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by gabe.freedesktop.org (Postfix) with ESMTP id BA2B86E424 for ; Mon, 23 Feb 2015 06:53:44 -0800 (PST) Received: by mail-wi0-f181.google.com with SMTP id r20so17631255wiv.2 for ; Mon, 23 Feb 2015 06:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mk2d4WMQu1bOC0NUv13MazZ3DPc6DWNurZFuMNOO9h4=; b=nge5Lv+o48ZMuzQHw6IrDUiGnHrsXMSfRkyn9qvJq6V4MRziIoOpWoMYP2iVYR3gVF VIaVfppKdJlLIUgETOoBAngJD1KyKPSKnEYugXW0Av5NMP9DQxoaZg9tnzrRfPmXN/iT WFlTAVNfv8BT7gr+uwS94DlvSxX7Ert1UY9tNYKoCRKOOecmYv/C6u66ANGRQAoLqzTe JeUAl9vGLCi+oQBacLdi17XdbRUnziIf2OOzRlrae0l1Bl4OfE4uPp+tP35zk0BCqI8i ut5HiB5far/PZs6EGfgPudSDZC1mQnUCGWb46A8fn89QC2AZqc16LqvmEqGqGLrWhcSi CMmQ== X-Received: by 10.194.63.172 with SMTP id h12mr3696060wjs.48.1424703224049; Mon, 23 Feb 2015 06:53:44 -0800 (PST) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id jg3sm16240799wid.0.2015.02.23.06.53.42 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Feb 2015 06:53:43 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 4/4] tests/radeon: set the list* functions as inline Date: Mon, 23 Feb 2015 14:56:35 +0000 Message-Id: <1424703395-7596-5-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.0 In-Reply-To: <1424703395-7596-1-git-send-email-emil.l.velikov@gmail.com> References: <1424703395-7596-1-git-send-email-emil.l.velikov@gmail.com> Cc: Jerome Glisse , emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To silence the chatty compiler. As a future work we may want to merge these with libdrm_lists.h Cc: Jerome Glisse Signed-off-by: Emil Velikov --- tests/radeon/list.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/radeon/list.h b/tests/radeon/list.h index 305c903..27e0761 100644 --- a/tests/radeon/list.h +++ b/tests/radeon/list.h @@ -44,13 +44,13 @@ struct list_head struct list_head *next; }; -static void list_inithead(struct list_head *item) +static inline void list_inithead(struct list_head *item) { item->prev = item; item->next = item; } -static void list_add(struct list_head *item, struct list_head *list) +static inline void list_add(struct list_head *item, struct list_head *list) { item->prev = list; item->next = list->next; @@ -58,7 +58,7 @@ static void list_add(struct list_head *item, struct list_head *list) list->next = item; } -static void list_addtail(struct list_head *item, struct list_head *list) +static inline void list_addtail(struct list_head *item, struct list_head *list) { item->next = list; item->prev = list->prev; @@ -66,7 +66,7 @@ static void list_addtail(struct list_head *item, struct list_head *list) list->prev = item; } -static void list_replace(struct list_head *from, struct list_head *to) +static inline void list_replace(struct list_head *from, struct list_head *to) { to->prev = from->prev; to->next = from->next; @@ -74,13 +74,13 @@ static void list_replace(struct list_head *from, struct list_head *to) from->prev->next = to; } -static void list_del(struct list_head *item) +static inline void list_del(struct list_head *item) { item->prev->next = item->next; item->next->prev = item->prev; } -static void list_delinit(struct list_head *item) +static inline void list_delinit(struct list_head *item) { item->prev->next = item->next; item->next->prev = item->prev;