mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: Fix compilation issues with Kernel-6.5
Upstream commit "7e3f926bf453" [rcu/kvfree: Eliminate k[v]free_rcu() single argument macro] Removes the single-argument kvfree_rcu() and kfree_rcu() macros. Code that would have previously used these single-argument kvfree_rcu() and kfree_rcu() macros should instead use kvfree_rcu_mightsleep() or kfree_rcu_mightsleep(). Use kfree_rcu_mightsleep() instead of kfree_rcu() if using Kernel-6.5 or newer. Bug 4276500 Change-Id: I1adb4125c83019ea6c0e7d37175716ee7ed659cc Signed-off-by: Kartik Rajput <kkartik@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2978710 (cherry picked from commit 2ede069c81db420c2d5fbd00bee4030fd943f3f7) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/3037021 Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Jonathan Hunter <jonathanh@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b702c927da
commit
84236d8fce
@@ -21,6 +21,7 @@
|
|||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/slab.h>
|
#include <linux/slab.h>
|
||||||
#include <linux/sync_file.h>
|
#include <linux/sync_file.h>
|
||||||
|
#include <linux/version.h>
|
||||||
|
|
||||||
#include <nvgpu/os_fence.h>
|
#include <nvgpu/os_fence.h>
|
||||||
#include <nvgpu/os_fence_syncpts.h>
|
#include <nvgpu/os_fence_syncpts.h>
|
||||||
@@ -134,7 +135,12 @@ static void nvgpu_host1x_work_func(struct work_struct *work)
|
|||||||
struct nvgpu_host1x_cb *host1x_cb = container_of(work, struct nvgpu_host1x_cb, work);
|
struct nvgpu_host1x_cb *host1x_cb = container_of(work, struct nvgpu_host1x_cb, work);
|
||||||
|
|
||||||
host1x_cb->notifier(host1x_cb->notifier_data, 0);
|
host1x_cb->notifier(host1x_cb->notifier_data, 0);
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 5, 0))
|
||||||
|
kfree_rcu_mightsleep(host1x_cb);
|
||||||
|
#else
|
||||||
kfree_rcu(host1x_cb);
|
kfree_rcu(host1x_cb);
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void nvgpu_host1x_cb_func(struct dma_fence *f, struct dma_fence_cb *cb)
|
static void nvgpu_host1x_cb_func(struct dma_fence *f, struct dma_fence_cb *cb)
|
||||||
|
|||||||
Reference in New Issue
Block a user