Thanks, I'll look into this when I get a chance.
I want to redesign the interfaces so that the callers give
enough information to the helper routines such that the
compat stuff can be handled completely inside of the
helpers.
It is unpleasant (and error prone) to put this compat handling
at all of the call sites.
--