Re: [PATCH v2 1/1] util: Make some iova_tree parameters const

2021-10-15 Thread Paolo Bonzini
On 13/10/21 20:27, 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 modifyin

[PATCH v2 1/1] util: Make some iova_tree parameters const

2021-10-13 Thread Eugenio Pérez
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