You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] remove casting away of const in lib_manager_module_create() #10117
Is your feature request related to a problem? Please describe. lib_manager_module_create() is typically called from comp_new_ipc4(), it loads a dynamically loadable module driver, retrieves its module adapter interface pointer and assigns it to the newly created driver object. However, that driver object is available at that location only as a const pointer, so to perform the assignment lib_manager_module_create() has to cast away the const attribute. This isn't a good coding practice and can lead to failures in certain configurations.
Describe the solution you'd like
The flow should be adjusted to eliminate that type-cast.
Activity
lyakh commentedon Jul 23, 2025
fix merged