From patchwork Thu Apr 21 20:17:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 8903761 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 6F018BF29F for ; Thu, 21 Apr 2016 20:16:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9E7132026F for ; Thu, 21 Apr 2016 20:16:41 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id BFC762034E for ; Thu, 21 Apr 2016 20:16:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CE1F56ED97; Thu, 21 Apr 2016 20:16:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0EF506E1B5 for ; Thu, 21 Apr 2016 20:16:23 +0000 (UTC) Received: by mail-wm0-x236.google.com with SMTP id n3so150677690wmn.0 for ; Thu, 21 Apr 2016 13:16:22 -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=bp+lzEHQM4cSm3lNvTQqkVkTTFPDs3F0tOwnpzeNbG8=; b=wSYGVwJ+EaD00dlH7/+p1LQAxkU0Gj6d4hddUAE94j0fHQxcxMiV7Iwd8tHHPshntA rrGoIkWB9q0sLqCiHxyLSDijIdVDBWwsyBNo2BHt+frh2FHc0Ztp+HrMwM3GXGZ3f06t 7bZSyClfM1FsBXxY2DoduwqKvQ63YO/DxOuT0g/S/6MYUWF/S5lbc/YOJWxImOFAKFiy FWk/0nxaWlKiA/lejq20rgInD5WOIPP6OoZOQ7Ef6ZfdX+68Snr+yOotTL8t99CZ2wJG pX5zl9UnE0fNjOzJTj0p7h7g+mzCBhSl0pIvmNoQcLgVG6ld6o6XWPFF67thTHs5DJyd JQqg== 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=bp+lzEHQM4cSm3lNvTQqkVkTTFPDs3F0tOwnpzeNbG8=; b=P82yPXBIlUfJDvYX1O6HNwSfNPlUFV6AP1bnXRlNZtCzxTFsu/L2LtqPaSLUd4jdgm 2FGaf9LQATjB9TxFnTB7zJHPXN1Iq2NkGLPLS7lyxJ3m99mEctB1lS8DLFfOKRbKAAoF /LFsJWrmIoUzxiFyJkTPFs9inmpXcITHjq/osSNsxSg0qMpOc4TSsq6YrwtxoVqQfe0G 8b/E0zA0xFXm3WOVex1Yoed9VV1GWtKzdHBBDlXCzYFZ5Z26uFrbZEhFTi/XL1AWCY78 wtxxUAf/l0tEJ4GLAQy3x5Ka+s+igswijxqV906Uw/KdEIz/nfurwy6/HOmsOM+1F2+4 sShA== X-Gm-Message-State: AOPr4FWTzbPn51TGcsKJvcjx6H3mdUblTWJwt/MLaj28n6hQFKH/h0LmbmEi4iPLxrpn2w== X-Received: by 10.194.134.134 with SMTP id pk6mr16696885wjb.176.1461269781481; Thu, 21 Apr 2016 13:16:21 -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.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 13:16:20 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 02/24] drm/armada: add extern C guard for the UAPI header Date: Thu, 21 Apr 2016 21:17:15 +0100 Message-Id: <1461269857-12813-3-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: Russell King , 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 Cc: Russell King Signed-off-by: Emil Velikov --- include/uapi/drm/armada_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/armada_drm.h b/include/uapi/drm/armada_drm.h index 6de7f01..72e326f 100644 --- a/include/uapi/drm/armada_drm.h +++ b/include/uapi/drm/armada_drm.h @@ -11,6 +11,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + #define DRM_ARMADA_GEM_CREATE 0x00 #define DRM_ARMADA_GEM_MMAP 0x02 #define DRM_ARMADA_GEM_PWRITE 0x03 @@ -44,4 +48,8 @@ struct drm_armada_gem_pwrite { #define DRM_IOCTL_ARMADA_GEM_PWRITE \ ARMADA_IOCTL(IOW, GEM_PWRITE, gem_pwrite) +#if defined(__cplusplus) +} +#endif + #endif