]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: page_pool: don't cast mp param to devmem
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 4 Feb 2025 21:56:12 +0000 (13:56 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 7 Feb 2025 00:27:30 +0000 (16:27 -0800)
commit8d522566ae9cb3f0609ddb2a6ce3f4f39988043c
tree51ed459c111745e4541747f567c043aa67691ee9
parent2014c95afecee3e76ca4a56956a936e23283f05b
net: page_pool: don't cast mp param to devmem

page_pool_check_memory_provider() is a generic path and shouldn't assume
anything about the actual type of the memory provider argument. It's
fine while devmem is the only provider, but cast away the devmem
specific binding types to avoid confusion.

Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: David Wei <dw@davidwei.uk>
Link: https://patch.msgid.link/20250204215622.695511-2-dw@davidwei.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/page_pool_user.c