From 936e6687ef3e6d19e5fc98e3ffec3c8c314559e3 Mon Sep 17 00:00:00 2001 From: Suneel Kumar Pemmineti Date: Tue, 19 Nov 2024 10:53:54 +0000 Subject: [PATCH] nvsciipc: Include change for nvsciipc_ioctl.h - KMD to refer nvsciipc_ioctl.h from $TEGRA_TOP/gpu/drv/drivers/nvsci/nvsciipc/inc-linux Jira: NVIPC-2817 Change-Id: Ic8d86c1320759bf9260d5bb9b4ee82441b0bbb71 Signed-off-by: Suneel Kumar Pemmineti Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3252263 Reviewed-by: Simon Je GVS: buildbot_gerritrpt Reviewed-by: svcacv --- drivers/misc/nvsciipc/Makefile | 13 ++++++++++++- drivers/misc/nvsciipc/nvsciipc.h | 5 +++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/misc/nvsciipc/Makefile b/drivers/misc/nvsciipc/Makefile index 9ce5cf81..094b8ba1 100644 --- a/drivers/misc/nvsciipc/Makefile +++ b/drivers/misc/nvsciipc/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -# Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Makefile for NvSciIpc driver @@ -7,4 +7,15 @@ ccflags-y += -I$(PWD) +ifneq ($(NV_CUSTOMER_BUILD), 1) +ifdef TEGRA_TOP + ccflags-y += -I$(TEGRA_TOP)/gpu/drv/drivers/nvsci/inc/internal +endif +ifdef PWD + ccflags-y += -I$(PWD)/gpu/drv/drivers/nvsci/inc/internal +endif +else +ccflags-y += -I$(TEGRA_TOP)/prebuilt/generic-aaos-pdk/gpu/drv/drivers/nvsci/inc/internal +endif + obj-m += nvsciipc.o diff --git a/drivers/misc/nvsciipc/nvsciipc.h b/drivers/misc/nvsciipc/nvsciipc.h index 122b8099..ebd26cc4 100644 --- a/drivers/misc/nvsciipc/nvsciipc.h +++ b/drivers/misc/nvsciipc/nvsciipc.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * Copyright (c) 2019-2023, NVIDIA CORPORATION. All rights reserved. + * SPDX-FileCopyrightText: Copyright (c) 2019-2024, NVIDIA CORPORATION & AFFILIATES. + * All rights reserved. */ #ifndef __NVSCIIPC_KERNEL_H__ @@ -8,7 +9,7 @@ #include #include -#include +#include "nvsciipc_ioctl.h" #define ERR(...) pr_err("nvsciipc: " __VA_ARGS__) #define INFO(...) pr_info("nvsciipc: " __VA_ARGS__)