Jon Hunter 7a1c4e54ad gpu: nvgpu: Fix build for Linux v6.12
In Linux v6.12, commit 88a2f6468d01 ("struct fd: representation change")
removed the 'struct file' pointer from 'struct fd'. This breaks building
the NVGPU driver that tries to directly access the 'file' pointer
from the 'fd' structure. Fix this by using the helper macros 'fd_empty'
and 'fd_file' as necessary to fix the build.

Bug 4593750

Change-Id: I4c66b8e59be9df196b851983a1b6dbf0dda905ee
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3217454
(cherry picked from commit 9708dc5effde47d013240d898186416d9ed55fe0)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3226682
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
2024-10-10 09:54:48 -07:00
Description
No description provided
42 MiB