Skip to content

Move log and system_service headers to module directory#9335

Merged
lgirdwood merged 2 commits intothesofproject:mainfrom
softwarecki:modules-sp2
Aug 22, 2024
Merged

Move log and system_service headers to module directory#9335
lgirdwood merged 2 commits intothesofproject:mainfrom
softwarecki:modules-sp2

Conversation

@softwarecki
Copy link
Collaborator

Move logging priority definitions used by iadk modules to the modules directory so other types of loadable modules can use them. Propose a function to convert log priority used by loadable modules to log level used by sof.

Move definitions of functions exposed by system_service to the modules directory so that loadable modules can use them.

Comment on lines +17 to +21
#ifdef __XTENSA__
#define RESTRICT __restrict
#else
#define RESTRICT
#endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be best to comment why this cant come from Zephyr as I suspect Zephyr will define this too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping - this needs a comment at least so that no one tries to optimize this later on.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lgirdwood
Indeed zephyr has a similar definition ZRESTRICT, but we want to be able to build lmdk modules without using zephyr headers so I didn't use it.

@kv2019i
Copy link
Collaborator

kv2019i commented Aug 6, 2024

@softwarecki can you rebase?

@lgirdwood
Copy link
Member

@softwarecki probably worth rebasing on Monday as CI doing upgrade today 9th Aug.

Move logging priority definitions used by iadk modules to the modules
directory so other types of loadable modules can use them. Propose
a function to convert log priority used by loadable modules to log level
used by sof.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
Move definitions of functions exposed by system_service to the modules
directory so that loadable modules can use them.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
@lgirdwood lgirdwood merged commit 562c480 into thesofproject:main Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants