Repository navigation
benchmarks/osperf: Include nuttx/wqueue - #4138
Open
yangsong8-a1 wants to merge 1 commit into
Open
yangsong8-a1 wants to merge 1 commit into
yangsong8-a1 wants to merge 1 commit into
Conversation
osperf.c uses struct work_s and work_queue(), which it got only transitively through the sched.h include chain in NuttX. Include <nuttx/wqueue.h> directly so the file keeps building after include/nuttx/addrenv.h no longer pulls sched.h. Assisted-by: opencode:zhipuai/glm-5.3 Signed-off-by: yangsong8 <yangsong8@xiaomi.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
benchmarks/osperf/osperf.cusesstruct work_sandwork_queue(), which it got only transitively through thesched.hinclude chain in NuttX. Include<nuttx/wqueue.h>directly.Impact
CONFIG_BENCHMARK_OSPERF=yconfigurations together with include/addrenv: Clean the inclusion nuttx#22283, which stoppedinclude/nuttx/addrenv.hfrom pullingsched.h.Testing
sim:baromonitorwithCONFIG_BENCHMARK_OSPERF=yandCONFIG_SCHED_HPWORK=yagainst the NuttX tree of include/addrenv: Clean the inclusion nuttx#22283:osperf.ccompiles and links cleanly. Without the include, the same build fails withstorage size of 'work' isn't known(as seen in the CI of include/addrenv: Clean the inclusion nuttx#22283, e.g.qemu-armv8a:nsh_smp).