[PATCH v4 41/44] spl: Add C-based runtime detection of SPL