On Tue, Oct 12, 2021 at 05:50:01PM +0200, Eugenio Pérez wrote: > As qemu guidelines: > Unless a pointer is used to modify the pointed-to storage, give it the > "const" attribute. > > In the particular case of iova_tree_find it allows to enforce what is > requested by its comment, since the compiler would shout in case of > modifying or freeing the const-qualified returned pointer. > > Signed-off-by: Eugenio Pérez <epere...@redhat.com>
Acked-by: Peter Xu <pet...@redhat.com> -- Peter Xu