drm/xe/hw_engine_class_sysfs: Allow to inject error during probe

Allow fault injection in a function used during initialization by
xe_hw_engine_class_sysfs_init() so that its error handling can be
tested.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250314105050.636983-1-francois.dugast@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Francois Dugast 2025-03-14 11:50:50 +01:00 committed by Rodrigo Vivi
parent 6895828828
commit ac7759c74a
No known key found for this signature in database
GPG Key ID: FA625F640EEB13CA

View File

@ -558,6 +558,7 @@ static int xe_add_hw_engine_class_defaults(struct xe_device *xe,
kobject_put(kobj);
return err;
}
ALLOW_ERROR_INJECTION(xe_add_hw_engine_class_defaults, ERRNO); /* See xe_pci_probe() */
static void xe_hw_engine_sysfs_kobj_release(struct kobject *kobj)
{