Repository navigation
testing/drivers/rpmsgdev: Use struct pollfd_s in the poll method. - #3879
Merged
Merged
Conversation
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
Fix the indentation of two switch statements and an if/else block that tools/checkpatch.sh reports, and the typo "regist" in the usage text. The code does not change. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
The poll() method of a driver takes struct pollfd_s from nuttx/poll.h. struct pollfd now has the POSIX layout and is only for user code. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
casaroli
force-pushed
the
pollfd-testdev
branch
from
October 19, 2026 19:22
93e7ccb to
15c4443
Compare
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
casaroli
marked this pull request as ready for review
October 27, 2026 23:58
xiaoxiang781216
approved these changes
Oct 28, 2026
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s):
|
acassis
approved these changes
Oct 28, 2026
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
The poll() method of a driver takes
struct pollfd_sfromnuttx/poll.hafter apache/nuttx#20796, wherestruct pollfdgets the POSIX layout and is only for user code.testing/drivers/rpmsgdev/testdev.cregisters a driver with a poll method, so it follows the change.The first commit fixes older style errors that
tools/checkpatch.shreports in the file: the indentation of two switch statements and an if/else block, and the typo "regist" in the usage text. The code does not change.Impact
testdev.cbuilds with the newstruct pollfd. No change in behaviour.Testing
qemu-armv8a:rpserverwithCONFIG_DEV_RPMSG,CONFIG_DEV_RPMSG_SERVERandCONFIG_RPMSGDEV_TEST, against the nuttx PR:testdev.ccompiles. The only compiler message is an older-Wformatwarning at line 363 (%dfor anssize_t), which master also has on 64-bit targets.tools/checkpatch.sh -c -u -m -gpasses.