-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Assorted userspace cleanups #23429
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
Assorted userspace cleanups #23429
Conversation
|
All checks are passing now. checkpatch (informational only, not a failure)Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
a7561ab to
cda7887
Compare
0814a45 to
a46d3f6
Compare
|
This seems to have broken |
|
@SebastianBoe I'm not sure what part of my CMakeLists.txt changes broke this, but I think there is an underlying bug -- even in a vanilla Zephyr tree, when I run "make clean" there's still tons of generated stuff left in build/zephyr/include/generated |
|
I was not able to reproduce the issue of make clean not working. But I see that this happens: Which usually means that commands are depending on a file, instead of a target that wraps the file. "You can’t just depend on gen1 instead of gen1-wrapper, because it may end up being built multiple times!" |
SebastianBoe
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.
Dependencies need to be fixed.
@SebastianBoe I can reproduce this without this PR. For example, in master branch, I built, 'make clean', and 'make' again: I think it is a race condition on whether the failure occurs, which is why I don't always see it. Please reconsider your -1 as this issue is not related to this PR. |
|
I opened #23504 as the problems seen are unrelated to this PR. |
|
@SebastianBoe I've root-caused these problems to #23183 it's not this patch. |
SebastianBoe
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.
Removing NACK
a46d3f6 to
383c098
Compare
Rather than stuffing various values in a uintptr_t based on type using casts, use a union for this instead. No functional difference, but the semantics of the data member are now much clearer to the casual observer since it is now formally defined by this union. Signed-off-by: Andrew Boie <[email protected]>
Private data type, prefix with z_. Signed-off-by: Andrew Boie <[email protected]>
Private structure, rename to z_object_assignment Signed-off-by: Andrew Boie <[email protected]>
Private type, internal to the kernel, not directly associated with any k_object_* APIs. Is the return value of z_object_find(). Rename to struct z_object. Signed-off-by: Andrew Boie <[email protected]>
These were renamed to z_ prefix some time ago, but not updated in these places. Signed-off-by: Andrew Boie <[email protected]>
This never needed to be put in a separate gperf table. Privilege mode stacks can be generated by the main gen_kobject_list.py logic, which we do here. Signed-off-by: Andrew Boie <[email protected]>
No need for this to be separated out any more. Minimal changes made to get it to still work. Signed-off-by: Andrew Boie <[email protected]>
Un-do the changes made to the code when this was separated out to elf_helper.py. Signed-off-by: Andrew Boie <[email protected]>
383c098 to
3c52325
Compare
_k_object,_k_thread_stack_element,_k_object_assignmentrenamed to use z_ prefix, all are kernel-privatestruct z_objectis now a union making the semantics much clearerFixes: #15304