Re: [RFC v4 12/18] netmem: use _Generic to cover const casting for page_to_netmem()

From
Pavel Begunkov <asml.silence@gmail.com>
Date
2025-06-05 10:39:05
Also in
bpf, linux-mm, linux-rdma, lkml
Reply to
Byungchul Park, 2025-06-04
On 6/4/25 03:52, Byungchul Park wrote:
The current page_to_netmem() doesn't cover const casting resulting in
trying to cast const struct page * to const netmem_ref fails.

To cover the case, change page_to_netmem() to use macro and _Generic.
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>

-- 
Pavel Begunkov
Thread (65 messages) 65 messages, 6 authors, last reply 2025-06-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help