mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
drm/xe: Print module init abort code
We should provide a hint to the user why the module refused to load. This will also allow us to drop individual error messages from init steps. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250731193339.179829-3-michal.wajdeczko@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
parent
90759cddac
commit
823301c847
|
|
@ -155,6 +155,8 @@ static int __init xe_init(void)
|
|||
for (i = 0; i < ARRAY_SIZE(init_funcs); i++) {
|
||||
err = xe_call_init_func(init_funcs + i);
|
||||
if (err) {
|
||||
pr_info("%s: module_init aborted at %ps %pe\n",
|
||||
DRIVER_NAME, init_funcs[i].init, ERR_PTR(err));
|
||||
while (i--)
|
||||
xe_call_exit_func(init_funcs + i);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user