From d31f4870bea3b322de5e67590d25af3b15a98487 Mon Sep 17 00:00:00 2001 From: amitabhd Date: Thu, 23 Jan 2025 09:24:09 +0000 Subject: [PATCH] host1x_emu: Fix symbol-emu header. If the flag "CONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL" is disabled it cause build failure. Jira HOSTX-5527 Change-Id: I540a1d4e658fac065880d55974d00cd9c3df7b00 Signed-off-by: amitabhd Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3289217 Reviewed-by: Santosh BS GVS: buildbot_gerritrpt Reviewed-by: Raghavendra Vishnu Kumar --- drivers/gpu/host1x-emu/include/linux/symbol-emu.h | 4 ---- drivers/gpu/host1x-emu/syncpt.h | 6 +++++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/host1x-emu/include/linux/symbol-emu.h b/drivers/gpu/host1x-emu/include/linux/symbol-emu.h index 0f1547ed..eb3d820b 100644 --- a/drivers/gpu/host1x-emu/include/linux/symbol-emu.h +++ b/drivers/gpu/host1x-emu/include/linux/symbol-emu.h @@ -13,8 +13,4 @@ #define HOST1X_EMU_EXPORT_SYMBOL(f) EXPORT_SYMBOL(f) #endif -#ifndef CONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL -HOST1X_EMU_EXPORT_DECL(void, host1x_syncpt_fence_scan(struct host1x_syncpt *sp)); -#endif /*CONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL*/ - #endif /*__HOST1X_EMU_SYMMBOL_H*/ diff --git a/drivers/gpu/host1x-emu/syncpt.h b/drivers/gpu/host1x-emu/syncpt.h index 2b7f5c95..0ad67cff 100644 --- a/drivers/gpu/host1x-emu/syncpt.h +++ b/drivers/gpu/host1x-emu/syncpt.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * SPDX-License-Identifier: GPL-2.0-only */ #ifndef __HOST1X_EMU_SYNCPT_H @@ -50,6 +50,10 @@ struct host1x_syncpt { struct list_head list; }; +#ifndef CONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL +HOST1X_EMU_EXPORT_DECL(void, host1x_syncpt_fence_scan(struct host1x_syncpt *sp)); +#endif /*CONFIG_TEGRA_HOST1X_EMU_DBG_SYMBL*/ + /** * Description: Initialize sync point array */