Can't find a reference to inet_ntoa (as in the userland function) but there used to be an in_ntoa which was removed in 2.4.19 (
ChangeLog) in favour of the NIPQUAD macro.
Don't think it would be a direct drop-in replacement for your function but it probably wouldn't be too hard to fiddle your source to make it work. Have a look
here for some example usage in a recent kernel.