From patchwork Wed Apr 1 16:15:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141281 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 592E6BF4A6 for ; Wed, 1 Apr 2015 16:12:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6375720148 for ; Wed, 1 Apr 2015 16:12:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C3AF020351 for ; Wed, 1 Apr 2015 16:12:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF3F66E8CD; Wed, 1 Apr 2015 09:12:49 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by gabe.freedesktop.org (Postfix) with ESMTP id D6ED76E8CB for ; Wed, 1 Apr 2015 09:12:47 -0700 (PDT) Received: by wixm2 with SMTP id m2so38982173wix.0 for ; Wed, 01 Apr 2015 09:12:47 -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=lMitebro0efG4SuErtrcFpK+A/PCCARUfnW+8jFdTbg=; b=nCR/Cp04Hju8pTKvkMh3HdeadfjoZ/2MxUUgzYdW2QUDEyzosczFAuMKxt/tcQxRTI RrxNr2o4hbbQlQ5QMYZBtbHn5TXfEmkyar/bRsACOcyppIkj+XHuDhj8/rCzsDNVZqRM i56jXzOascL1sB0DuGG1o0uM+lHHmt3d25EqYh+e1hNK8qFWhOcgX+/uDicTkd5T2txQ QnqTRC4/PaC6zleUIIpu0QE7souBhDiHfXOslhQffL/sEJ/yFRv8FLlX3DLQaVn05mLq 8UceG65SZ0ddw5MuUHb6fjsvNpvxHGP/HPjUH336nnYoCuABFGU4w+T/I8wUkl5B2sFl u1gQ== X-Received: by 10.194.108.137 with SMTP id hk9mr82431465wjb.112.1427904767312; Wed, 01 Apr 2015 09:12:47 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id ge8sm3319498wjc.32.2015.04.01.09.12.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:46 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 17/24] libkms: annotate private symbols Date: Wed, 1 Apr 2015 17:15:28 +0100 Message-Id: <1427904935-14387-18-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1427904935-14387-1-git-send-email-emil.l.velikov@gmail.com> References: <1427904935-14387-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=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 Signed-off-by: Emil Velikov --- libkms/api.c | 3 +++ libkms/dumb.c | 2 +- libkms/exynos.c | 2 +- libkms/intel.c | 2 +- libkms/internal.h | 19 ++++++++++++------- libkms/linux.c | 4 ++-- libkms/nouveau.c | 2 +- libkms/radeon.c | 2 +- libkms/vmwgfx.c | 2 +- 9 files changed, 23 insertions(+), 15 deletions(-) diff --git a/libkms/api.c b/libkms/api.c index b512c42..a07a242 100644 --- a/libkms/api.c +++ b/libkms/api.c @@ -29,9 +29,12 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include #include #include + +#include "libdrm.h" #include "internal.h" int kms_create(int fd, struct kms_driver **out) diff --git a/libkms/dumb.c b/libkms/dumb.c index f9c16e1..e252d8c 100644 --- a/libkms/dumb.c +++ b/libkms/dumb.c @@ -190,7 +190,7 @@ dumb_bo_destroy(struct kms_bo *_bo) return 0; } -int +drm_private int dumb_create(int fd, struct kms_driver **out) { struct kms_driver *kms; diff --git a/libkms/exynos.c b/libkms/exynos.c index 1123482..db65f81 100644 --- a/libkms/exynos.c +++ b/libkms/exynos.c @@ -185,7 +185,7 @@ exynos_bo_destroy(struct kms_bo *_bo) return 0; } -int +drm_private int exynos_create(int fd, struct kms_driver **out) { struct kms_driver *kms; diff --git a/libkms/intel.c b/libkms/intel.c index 51a7fd2..a539df2 100644 --- a/libkms/intel.c +++ b/libkms/intel.c @@ -216,7 +216,7 @@ intel_bo_destroy(struct kms_bo *_bo) return 0; } -int +drm_private int intel_create(int fd, struct kms_driver **out) { struct kms_driver *kms; diff --git a/libkms/internal.h b/libkms/internal.h index f831b57..e7d5c46 100644 --- a/libkms/internal.h +++ b/libkms/internal.h @@ -29,6 +29,11 @@ #ifndef INTERNAL_H_ #define INTERNAL_H_ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "libdrm.h" #include "libkms.h" struct kms_driver @@ -62,18 +67,18 @@ struct kms_bo unsigned handle; }; -int linux_create(int fd, struct kms_driver **out); +drm_private int linux_create(int fd, struct kms_driver **out); -int vmwgfx_create(int fd, struct kms_driver **out); +drm_private int vmwgfx_create(int fd, struct kms_driver **out); -int intel_create(int fd, struct kms_driver **out); +drm_private int intel_create(int fd, struct kms_driver **out); -int dumb_create(int fd, struct kms_driver **out); +drm_private int dumb_create(int fd, struct kms_driver **out); -int nouveau_create(int fd, struct kms_driver **out); +drm_private int nouveau_create(int fd, struct kms_driver **out); -int radeon_create(int fd, struct kms_driver **out); +drm_private int radeon_create(int fd, struct kms_driver **out); -int exynos_create(int fd, struct kms_driver **out); +drm_private int exynos_create(int fd, struct kms_driver **out); #endif diff --git a/libkms/linux.c b/libkms/linux.c index 77a0bbe..06dbc42 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -39,9 +39,9 @@ #include #include #include - #include +#include "libdrm.h" #include "internal.h" #define PATH_SIZE 512 @@ -225,7 +225,7 @@ linux_from_udev(int fd, struct kms_driver **out) } #endif -int +drm_private int linux_create(int fd, struct kms_driver **out) { if (!dumb_create(fd, out)) diff --git a/libkms/nouveau.c b/libkms/nouveau.c index 228903f..7f57f21 100644 --- a/libkms/nouveau.c +++ b/libkms/nouveau.c @@ -198,7 +198,7 @@ nouveau_bo_destroy(struct kms_bo *_bo) return 0; } -int +drm_private int nouveau_create(int fd, struct kms_driver **out) { struct kms_driver *kms; diff --git a/libkms/radeon.c b/libkms/radeon.c index 9383a0a..f0d5db6 100644 --- a/libkms/radeon.c +++ b/libkms/radeon.c @@ -219,7 +219,7 @@ radeon_bo_destroy(struct kms_bo *_bo) return 0; } -int +drm_private int radeon_create(int fd, struct kms_driver **out) { struct kms_driver *kms; diff --git a/libkms/vmwgfx.c b/libkms/vmwgfx.c index bc04133..3c99ea3 100644 --- a/libkms/vmwgfx.c +++ b/libkms/vmwgfx.c @@ -185,7 +185,7 @@ vmwgfx_bo_destroy(struct kms_bo *_bo) return 0; } -int +drm_private int vmwgfx_create(int fd, struct kms_driver **out) { struct kms_driver *kms;