With a typedef needed by drm-kmod.
Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential D36105
linuxkpi: Add linux/stackdepot.h manu on Aug 10 2022, 6:48 AM. Authored by Tags None Referenced Files
Details With a typedef needed by drm-kmod. Obtained from: drm-kmod
Diff Detail
Event TimelineComment Actions From the use in drm __topology_ref_save it seems it could be more than one value as it loops over them and compares them to find an entry? So not sure if "bool" is correct? Comment Actions It doesn't loop over the backtrace var, also this code isn't compiled in (none of the code using stack* is). This is really just to satify the build. Comment Actions 1575 n = stack_trace_save(stack_entries, ARRAY_SIZE(stack_entries), 1); 1576 backtrace = stack_depot_save(stack_entries, n, GFP_KERNEL); 1577 if (!backtrace) 1578 return; 1579 1580 /* Try to find an existing entry for this backtrace */ 1581 for (i = 0; i < history->len; i++) { 1582 if (history->entries[i].backtrace == backtrace) { 1583 entry = &history->entries[i]; 1584 break; 1585 } 1586 } It seems to compare the return value from stack_depot_save with a list; I thus doubted that it just looks for the one bool there. |