✗ CI.KUnit: failure for drm/xe: Use fault injection infrastructure to find issues at probe time (rev2)

Jani Nikula jani.nikula at linux.intel.com
Mon Sep 23 12:00:14 UTC 2024


On Mon, 23 Sep 2024, Francois Dugast <francois.dugast at intel.com> wrote:
> On Fri, Sep 20, 2024 at 01:52:17PM +0000, Patchwork wrote:
>> == Series Details ==
>> 
>> Series: drm/xe: Use fault injection infrastructure to find issues at probe time (rev2)
>> URL   : https://patchwork.freedesktop.org/series/138654/
>> State : failure
>> 
>> == Summary ==
>> 
>> + trap cleanup EXIT
>> + /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
>> ERROR:root:In file included from ../drivers/gpu/drm/xe/xe_guc_ads.c:8:
>> ../include/linux/fault-inject.h:97:15: error: unknown type name ‘bool’
>>    97 | static inline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
>>       |               ^~~~
>> ../include/linux/fault-inject.h:97:43: error: unknown type name ‘gfp_t’
>>    97 | static inline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
>>       |                                           ^~~~~
>> ../include/linux/fault-inject.h:106:57: error: unknown type name ‘gfp_t’
>>   106 | static inline int should_failslab(struct kmem_cache *s, gfp_t gfpflags)
>>       |                                                         ^~~~~
>> make[7]: *** [../scripts/Makefile.build:244: drivers/gpu/drm/xe/xe_guc_ads.o] Error 1
>
> This build error occurs when CONFIG_FAULT_INJECTION=n due to missing inclusion
> of linux/types.h in linux/fault-inject.h. It is solved with Jani's series:
>
> https://lore.kernel.org/intel-xe/20240813121237.2382534-1-jani.nikula@intel.com/

These two are in Linus' master now, we'll get them after -rc1 and some
backmerges:

6ce2082fd3a2 ("fault-inject: improve build for CONFIG_FAULT_INJECTION=n")
ccbfd2df3018 ("drm/xe: clean up fault injection usage")

BR,
Jani.


-- 
Jani Nikula, Intel


More information about the Intel-xe mailing list