Hello
This is fully normal behavior.
When compiling the compiler has only visibility on the current compilation unit (the source file and all the files it includes).
If a function is implemented in another module, the compiler will not be able to inline it as it will not know which is the code from the function.
If you wish to inline a function in several different source files, I would recommend you to implement a static function in a header file and include the header file in different source file.
CrasyCat