Skip to content

[FEATURE] remove casting away of const in lib_manager_module_create() #10117

@lyakh

Description

@lyakh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions