Skip to content

Commit a6bf0fd

Browse files
isilencegregkh
authored andcommitted
net: page_pool: don't cast mp param to devmem
[ Upstream commit 8d52256 ] 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>
1 parent 65ba18c commit a6bf0fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/page_pool_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void page_pool_unlist(struct page_pool *pool)
353353
int page_pool_check_memory_provider(struct net_device *dev,
354354
struct netdev_rx_queue *rxq)
355355
{
356-
struct net_devmem_dmabuf_binding *binding = rxq->mp_params.mp_priv;
356+
void *binding = rxq->mp_params.mp_priv;
357357
struct page_pool *pool;
358358
struct hlist_node *n;
359359

0 commit comments

Comments
 (0)