Skip to content

testing/drivers/rpmsgdev: Use struct pollfd_s in the poll method. - #3879

Merged
acassis merged 2 commits into
apache:masterfrom
casaroli:pollfd-testdev
Oct 28, 2026
Merged

acassis merged 2 commits into
apache:masterfrom
casaroli:pollfd-testdev

Conversation

@casaroli

@casaroli casaroli commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The poll() method of a driver takes struct pollfd_s from nuttx/poll.h after apache/nuttx#20796, where struct pollfd gets the POSIX layout and is only for user code. testing/drivers/rpmsgdev/testdev.c registers a driver with a poll method, so it follows the change.

The first commit fixes older style errors that tools/checkpatch.sh reports 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.c builds with the new struct pollfd. No change in behaviour.

Testing

qemu-armv8a:rpserver with CONFIG_DEV_RPMSG, CONFIG_DEV_RPMSG_SERVER and CONFIG_RPMSGDEV_TEST, against the nuttx PR: testdev.c compiles. The only compiler message is an older -Wformat warning at line 363 (%d for an ssize_t), which master also has on 64-bit targets. tools/checkpatch.sh -c -u -m -g passes.

@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/39176233234

@casaroli casaroli closed this Oct 19, 2026
@casaroli casaroli reopened this Oct 19, 2026
@casaroli
casaroli marked this pull request as draft October 19, 2026 01:52
@github-actions

Copy link
Copy Markdown

@casaroli casaroli closed this Oct 19, 2026
@casaroli casaroli reopened this Oct 19, 2026
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]>
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/39310456556

@casaroli
casaroli marked this pull request as ready for review October 27, 2026 23:58
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx-apps/actions/runs/40605673911

@acassis
acassis merged commit b6d8a81 into apache:master Oct 28, 2026
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants