The functions for which you removed static, but they are still inline, are going to rise undefined symbol with latest gcc linker. Remove inline from them if they are going to be used from other files.
Close this one and make a clean PR with the changes listed above without the additional commits, their revers and also without the merge.