On 29/03/2023 17:11, Tudor Cretu wrote:
+static inline bool io_user_data_is_same(const __kernel_uintptr_t d1,
const __kernel_uintptr_t d2)
Nit: there is generally not much point in having const arguments, as the only thing it achieves is preventing the function from modifying what is effectively local variables. Note that this is very different from passing a _pointer to_ const (const T *), because in that case the constness actually prevents the function from modifying data it doesn't own.
Kevin