From patchwork Mon Jul 13 11:03:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Kuleshov X-Patchwork-Id: 6782961 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 8FBA2C05AC for ; Tue, 14 Jul 2015 00:53:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CCEFB20704 for ; Tue, 14 Jul 2015 00:53:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0391B206E8 for ; Tue, 14 Jul 2015 00:53:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CF2A66E349; Mon, 13 Jul 2015 17:53:02 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 157926E24B for ; Mon, 13 Jul 2015 04:04:06 -0700 (PDT) Received: by lagx9 with SMTP id x9so298037658lag.1 for ; Mon, 13 Jul 2015 04:04:04 -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; bh=Psjdbc1OJvUDWtyS+aJu+YK44XywhlvqNqWVg5WVYOw=; b=wJFprCaPVwl/fvIF/3SigW08Lx8aHqNQMzGc35+/Dbx59lUvB0GdNBxmpOVBHnUguN 18XsjyPMBBaMy9AijWld0opaGVEd6i8oQuW0ecciYf9LLZxXD3lfv4HxvpHx7KJJAKPS vRcUnTRkmL4EdEu0wUUQ9wEaRAUve1UWANgmsdj9zZWRwhsp6xcQKy4DwxHV3w9oA2E2 Y6cOTYzPI888qc6CUOQVCKPeQkmkdObih3zonpJc26/5t0YXS0dGa3EWJZZxDE0okL8D iYpVbEVXE6HIzR6r1RQ2emlGkeqz8w4aS4p3p5kBruxCUa6KY4QBWHdB9sjcZG5x0baV HWlQ== X-Received: by 10.112.41.171 with SMTP id g11mr31858069lbl.123.1436785444197; Mon, 13 Jul 2015 04:04:04 -0700 (PDT) Received: from localhost.localdomain ([5.76.37.136]) by smtp.gmail.com with ESMTPSA id ls4sm4647214lac.28.2015.07.13.04.04.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Jul 2015 04:04:03 -0700 (PDT) From: Alexander Kuleshov To: David Airlie , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , Jammy Zhou , yanyang1 , =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= , Maninder Singh Subject: [PATCH] gpu/drm/amdgpu: Include only if CONFIG_DEBUG_FS is set Date: Mon, 13 Jul 2015 17:03:57 +0600 Message-Id: <1436785437-3457-1-git-send-email-kuleshovmail@gmail.com> X-Mailer: git-send-email 2.5.0-rc1 X-Mailman-Approved-At: Mon, 13 Jul 2015 17:52:59 -0700 Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alexander Kuleshov 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.5 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 We have no need to include if the CONFIG_DEBUG_FS option is not set. Signed-off-by: Alexander Kuleshov --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) +#ifdef CONFIG_DEBUG_FS +#include +#endif + static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev); static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev); -- 2.5.0-rc1 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index ba46be3..23dbfa4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -27,7 +27,6 @@ */ #include #include -#include #include #include #include @@ -44,2 +43,2 @@ #include "vi.h" #include "bif/bif_4_1_d.h"