From 733f13a8bf449f7df86eef19e007e27f95a17eb6 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 12 Dec 2023 07:01:34 -0800 Subject: [PATCH] gpu: nvgpu: Fix missing headers for Linux v6.8 For Linux v6.8, commit ef175b29a242 ("of: Stop circularly including of_device.h and of_platform.h") updated the OF headers included by these header files. This breaks the build for various drivers and so fix this by including the headers that are actually needed for each driver. Bug 4448428 Change-Id: I6cb9df4d9b8aad1d358fed02f84c43ba303c8f38 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3033096 (cherry picked from commit abe31c1527d5bff2f00cee445f4239e3e7eb71d2) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3062998 Reviewed-by: Brad Griffis GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/os/linux/module.c | 2 +- drivers/gpu/nvgpu/os/linux/nvhost_common.c | 19 +++---------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/module.c b/drivers/gpu/nvgpu/os/linux/module.c index c4057ce74..19584362e 100644 --- a/drivers/gpu/nvgpu/os/linux/module.c +++ b/drivers/gpu/nvgpu/os/linux/module.c @@ -8,9 +8,9 @@ #include #include #include -#include #include #include +#include #include #include #include diff --git a/drivers/gpu/nvgpu/os/linux/nvhost_common.c b/drivers/gpu/nvgpu/os/linux/nvhost_common.c index 88da9bc03..e428c8bd5 100644 --- a/drivers/gpu/nvgpu/os/linux/nvhost_common.c +++ b/drivers/gpu/nvgpu/os/linux/nvhost_common.c @@ -1,21 +1,8 @@ -/* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. 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, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: Copyright (c) 2017-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include -#include +#include #include #include