From patchwork Sat Dec 23 18:32:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13504121 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 14050C3DA6E for ; Sat, 23 Dec 2023 18:33:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FD0610E185; Sat, 23 Dec 2023 18:33:28 +0000 (UTC) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by gabe.freedesktop.org (Postfix) with ESMTPS id E377B10E185 for ; Sat, 23 Dec 2023 18:33:27 +0000 (UTC) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-550dd0e3304so3394507a12.1 for ; Sat, 23 Dec 2023 10:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703356406; x=1703961206; darn=lists.freedesktop.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ruRMkuxTLRfeG6Csq4ElIsO4M1/KCLiyHuWeJfvDVGs=; b=ZxjoSiN3/Tm7jKoQXB1ZDCpEeBdZVtrAP0YVbyrky/4SWYveDpWKC334LHX7eplyyE I+VReBQ9Y+Tisqi9XRvAy6w1Xzecz2WxZ9GvhNmfYvtg6D24+YrudY+IgwIxCQpgOq9n ZmjWitndeYVsmj6jJPGiFzuv/TpO+TYN9fOT0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703356406; x=1703961206; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ruRMkuxTLRfeG6Csq4ElIsO4M1/KCLiyHuWeJfvDVGs=; b=PyPzhm8JwvbUxoBTPhfleVCp5mNEPNU4stJereF+FG6hRvyb5WsTKHa+yBTjHWy36U s6cZB2axn1UF7h8n77jLgMDaSoUL+oAzcF32Q20wfth1h3KeX9Pcz7QyqK1gHIdeKdKh SMGfpaoWLxAUj6T1JGcAcr5FEnpM9yF9B/zbD4D2jn2sQzJOCcl4yQtb6k4kCLu7+VDI UpqGf+O3kwuGYmewMQwDqizsW7Pv9RVPwOroDhGTxf4ohmr1PHuHRLHZ6AlvQYE7K5K8 L/5GpQr6uEfeKvkpWPzS+DeZTe8a7M2v1XgdvNvqdFJqgx8DB922LvlVegBS0BT7XUKO Z6Fw== X-Gm-Message-State: AOJu0YxuBYkoseMtZLiTFda4qIV+j3Y9sHlz35qmvwbuvsucVC8n3VWo +9pOppba1UIvoMzfwkHIecBwP2DDvmR6SQ== X-Google-Smtp-Source: AGHT+IFObCoZObJ9xG7YLuA6LJhDM4BoJEQE/rko43dkA/DzcHeY/t9X5gJmWy9epmDUOKgTOv4XsA== X-Received: by 2002:a17:906:10b:b0:a26:b173:ff92 with SMTP id 11-20020a170906010b00b00a26b173ff92mr1409440eje.65.1703356406378; Sat, 23 Dec 2023 10:33:26 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (host-79-50-102-81.retail.telecomitalia.it. [79.50.102.81]) by smtp.gmail.com with ESMTPSA id kb6-20020a170907924600b00a26b024070asm2290910ejb.50.2023.12.23.10.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 10:33:24 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Subject: [PATCH v2] drm/debugfs: drop unneeded DEBUG_FS guard Date: Sat, 23 Dec 2023 19:32:48 +0100 Message-ID: <20231223183301.78332-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Zimmermann , Jani Nikula , Maxime Ripard , dri-devel@lists.freedesktop.org, Dario Binacchi , David Airlie Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Makefile enables/disables the file compilation depending on CONFIG_DEBUG_FS. Signed-off-by: Dario Binacchi Reviewed-by: Jani Nikula --- Changes in v2: - Add 'Reviewed-by' tag of Jani Nikula drivers/gpu/drm/drm_debugfs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index f291fb4b359f..f80d9cf3e71a 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -45,8 +45,6 @@ #include "drm_crtc_internal.h" #include "drm_internal.h" -#if defined(CONFIG_DEBUG_FS) - /*************************************************** * Initialization, etc. **************************************************/ @@ -588,5 +586,3 @@ void drm_debugfs_crtc_remove(struct drm_crtc *crtc) debugfs_remove_recursive(crtc->debugfs_entry); crtc->debugfs_entry = NULL; } - -#endif /* CONFIG_DEBUG_FS */