-
Notifications
You must be signed in to change notification settings - Fork 349
llext: remove unneeded data and functions #9951
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0f68a8f to
66e5408
Compare
All module adapter drivers interface with the infrastructure using entries similar to DECLARE_MODULE_ADAPTER(src_interface, SRC_UUID, src_tr); SOF_MODULE_INIT(src, sys_comp_module_src_interface_init); which create instances of struct comp_driver and define several functions. They aren't needed when built as a LLEXT module. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
lgirdwood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one open, LGTM
| return 0; | ||
| } | ||
|
|
||
| static int demux_trigger(struct processing_module *mod, int cmd) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a separate commit ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lgirdwood in principle it's all for the same goal - removing unused data and code from modular builds. This hunks don't change any code, they just move it around. Alternatively I could leave those functions where they are and just add #if - #endif to each of them but that would be too ugly. So, if allowed, I'd leave this as is, if however there's a strong desire for splitting this, I can do that too
|
BTW, forgot to mention - the idea was from @softwarecki - thanks! |
|
@wszypelt "Internal Intel CI" failure seems to be unrelated? |
|
CO:
|
|
@lyakh We have noticed a problem with this test on several PRs, we're currently analyzing it, I hope to solve it by the EOD. |
softwarecki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
|
@lyakh this breaks a lot of tests on imx8. Looks like for example it breaks IPC3 platforms. |
All module adapter drivers interface with the infrastructure using entries similar to
DECLARE_MODULE_ADAPTER(src_interface, SRC_UUID, src_tr); SOF_MODULE_INIT(src, sys_comp_module_src_interface_init);
which create instances of struct comp_driver and define several functions. They aren't needed when built as a LLEXT module.