-
Notifications
You must be signed in to change notification settings - Fork 145
lkl: remove string functions duplicate implementation #590
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,13 @@ | |
|
|
||
| int lkl_init(struct lkl_host_operations *ops) | ||
| { | ||
| if ((IS_ENABLED(CONFIG_LKL_HOST_MEMCPY) && !ops->memcpy) | ||
| || (IS_ENABLED(CONFIG_LKL_HOST_MEMSET) && !ops->memset) | ||
| || (IS_ENABLED(CONFIG_LKL_HOST_MEMMOVE) && !ops->memmove)) { | ||
| lkl_printf("unexpected NULL lkl_host_ops member\n"); | ||
| return -1; | ||
| } | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. coding-style.rst encourages avoiding The compiler should still be able to optimize it out for non-posix hosts.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, thanks! |
||
| lkl_ops = ops; | ||
|
|
||
| return kasan_init(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.