From patchwork Thu Apr 21 20:17:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 8903781 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 C2F84BF29F for ; Thu, 21 Apr 2016 20:16:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 00C2B20320 for ; Thu, 21 Apr 2016 20:16:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 352EF2026D for ; Thu, 21 Apr 2016 20:16:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 66C8E6ED92; 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 7E0386E1B5 for ; Thu, 21 Apr 2016 20:16:26 +0000 (UTC) Received: by mail-wm0-x236.google.com with SMTP id e201so99500746wme.0 for ; Thu, 21 Apr 2016 13:16:26 -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=GtbSa+ZiKdghz8bDvi07J/MoVhuaYyfZO2HgXx/7Ux0=; b=zCGQCeLtA99EnFX+Xj+H7mZmG9cwWSnePVxd68ILdh4Tvkoz54J3jN7RAjxfoPVbZp aQikJv8PkimnfPdChy6b/pMTEeNA9mFhA94eUpOKzCCR6y9F9aqs+Ql2zxvF1AQBfovr Kpy7WNicJGdgoeZIochueI63SzZZUPtTUX8xCpk/bQDMcRo2aipBf8z84vMLPw0BK5HE ShIsmpCbvQvl2a+rMCC3tpNHxu4rp85AIaJBVfvM5JNq5tOZUgaaJIG1RAX52HaOscc/ J8h43/ApGKzN5XiOym8YaaFfbD+tsWmRYLByIIYO8fx6C2IoGdF1ZL+Bj9x5ZN/XrZOV c0dg== 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=GtbSa+ZiKdghz8bDvi07J/MoVhuaYyfZO2HgXx/7Ux0=; b=PpA4xShuIBHDQlJY6aFymgE7T4iYwgGDYDj0lapiyQxckwLZcZ+YLpulMKm0mv7koG sdEf8WkV3ugCmEvmt1SJeB6PIKPdQmDCxmONKU/2RNto00NPwb5RP8pmz/gF3f3EJ9vS z/4iD636ZMDfRtLipj8RYGI/vQ0PBwLeyZi17O8FC6md17xWNWMSpfj5VN1bJgdAFSAh Ea6t0QSNeVh4yLPL2KgVHCrvrYVsOTVHPF0c7ZEBEr9khZTrI0kiEWIzJr/7zRE8d7Zq 4D4WPKiJKQFuxBTsWexGsudUWZy9jDt6nDID+60rvqqQ+zKYYcWswGRAaLdUtPAKfvVi 3F+A== X-Gm-Message-State: AOPr4FXpsQUSOlEZXIC5NjCmbZMDvK3XGylkgF4p++7oWu96JaSfQJ6RWRXO+yJD9dxczw== X-Received: by 10.194.47.9 with SMTP id z9mr16330539wjm.164.1461269784955; Thu, 21 Apr 2016 13:16:24 -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.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Apr 2016 13:16:24 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 06/24] drm/i810: add extern C guard for the UAPI header Date: Thu, 21 Apr 2016 21:17:19 +0100 Message-Id: <1461269857-12813-7-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: Daniel Vetter , 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: Daniel Vetter Signed-off-by: Emil Velikov --- Daniel, Based on earlier chat that his file has never been used by userspace, should we just move it for internal usage (to include/drm) ? Regards, Emil --- include/uapi/drm/i810_drm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/uapi/drm/i810_drm.h b/include/uapi/drm/i810_drm.h index bdb0287..6e6cf86 100644 --- a/include/uapi/drm/i810_drm.h +++ b/include/uapi/drm/i810_drm.h @@ -3,6 +3,10 @@ #include "drm.h" +#if defined(__cplusplus) +extern "C" { +#endif + /* WARNING: These defines must be the same as what the Xserver uses. * if you change them, you must change the defines in the Xserver. */ @@ -280,4 +284,8 @@ typedef struct _drm_i810_mc { unsigned int last_render; /* Last Render Request */ } drm_i810_mc_t; +#if defined(__cplusplus) +} +#endif + #endif /* _I810_DRM_H_ */