Make inline function static to fix clang compile error Change-Id: I0432b8274a2764ba978dd6c4ed532fb7e4b7b519