]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:17 +0000 (10:15 +0200)
commita6bf0fd322abd0e432847857e3f86a308a86762e
treefe0acfc00fa0851641772fa63a15f5b9d664f8e5
parent65ba18c84dbd03afe9b38c06c151239d97a09834
net: page_pool: don't cast mp param to devmem

[ Upstream commit 8d522566ae9cb3f0609ddb2a6ce3f4f39988043c ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/core/page_pool_user.c