From patchwork Thu Apr 21 20:17:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 8903791 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BE153BF29F for ; Thu, 21 Apr 2016 20:16:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7518220320 for ; Thu, 21 Apr 2016 20:16:46 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id B667B2026F for ; Thu, 21 Apr 2016 20:16:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 48A316ED9C; Thu, 21 Apr 2016 20:16:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD3F46E1B5 for ; Thu, 21 Apr 2016 20:16:28 +0000 (UTC) Received: by mail-wm0-x22d.google.com with SMTP id e201so99501507wme.0 for ; Thu, 21 Apr 2016 13:16:28 -0700 (PDT) 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=HLEOFdGBLrG5noidPrCv6LafDrXbSEMf5t9K/bXj//8=; b=i8/THLHnyBDtRzwcDTpNbcIZI5X9H9JpqRb1NEz3I+mWs9dmen8fKcAJLNX/1kY9nS HMjlcMlV9VkTvyR5+RviZqW8cUejYpf3t4VItsFnoHxDg9a4zGphS1i7nwpDWI7Abwe7 qoMTezu+hTfCG8f2VHqaMjb1YJri0pB0m0SZSzCNESFArLkKMvC+wCYQNmesve2twzkS kkNfdZYCYzXnlzTzksWZv8foF2tGzcpXo/3WMv84FP1VhEL1zMEOyX7StKrgveAt+1Nw hj35i76/Mld+i9GtkEO6UgoIJpVDMqvDBHrhyI3UFdOmgonbUNUV+ofqEhmsOGFT9rbK 0gQA== 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:in-reply-to :references; bh=HLEOFdGBLrG5noidPrCv6LafDrXbSEMf5t9K/bXj//8=; b=jXrc/j9YRWmpqjTyKwDVHctEs8aHRtMa2DQeaxxPtXuPjTd9ItH2FdrHsbCJ70a/kq voKWnPRFFzX+DwuXcWfub9mjcCeLlDKAOh9fWXc+i7ZhoXyWHWIkxnEMB/d0Vae1MeCn zpNbKn4msEgyTuRLkJFxdJNjwdYPP3MaF+q1pWxqSVhjeql9bpAMSvFvDmOYpCNMZfht osJk9JNdzRTZX2od1XnpDPnrvJKchszjoXREbMfSSjhWePqrZh31iJuvSrlYwWf7QuQJ cHoQjpR7T8sPuO7zSepNy97BDY3ss1ZtE1iJOduJN8+odtkQZvip4+HADxNRp+VRtZWg NsCw== X-Gm-Message-State: AOPr4FVgBmAGU6SVX9Mk6Rzp0WMET41oW0WIegX6R9mpsc3GdEW6PW7vWx4wa8gXCPNhZg== X-Received: by 10.28.150.193 with SMTP id y184mr18594523wmd.41.1461269786973; Thu, 21 Apr 2016 13:16:26 -0700 (PDT) Received: from arch-laptop.localdomain (cpc98192-croy26-2-0-cust395.19-2.cable.virginm.net. [82.32.159.140]) by smtp.gmail.com with ESMTPSA id ry15sm4486004wjb.19.2016.04.21.13.16.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 13:16:26 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 08/24] drm/mga: add extern C guard for the UAPI header Date: Thu, 21 Apr 2016 21:17:21 +0100 Message-Id: <1461269857-12813-9-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1461269857-12813-1-git-send-email-emil.l.velikov@gmail.com> References: <1461269857-12813-1-git-send-email-emil.l.velikov@gmail.com> Cc: 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=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Signed-off-by: Emil Velikov --- include/uapi/drm/mga_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/mga_drm.h b/include/uapi/drm/mga_drm.h index fca8170..8c43375 100644 --- a/include/uapi/drm/mga_drm.h +++ b/include/uapi/drm/mga_drm.h @@ -37,6 +37,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + /* WARNING: If you change any of these defines, make sure to change the * defines in the Xserver file (mga_sarea.h) */ @@ -416,4 +420,8 @@ typedef struct drm_mga_getparam { void __user *value; } drm_mga_getparam_t; +#if defined(__cplusplus) +} +#endif + #endif