Revert "Inline kernel"

This reverts commit 5acd53a0224bcf3db5ed2f7c226f32d529a7a62b.