From patchwork Thu Apr 21 20:17:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 8903801 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 15C1DBF440 for ; Thu, 21 Apr 2016 20:16:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4944F2034C for ; Thu, 21 Apr 2016 20:16:47 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7B4402034E for ; Thu, 21 Apr 2016 20:16:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C16C96EDA1; 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-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 547AF6ED91 for ; Thu, 21 Apr 2016 20:16:30 +0000 (UTC) Received: by mail-wm0-x22b.google.com with SMTP id v188so258746455wme.1 for ; Thu, 21 Apr 2016 13:16:30 -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=Fp/FXBco9qwqhjlgF30M+ykb3S+G8dmRgyxbcafYf6E=; b=qPSRC+hNDL9aobsl5iGaCdELV7klIRK7HedAKzcc2sGFGs/yW8s2sQ11JEvd3qIZpi fTHuDeyvC22gxL6g8YhUHdgR3JcRKpEkCTGCF0VfqByiXPpnhoUJJXKCbiOrqRu1lD8U zb5//6nqCnLy9ZiqAQWfCw59PsOhQmCYA69NauE3tPsY3n1uefbkU5bU293pAP6lQ+kq CZewLzx0THLnnxoP9B38NwbgRDQGwGSwyTgW+gYeLL9d8x7TUocqpo+iuPeYH3Ywpcof KOotNCnBhFlv4coNJOZGzAf1x4fswJFOSb5YegkHyJf+ucFlEitWLYJdMsmhx6S+euRV r0oQ== 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=Fp/FXBco9qwqhjlgF30M+ykb3S+G8dmRgyxbcafYf6E=; b=mHNBjCBizJwZoLFosl/mnLCkgertUcrDbIa3GF1TTt591RWn8TsSSUR/fPTfr+/JtK EUCfhY3YGCYSirnq3kYZ/wSuht1/HHgLzKV6tsq74Gd7IDQvkgY9zJRAbt5SAy9hG2AL a7Eh5B5QR3z+lXjk2QdDnjebvX5pC91ZZjz2NUkHP0BXScT6HYigG+6ne+RKGVAdo03g WUWQKzLfxv5Q/298ihN73hFHrmAM4EsbS3yLQzgaN7j1Na8DLeJXafPjXeV731i0uKqJ RLi0dM2SGey6+cKkPbKw02v+GojG0T0A8OcYeEF7o+Kf9b9ZUGAMwFRy1FotF31uey4T GRbg== X-Gm-Message-State: AOPr4FUknRItLne/utFm4w+k7UpA/xiTOxjGdLYfHm5llRndECATmgKgyZON/ykKbXzVOQ== X-Received: by 10.194.186.242 with SMTP id fn18mr17517162wjc.65.1461269788788; Thu, 21 Apr 2016 13:16:28 -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.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 13:16:28 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 10/24] drm/nouveau: add extern C guard for the UAPI header Date: Thu, 21 Apr 2016 21:17:23 +0100 Message-Id: <1461269857-12813-11-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, Ben Skeggs 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 Cc: Ben Skeggs Signed-off-by: Emil Velikov --- include/uapi/drm/nouveau_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/nouveau_drm.h b/include/uapi/drm/nouveau_drm.h index 500d82a..8d2dc05 100644 --- a/include/uapi/drm/nouveau_drm.h +++ b/include/uapi/drm/nouveau_drm.h @@ -29,6 +29,10 @@ #include +#if defined(__cplusplus) +extern "C" { +#endif + #define NOUVEAU_GEM_DOMAIN_CPU (1 << 0) #define NOUVEAU_GEM_DOMAIN_VRAM (1 << 1) #define NOUVEAU_GEM_DOMAIN_GART (1 << 2) @@ -141,4 +145,8 @@ struct drm_nouveau_gem_cpu_fini { #define DRM_IOCTL_NOUVEAU_GEM_CPU_FINI DRM_IOW (DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_CPU_FINI, struct drm_nouveau_gem_cpu_fini) #define DRM_IOCTL_NOUVEAU_GEM_INFO DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GEM_INFO, struct drm_nouveau_gem_info) +#if defined(__cplusplus) +} +#endif + #endif /* __NOUVEAU_DRM_H__ */