Add missing prefix 'static' for non-global function