Repository navigation
drivers/usbhost: Remove stale MAX3421E enumeration warning. - #20960
Merged
xiaoxiang781216 merged 1 commit intoOct 24, 2026
Merged
Conversation
Remove the REVISIT preprocessor warning in max3421e_enumerate(). Its unquoted apostrophe is diagnosed as a missing terminating character literal, which becomes a build error under -Werror even when preprocessor warnings are disabled. This fixes the stm32f103-minimum/usbhost CI failure reported in apache#20938 without changing runtime behavior. Validated with git diff --check and tools/checkpatch.sh. Reproduced the original diagnostic with arm-none-eabi-gcc 13.2.1 on Linux; the removed directive no longer produces the diagnostic. No full board build or hardware runtime test was performed. Assisted-by: Copilot SDK in VS Code Signed-off-by: Xiang Xiao <[email protected]>
xiaoxiang781216
force-pushed
the
fix/max3421e-ci-warning
branch
from
October 24, 2026 11:03
5393fb6 to
b1f27ac
Compare
|
michallenc
approved these changes
Oct 24, 2026
acassis
approved these changes
Oct 24, 2026
simbit18
approved these changes
Oct 24, 2026
This was referenced Oct 24, 2026
Merged
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
Remove the stale REVISIT
#warningfrommax3421e_enumerate(). The apostrophe in its unquoted text is parsed as an unterminated character literal. With-Werror, this fails the build even when preprocessor warnings are disabled.This fixes the
stm32f103-minimum/usbhostbuild failure observed in #20938:https://github.com/apache/nuttx/actions/runs/40071853385/job/120807219487?pr=20938
No dependencies or companion NuttX Apps changes are required.
Impact
Build-only fix for the MAX3421E USB host driver. Removes two lines without changing executable code, runtime behavior, public interfaces, or configuration.
Testing
Host: Linux. Compiler:
arm-none-eabi-gcc 13.2.1 20231009.Original CI failure (
stm32f103-minimum/usbhost):Locally reproduced the diagnostic by passing the original directive to:
After removing the directive, the same focused compiler check exits with status 0. This is a preprocessor diagnostic check, not a full driver or board build.
Validation on the upstream-based fix branch:
No full board build or hardware runtime test was performed. This change removes only a diagnostic directive; upstream CI must verify the complete board build.
Contribution status
AI assistance is disclosed in the commit's
Assisted-byandCo-authored-bytrailers. The commit currently has noSigned-off-by: NuttX requires that certification to be added by a human contributor, so human sign-off remains outstanding.