diff options
| author | Johannes Berg <[email protected]> | 2024-07-05 11:42:06 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-07-09 03:19:18 +0000 |
| commit | 946b6c48cca48591fb495508c5dbfade767173d0 (patch) | |
| tree | 57182c6711faddbba38cbfda496eab2fd1afe254 /net/core/page_pool.c | |
| parent | selftests: net: ksft: interrupt cleanly on KeyboardInterrupt (diff) | |
| download | kernel-946b6c48cca48591fb495508c5dbfade767173d0.tar.gz kernel-946b6c48cca48591fb495508c5dbfade767173d0.zip | |
net: page_pool: fix warning code
WARN_ON_ONCE("string") doesn't really do what appears to
be intended, so fix that.
Signed-off-by: Johannes Berg <[email protected]>
Fixes: 90de47f020db ("page_pool: fragment API support for 32-bit arch with 64-bit DMA")
Link: https://patch.msgid.link/20240705134221.2f4de205caa1.I28496dc0f2ced580282d1fb892048017c4491e21@changeid
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/page_pool.c')
| -rw-r--r-- | net/core/page_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/page_pool.c b/net/core/page_pool.c index dc52f078adde..855271a6cad2 100644 --- a/net/core/page_pool.c +++ b/net/core/page_pool.c @@ -444,7 +444,7 @@ static bool page_pool_dma_map(struct page_pool *pool, netmem_ref netmem) 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); |
