Thread (40 messages) 40 messages, 3 authors, 2021-12-22

Re: [PATCH v4 01/23] lib/scatterlist: cleanup macros into static inline functions

flat view

From: Chaitanya Kulkarni <hidden>
Date: 2021-12-13 21:51:40
Also in: linux-iommu, linux-mm, linux-nvme, linux-pci, lkml

On 11/17/21 1:53 PM, Logan Gunthorpe wrote:
Convert the sg_is_chain(), sg_is_last() and sg_chain_ptr() macros
into static inline functions. There's no reason for these to be macros
and static inline are generally preferred these days.

Also introduce the SG_PAGE_LINK_MASK define so the P2PDMA work, which is
adding another bit to this mask, can do so more easily.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
Looks good.

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help