From patchwork Wed Apr 1 16:15:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6141261 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F30C39F399 for ; Wed, 1 Apr 2015 16:12:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F7CE20351 for ; Wed, 1 Apr 2015 16:12:49 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4C69920154 for ; Wed, 1 Apr 2015 16:12:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 784CA6E8CA; Wed, 1 Apr 2015 09:12:46 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F9F96E8CE for ; Wed, 1 Apr 2015 09:12:45 -0700 (PDT) Received: by widdi4 with SMTP id di4so50646447wid.0 for ; Wed, 01 Apr 2015 09:12:44 -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=g9fL+EuDsczJzgyEldiQhgpRGCHGfK2bBHox2+NSqeA=; b=PFPPObCS2KYzrNQRrHuiITIIb/+iPQkQhm7g6rpo6A6qmT8uXY2BBy5ec5jIg+Ydxj yBSeuqnP8y0SsOPmPqn3gF+k2pKeBizm7e7b3bmV7jSEXFLbiuti+kDSwmwV6uLsdpKB +BoU7I8LN7KfYek1z91Lc4PoTzD4VF6cdCsxKBfo7DMttb/ZU0BX21vnIr4NvTsLK81L deQ5d/0V9gsUSBDPEqUCqse3KPsXJe2CkHaSYg93xJPbFsCOv0EgAYbF40ojGOrlisxp /RbYURMEe1rJlHS5NQmcQvx3t+0qTJ1O4nYZUbYxCKxPRdCXcuCNI7XaodLAew6O+c8m wS3w== X-Received: by 10.180.108.233 with SMTP id hn9mr16317817wib.73.1427904764385; Wed, 01 Apr 2015 09:12:44 -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.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 09:12:43 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 15/24] nouveau: annotate the private symbols Date: Wed, 1 Apr 2015 17:15:26 +0100 Message-Id: <1427904935-14387-16-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, 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=-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 They are less and easier to track than the public ones. The macro drm_public will be going away by the end of the series. Cc: Maarten Lankhorst Cc: Ben Skeggs Signed-off-by: Emil Velikov --- nouveau/abi16.c | 14 +++++++------- nouveau/nouveau.c | 2 +- nouveau/private.h | 18 +++++++++--------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/nouveau/abi16.c b/nouveau/abi16.c index ae13821..538f3a7 100644 --- a/nouveau/abi16.c +++ b/nouveau/abi16.c @@ -33,7 +33,7 @@ #include "private.h" -int +drm_private int abi16_chan_nv04(struct nouveau_object *obj) { struct nouveau_device *dev = (struct nouveau_device *)obj->parent; @@ -54,7 +54,7 @@ abi16_chan_nv04(struct nouveau_object *obj) return 0; } -int +drm_private int abi16_chan_nvc0(struct nouveau_object *obj) { struct nouveau_device *dev = (struct nouveau_device *)obj->parent; @@ -75,7 +75,7 @@ abi16_chan_nvc0(struct nouveau_object *obj) return 0; } -int +drm_private int abi16_chan_nve0(struct nouveau_object *obj) { struct nouveau_device *dev = (struct nouveau_device *)obj->parent; @@ -101,7 +101,7 @@ abi16_chan_nve0(struct nouveau_object *obj) return 0; } -int +drm_private int abi16_engobj(struct nouveau_object *obj) { struct drm_nouveau_grobj_alloc req = { @@ -120,7 +120,7 @@ abi16_engobj(struct nouveau_object *obj) return 0; } -int +drm_private int abi16_ntfy(struct nouveau_object *obj) { struct nv04_notify *ntfy = obj->data; @@ -141,7 +141,7 @@ abi16_ntfy(struct nouveau_object *obj) return 0; } -void +drm_private void abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info) { struct nouveau_bo_priv *nvbo = nouveau_bo(bo); @@ -175,7 +175,7 @@ abi16_bo_info(struct nouveau_bo *bo, struct drm_nouveau_gem_info *info) } } -int +drm_private int abi16_bo_init(struct nouveau_bo *bo, uint32_t alignment, union nouveau_bo_config *config) { diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c index 2d95b74..5c8a0ec 100644 --- a/nouveau/nouveau.c +++ b/nouveau/nouveau.c @@ -45,7 +45,7 @@ #include "private.h" #ifdef DEBUG -uint32_t nouveau_debug = 0; +drm_private uint32_t nouveau_debug = 0; static void debug_init(char *args) diff --git a/nouveau/private.h b/nouveau/private.h index bf9db04..74d604e 100644 --- a/nouveau/private.h +++ b/nouveau/private.h @@ -10,7 +10,7 @@ #include "nouveau.h" #ifdef DEBUG -uint32_t nouveau_debug; +drm_private uint32_t nouveau_debug; #define dbg_on(lvl) (nouveau_debug & (1 << lvl)) #define dbg(lvl, fmt, args...) do { \ if (dbg_on((lvl))) \ @@ -114,13 +114,13 @@ int nouveau_device_open_existing(struct nouveau_device **, int, int, drm_context_t); /* abi16.c */ -int abi16_chan_nv04(struct nouveau_object *); -int abi16_chan_nvc0(struct nouveau_object *); -int abi16_chan_nve0(struct nouveau_object *); -int abi16_engobj(struct nouveau_object *); -int abi16_ntfy(struct nouveau_object *); -void abi16_bo_info(struct nouveau_bo *, struct drm_nouveau_gem_info *); -int abi16_bo_init(struct nouveau_bo *, uint32_t alignment, - union nouveau_bo_config *); +drm_private int abi16_chan_nv04(struct nouveau_object *); +drm_private int abi16_chan_nvc0(struct nouveau_object *); +drm_private int abi16_chan_nve0(struct nouveau_object *); +drm_private int abi16_engobj(struct nouveau_object *); +drm_private int abi16_ntfy(struct nouveau_object *); +drm_private void abi16_bo_info(struct nouveau_bo *, struct drm_nouveau_gem_info *); +drm_private int abi16_bo_init(struct nouveau_bo *, uint32_t alignment, + union nouveau_bo_config *); #endif