[PATCH v5 4/7] list: Replace kernel.h with the necessary inclusions