>>> >>> Just to double check: Was it at least considered to use simple #define-s >>> to effect the aliasing? Wrapper functions like the above ones have the >>> downside of needing touching (easy to miss) when the wrapped function >>> types change in whichever minor way. (And yes, I do understand that we >>> generally aim at using inline functions in preference to macros.) >> >> Yes, I think I tried and I didn’t have issues using #define-s, I asked here >> https://patchwork.kernel.org/project/xen-devel/patch/20241115105036.218418-2-luca.fance...@arm.com/#26123448 >> about a preferred approach, but I didn’t have any reply, so I went for what >> I believed was preferred as you said, static inline-s instead of macros. > > As Andrew's idea didn't work out, personally I think the simple #define > approach you suggested would be preferable in this case. There is in > particular no type-safety concern here, as the wrapped functions will > all have the intended type checking applied.
ok, I’ll re-spin this one with #defines. > > Jan