fixup! FROMLIST: ring-buffer: Introducing ring-buffer mapping functions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 27014e5..c549a3c 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -5975,7 +5975,7 @@
{
unsigned long addr = (unsigned long)cpu_buffer->meta_page;
- virt_to_page(addr)->mapping = NULL;
+ virt_to_page((const void *)addr)->mapping = NULL;
free_page(addr);
cpu_buffer->meta_page = NULL;
}
@@ -6163,7 +6163,7 @@
if (pgoff > cpu_buffer->nr_pages)
return NULL;
- return virt_to_page(cpu_buffer->page_ids[pgoff]);
+ return virt_to_page((const void *)cpu_buffer->page_ids[pgoff]);
}
int ring_buffer_map_get_reader_page(struct trace_buffer *buffer, int cpu)