]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ring-buffer: Use vma_pages() helper function
authorThorsten Blum <thorsten.blum@toblux.com>
Tue, 9 Jul 2024 21:56:58 +0000 (23:56 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Mon, 15 Jul 2024 19:09:06 +0000 (15:09 -0400)
commitb96c312551b241bc17226c5347c6d6b38a1efd3e
treeb1bc3a7b71aea6ddebfedc9df76ec2bc9b1f77cf
parent94dfa500e7deddceff22768bb994f0fa67bd2fd0
ring-buffer: Use vma_pages() helper function

Use the vma_pages() helper function and fix the following
Coccinelle/coccicheck warning reported by vma_pages.cocci:

  WARNING: Consider using vma_pages helper on vma

Rename the local variable vma_pages accordingly.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/20240709215657.322071-2-thorsten.blum@toblux.com
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c