Revert "prima: remove inlining causing compile error"

This reverts commit 990947d2ff0222dd6267b0b03a62973651414b73.