From 3a69716646f3f8d15d2f8924a65530f545d09103 Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Mon, 6 Nov 2023 13:39:10 -0800 Subject: [PATCH] tegra: hwpm: fix conftest compilation error HWPM code from HWPM repo is not currently used to compile with kernel 5.10. However, CL to compile HWPM repo for kernel 5.10 is required to validate latest changes on Pre-Si. Since conftest is only available for kernel version later than 5.10. Add condition to include conftest only if HWPM is used as OOT module. Bug 4119327 Change-Id: I760164447ff5c340884212f83966af72f1ee27da Signed-off-by: Vedashree Vidwans Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3011333 Tested-by: Vasuki Shankar Reviewed-by: Vasuki Shankar Reviewed-by: Jonathan Hunter Reviewed-by: Vishal Aslot Reviewed-by: Seema Khowala GVS: Gerrit_Virtual_Submit --- drivers/tegra/hwpm/os/linux/driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tegra/hwpm/os/linux/driver.c b/drivers/tegra/hwpm/os/linux/driver.c index 6d4b28f..cf5c531 100644 --- a/drivers/tegra/hwpm/os/linux/driver.c +++ b/drivers/tegra/hwpm/os/linux/driver.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2021-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -13,8 +13,9 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ - +#ifdef CONFIG_TEGRA_HWPM_OOT #include +#endif #include #include