Repository navigation
Remove four exported functions that nothing calls (-71) - #366
Closed
RyanTheTide wants to merge 1 commit into
Closed
RyanTheTide wants to merge 1 commit into
RyanTheTide wants to merge 1 commit into
Conversation
- rtkit_quiesce_ap(): its only caller, the ANS hand-over quiesce, went away in adf5580 ("nvme: power a post-M4 ANS off after use, and start it from off"). rtkit_quiesce_ap_power() stays; the shutdown path still uses it. - uartproxy_wait_dockchannel(): its caller was dropped in 75665c7 ("boot: replace Neo build profiles with runtime USB selection"); uartproxy_wait_stage1() covers the DockChannel window. - secboot_flavour(): added with the Stage 1 flavours (f82845c) but never called. The flavour name is still published in the DT. - stage1_proxy_action_needs_cleanup(): only the host test called it. main.c checks the payload action itself, and the ordering test in test_stage1_proxy.py still guards the CDC cleanup before a native handoff. Drop the matching test lines. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Contributor
Author
|
Folded into #371 together with the other removals, one commit per set. |
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.
Problem
Four exported functions have no caller left:
rtkit_quiesce_ap()(src/rtkit.c)uartproxy_wait_dockchannel()(src/uartproxy.c)uartproxy_wait_stage1()covers the DockChannel windowsecboot_flavour()(src/secboot.c)flavour_namestage1_proxy_action_needs_cleanup()(src/stage1_proxy.c)main.cchecks the payload action itselfChange
Remove the four functions and their prototypes, plus the test lines that called them or checked their source.
rtkit_quiesce_ap_power()stays because the shutdown path uses it. The ordering test intest_stage1_proxy.py, which checks that CDC cleanup comes before a native hand-off, also stays. Net: -71 lines.Testing
RELEASE=1 CHAINLOADING=1(Stage 1),+ESP_STAGE2=1,SECBOOT=enforce SECBOOT_FLAVOUR=secure, andSPTM_VIRT=1 SPTM_VIRT_ESP=1 AURACTL=1. All link, image sizes are unchanged, and the warning lists match main's exactly in each configuration.pytest tests/python: 746 passed, 2 failed, 27 skipped, the same as main (the 2 failures aretest_loadobjs.py, where the buildbox'snmlists two symbols that share an address in the other order). The removed lines were assertions inside existing tests, so the test count is unchanged.Still to run
No hardware row: none of these functions could be reached at runtime before the change.
Evidence
traces/boot/20261120-deadweight-boot/on the lab S500.Assisted-by: LLM (Claude:Opus 5.5)