Added static inline attr to func