From 7bcd11a009a12ff10f820d2fd4b167a9610b54f6 Mon Sep 17 00:00:00 2001 From: Jian-Min Liu Date: Tue, 8 Aug 2023 17:29:59 +0000 Subject: [PATCH] Avoid function re-definition when FS_DEBUG is not set add FS_DEBUG to the implementation function to avoid re-definition build error caused by FS_DEBUG is not set with ack user build. Bug 4230728 Change-Id: I0c1d4357ec86f030b386f65cd32bed87b2382557 Signed-off-by: Jian-Min Liu Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2952839 Reviewed-by: Kevin Kuo (SW-GPU) Reviewed-by: Laxman Dewangan GVS: Gerrit_Virtual_Submit --- drivers/platform/tegra/aon/tegra-aon-debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/platform/tegra/aon/tegra-aon-debug.c b/drivers/platform/tegra/aon/tegra-aon-debug.c index 0b524415..59cdcaeb 100644 --- a/drivers/platform/tegra/aon/tegra-aon-debug.c +++ b/drivers/platform/tegra/aon/tegra-aon-debug.c @@ -787,6 +787,7 @@ clean: return PTR_ERR(d); } +#if defined(CONFIG_DEBUG_FS) int tegra_aon_debugfs_create(struct tegra_aon *aon) { struct tegra_aondbg *aondbg = &aondbg_dev; @@ -866,3 +867,4 @@ void tegra_aon_debugfs_remove(struct tegra_aon *aon) mbox_free_channel(aondbg->mbox); debugfs_remove_recursive(aondbg->aon_root); } +#endif