From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E8AB25335A; Thu, 17 Apr 2025 18:42:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915340; cv=none; b=RuHavoO3UckYQ16Rp8qWyrQAUUDPHTrrX4SNjIcA8fjKAL0iJnLPrl5qv/ZhCA9pNs23mAMycmKdxTt7+hbjJ15egdyL/g65h3w8bD9ji25njZKr+tZk5Ceq/iU0QDi0sIDHQu8cFqHk+Bso5P/lo2AXuissT2yg8G1V3+NfJVc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915340; c=relaxed/simple; bh=Pky979WpaWzgxXOe8o9ouWbFVkPai4HjmI40lUDIOY4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cb+01RAvCvGSw7vt772ykOLV21lxqQ34GzxqWHjc1SFz7z9yCdftRLC/0o52d5fwUgxpBrVR91OCIEp2T6+zYEOXdeM7BC4CMl70BDynKH3XJjysvvq5EIAV4LiKQ7j4V8zhwMfUEHiN3xJ8pybvr0/btve4mkj1ezxUI73Ohws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xkWMJyea; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="xkWMJyea" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8488DC4CEE4; Thu, 17 Apr 2025 18:42:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744915340; bh=Pky979WpaWzgxXOe8o9ouWbFVkPai4HjmI40lUDIOY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xkWMJyea7mHLAB7K0Q5xLAIKFQkKbaKC4zfPbCpUBM4iFl1y8POtTovjaAH4df2Bh pq2wHg0oZFxJdzsy6AgnZN6cLqujgB+onXnrviRHluwzcyMRWxQqtatsxzXwuwnSNR vcrrNVFDtJ06B4eKGdpuLtCaylMBEj4ttz6qfpys= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jakub Kicinski , Mina Almasry , Pavel Begunkov , David Wei , Sasha Levin Subject: [PATCH 6.12 089/393] net: page_pool: dont cast mp param to devmem Date: Thu, 17 Apr 2025 19:48:18 +0200 Message-ID: <20250417175111.174706611@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175107.546547190@linuxfoundation.org> References: <20250417175107.546547190@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Pavel Begunkov [ 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 Reviewed-by: Mina Almasry Signed-off-by: Pavel Begunkov Signed-off-by: David Wei Link: https://patch.msgid.link/20250204215622.695511-2-dw@davidwei.uk Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- net/core/page_pool_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/page_pool_user.c b/net/core/page_pool_user.c index 48335766c1bfd..8d31c71bea1a3 100644 --- a/net/core/page_pool_user.c +++ b/net/core/page_pool_user.c @@ -353,7 +353,7 @@ void page_pool_unlist(struct page_pool *pool) int page_pool_check_memory_provider(struct net_device *dev, struct netdev_rx_queue *rxq) { - struct net_devmem_dmabuf_binding *binding = rxq->mp_params.mp_priv; + void *binding = rxq->mp_params.mp_priv; struct page_pool *pool; struct hlist_node *n; -- 2.39.5