This should be moved to a header. That way it could be used in module/spl/spl-cred.c so that we can avoid the preprocessor directive that I suggested and just use KGID_TO_NUMBER.