Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] net: page_pool: fix warning code
@ 2024-07-05 11:42 Johannes Berg
  2024-07-05 12:32 ` Alexander Lobakin
  2024-07-09  3:40 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 14+ messages in thread
From: Johannes Berg @ 2024-07-05 11:42 UTC (permalink / raw)
  To: netdev
  Cc: Jesper Dangaard Brouer, Ilias Apalodimas, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

WARN_ON_ONCE("string") doesn't really do what appears to
be intended, so fix that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/core/page_pool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 3927a0a7fa9a..97914a9e2a85 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -445,7 +445,7 @@ static bool page_pool_dma_map(struct page_pool *pool, struct page *page)
 	return true;
 
 unmap_failed:
-	WARN_ON_ONCE("unexpected DMA address, please report to netdev@");
+	WARN_ONCE(1, "unexpected DMA address, please report to netdev@");
 	dma_unmap_page_attrs(pool->p.dev, dma,
 			     PAGE_SIZE << pool->p.order, pool->p.dma_dir,
 			     DMA_ATTR_SKIP_CPU_SYNC | DMA_ATTR_WEAK_ORDERING);
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-07-09  3:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-05 11:42 [PATCH net-next] net: page_pool: fix warning code Johannes Berg
2024-07-05 12:32 ` Alexander Lobakin
2024-07-05 12:33   ` Johannes Berg
2024-07-05 12:37     ` Alexander Lobakin
2024-07-05 12:39       ` Johannes Berg
2024-07-05 13:14         ` Przemek Kitszel
2024-07-05 13:28           ` Alexander Lobakin
2024-07-05 13:38             ` Przemek Kitszel
2024-07-05 14:19     ` Andrew Lunn
2024-07-05 14:23       ` Johannes Berg
2024-07-05 14:33         ` Alexander Lobakin
2024-07-05 14:36           ` Johannes Berg
2024-07-05 14:44             ` Alexander Lobakin
2024-07-09  3:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox