intel_fb_drv: add kvfree_call_rcu to lx_emul.c

Issue #4630
This commit is contained in:
Norman Feske
2022-10-05 16:55:51 +02:00
committed by Christian Helmuth
parent 80e2cea4aa
commit a630563cbc
2 changed files with 11 additions and 8 deletions

View File

@@ -1509,14 +1509,6 @@ void kmsg_dump(enum kmsg_dump_reason reason)
}
#include <linux/rcutree.h>
void kvfree_call_rcu(struct rcu_head * head,rcu_callback_t func)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/swap.h>
void mark_page_accessed(struct page * page)

View File

@@ -261,3 +261,14 @@ void intel_vgpu_detect(struct drm_i915_private * dev_priv)
printk("disabling PPGTT to avoid GPU code paths\n");
}
/*
* taken from src/lib/wifi/lx_emul.c
*/
void kvfree_call_rcu(struct rcu_head * head,rcu_callback_t func)
{
void *ptr = (void *) head - (unsigned long) func;
kvfree(ptr);
}