Juan Quintela
2021-Oct-31 18:59 UTC
[RFC PATCH v5 01/26] util: Make some iova_tree parameters const
Eugenio P?rez <eperezma at redhat.com> 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 <eperezma at redhat.com> > Acked-by: Peter Xu <peterx at redhat.com> > Reviewed-by: Philippe Mathieu-Daud? <philmd at redhat.com>Reviewed-by: Juan Quintela <quintela at redhat.com> This patch can go in already, whose tree should this go through? Later, Juan.