From patchwork Thu May 29 17:25:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 4266671 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1940E9F313 for ; Thu, 29 May 2014 17:26:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 380472012B for ; Thu, 29 May 2014 17:26:11 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id EDA172011D for ; Thu, 29 May 2014 17:26:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AAB166E024; Thu, 29 May 2014 10:26:08 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 4AC296E024 for ; Thu, 29 May 2014 10:26:07 -0700 (PDT) Received: by mail-wi0-f170.google.com with SMTP id bs8so5419395wib.3 for ; Thu, 29 May 2014 10:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id; bh=7UZMYuRWfWArxx4fZKixOFVjke48o9PJmmI+Qv1fmdk=; b=HLTSb9p+92emPevBdx8nnxy9LtfCI76LFq6uUO5uOVbN4Be32DKx/XDchypZ09Yd8Q lpwqNYgnq4lK/1pu2zRJjxKs0R7dgj9yTOwz4GMQVC59j6GeQNWbZDE0hlp8eH8qhQC4 oBPF8jg0t5mAp9/FHg2H+TSwW3p0seBmln3xI= 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; bh=7UZMYuRWfWArxx4fZKixOFVjke48o9PJmmI+Qv1fmdk=; b=DOMhQFU7/sbcbv1HSYbO55xta40mShWSGuRQxe0bQpMCth8VaZRObCoukAM5A8/WF6 6+e0Y2eY8JyLCXmCI32vHsyqAQX5qxJCHHPmylE13KMx22dNXUUERnHCr985lkrD8lmT DDYNZY5dVnPSqAdLWOtV0RyWWt0TzbzXBSj6lFpwZ3c9EaPcia2SsqTJOsr7hVTZ0ud6 xhQzMTHGloqdEhEU/yLhiS7cwsYWA7CAolp0zX19pTRH2swvmA8sDUkMQ52i0LX/4V4q 3esoUStreUmQKT6bFUznmcvU44MbR2jDgu8Aicj6Qlazo/KtyKNd+7trqMVhkqovQyOs pBOg== X-Gm-Message-State: ALoCoQmhqSCWfrAJRvPVYhbyPIXk0vliajwe1ARxr9kqwCsWVNbN3r5yMV5mUtiNT/FdJlugh6Hz X-Received: by 10.180.78.71 with SMTP id z7mr13937628wiw.14.1401384363166; Thu, 29 May 2014 10:26:03 -0700 (PDT) Received: from phenom.ffwll.local (84-73-67-144.dclient.hispeed.ch. [84.73.67.144]) by mx.google.com with ESMTPSA id bn7sm3252396wjc.7.2014.05.29.10.26.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 May 2014 10:26:02 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH] drm: Don't export internal module variables Date: Thu, 29 May 2014 19:25:55 +0200 Message-Id: <1401384355-22519-1-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.9.2 Cc: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, 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 Drivers really have no business touching these. Noticed because exynose _did_ touch the vblank off delay, which could potentially affect other drivers. drm_debug is an exception since it's used in macros and inline functions. v2: Drop bonghits changes. Note to self: Don't submit patches before first coffee. Cc: Inki Dae Signed-off-by: Daniel Vetter Acked-by: Alex Deucher Reviewed-by: David Herrmann Reviewed-by: David Herrmann --- drivers/gpu/drm/drm_stub.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- 3 files changed, 10 deletions(-) diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 3727ac8bc310..998782a88520 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c @@ -43,17 +43,13 @@ unsigned int drm_debug = 0; /* 1 to enable debug output */ EXPORT_SYMBOL(drm_debug); unsigned int drm_rnodes = 0; /* 1 to enable experimental render nodes API */ -EXPORT_SYMBOL(drm_rnodes); /* 1 to allow user space to request universal planes (experimental) */ unsigned int drm_universal_planes = 0; -EXPORT_SYMBOL(drm_universal_planes); unsigned int drm_vblank_offdelay = 5000; /* Default to 5000 msecs. */ -EXPORT_SYMBOL(drm_vblank_offdelay); unsigned int drm_timestamp_precision = 20; /* Default to 20 usecs. */ -EXPORT_SYMBOL(drm_timestamp_precision); /* * Default to use monotonic timestamps for wait-for-vblank and page-flip diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 2d27ba23a6a8..d7c50b0da510 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -38,8 +38,6 @@ #define DRIVER_MAJOR 1 #define DRIVER_MINOR 0 -#define VBLANK_OFF_DELAY 50000 - /* platform device pointer for eynos drm device. */ static struct platform_device *exynos_drm_pdev; @@ -109,8 +107,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags) /* setup possible_clones. */ exynos_drm_encoder_setup(dev); - drm_vblank_offdelay = VBLANK_OFF_DELAY; - platform_set_drvdata(dev->platformdev, dev); /* force connectors detection */ diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index ce3e6a30deaa..e28f792d628c 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -40,8 +40,6 @@ struct drm_device; struct exynos_drm_overlay; struct drm_connector; -extern unsigned int drm_vblank_offdelay; - /* this enumerates display type. */ enum exynos_drm_output_type { EXYNOS_DISPLAY_TYPE_NONE,