Re: [RFC PATCH v5 01/26] util: Make some iova_tree parameters const

2021-11-01 Thread Eugenio Perez Martin
On Sun, Oct 31, 2021 at 7:59 PM Juan Quintela wrote: > > 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 it

Re: [RFC PATCH v5 01/26] util: Make some iova_tree parameters const

2021-10-31 Thread Juan Quintela
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 fr

[RFC PATCH v5 01/26] util: Make some iova_tree parameters const

2021-10-29 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