Eugenio Pérez <eperezma@xxxxxxxxxx> 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@xxxxxxxxxx> > Acked-by: Peter Xu <peterx@xxxxxxxxxx> > Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx> Reviewed-by: Juan Quintela <quintela@xxxxxxxxxx> This patch can go in already, whose tree should this go through? Later, Juan. _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization