From patchwork Wed Mar 25 01:01:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 6087101 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 0D1E29F318 for ; Wed, 25 Mar 2015 01:01:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4566420268 for ; Wed, 25 Mar 2015 01:01:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2EE42202A1 for ; Wed, 25 Mar 2015 01:01:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D63C6E7C2; Tue, 24 Mar 2015 18:01:10 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ie0-f176.google.com (mail-ie0-f176.google.com [209.85.223.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 378296E7C2 for ; Tue, 24 Mar 2015 18:01:09 -0700 (PDT) Received: by iedfl3 with SMTP id fl3so12776501ied.1 for ; Tue, 24 Mar 2015 18:01:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=GYR3D51k7CBg5JfeAXirN5F8p5rgpnJejzX4D8VY5Es=; b=JhqmIfRnv+MzyOGuRjm3QbYJgfhH6bQble4e1Tbmkl6EC3GjpphcYJv5wsxgjbNrIw tg576w5ZhUirhBRsSsRmkwKXyqYFZNOIVVkmyXxYXR26VjYxl3M3sT/nuLpZaCx6bwkO Ap8HtEnI7dCsQDdENE19Aoq44YZaeRu+hB6HU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GYR3D51k7CBg5JfeAXirN5F8p5rgpnJejzX4D8VY5Es=; b=IfCcWPdk3FNvn6FLyt1eOGx6iH6fF3XcjnsZgwK2KQAjEjER/6zMtxZSOC9ZDTU2tW LM19GxIvcAsYf7LPf6J/Bk4VumFKXq9jrnlulnsHA/fgO9ZUb6p30DZg9kyaP9USZfOM pmK/ogUrPppva6kyPscp1gPEOndR5Akw5SvMbynjQ2Oxp8fvn7GcWoDjRf7w6v8pJsRj p80uzVVRG5UeNrXtgHPLC9nzlH6Xa0RuxReRKCxTGFHAPFHkzLIAUA4xLudrSsm3M03Z P4uoBfCoxpEHSi142rFhu7NWXg0G3tmvLhyV4HHAjvYXdED/8nkhF4PdHZ5KdGATXKkW +EMA== X-Gm-Message-State: ALoCoQnl3itRbsRKt3fw2sJ2TXrXVizEqjl0V+GfdGN0kfbw8mv8q3inyr53JSYh3M2bRrl8WB0h X-Received: by 10.107.134.219 with SMTP id q88mr10298469ioi.27.1427245268900; Tue, 24 Mar 2015 18:01:08 -0700 (PDT) Received: from djkurtzt530-glaptop.corp.google.com ([172.19.29.174]) by mx.google.com with ESMTPSA id qs3sm866098igb.8.2015.03.24.18.01.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Mar 2015 18:01:08 -0700 (PDT) From: Daniel Kurtz To: dri-devel@lists.freedesktop.org, Rob Clark Subject: [PATCH] xf86drmMode.h: inline -> __inline for use with gcc -std=c89 -pedantic Date: Tue, 24 Mar 2015 18:01:02 -0700 Message-Id: <1427245262-28865-1-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c Cc: Emil Velikov 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_SIGNED, 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 Unfortunately, there are some users of libdrm installed headers that like to be built with -std=c89 -pedantic, which does not like "inline". However, __inline works. Signed-off-by: Daniel Kurtz Reviewed-by: Emil Velikov --- xf86drmMode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drmMode.h b/xf86drmMode.h index 856a6bb..2d30184 100644 --- a/xf86drmMode.h +++ b/xf86drmMode.h @@ -240,7 +240,7 @@ typedef struct _drmModeProperty { uint32_t *blob_ids; /* store the blob IDs */ } drmModePropertyRes, *drmModePropertyPtr; -static inline int drm_property_type_is(drmModePropertyPtr property, +static __inline int drm_property_type_is(drmModePropertyPtr property, uint32_t type) { /* instanceof for props.. handles extended type vs original types: */