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 <jonathanh@nvidia.com>
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 <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Jon Hunter
2023-12-12 07:01:34 -08:00
committed by mobile promotions
parent 55668cb82c
commit 733f13a8bf
2 changed files with 4 additions and 17 deletions

View File

@@ -8,9 +8,9 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_device.h> #include <linux/of_device.h>
#include <linux/of_platform.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/reset.h> #include <linux/reset.h>
#include <linux/reboot.h> #include <linux/reboot.h>

View File

@@ -1,21 +1,8 @@
/* // SPDX-License-Identifier: GPL-2.0-only
* Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. // SPDX-FileCopyrightText: Copyright (c) 2017-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,
* 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 <http://www.gnu.org/licenses/>.
*/
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#include <linux/of_platform.h> #include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <nvgpu/gk20a.h> #include <nvgpu/gk20a.h>