Why
In Linux commit cccd73d607fee52f35b4b030408fa5f6c21ef503, the destination offset was added as a fourth argument to iosys_map_memcpy_to().
How
To maintain compatibility with existing code, the new form of the function is only available for LINUXKPI_VERSION >= 51801 (which doesn't mean 5.18.1).
This is part of the update of the DRM drivers to Linux 5.18.