This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit b6d8a811bdf3e321ed6b14202a1f210c2dc2f1b1
Author: Marco Casaroli <[email protected]>
AuthorDate: Mon Oct 19 00:43:36 2026 +0200

    testing/drivers/rpmsgdev: Use struct pollfd_s in the poll method.
    
    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]>
---
 testing/drivers/rpmsgdev/testdev.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testing/drivers/rpmsgdev/testdev.c 
b/testing/drivers/rpmsgdev/testdev.c
index a00a64e52..9a1e7c7c7 100644
--- a/testing/drivers/rpmsgdev/testdev.c
+++ b/testing/drivers/rpmsgdev/testdev.c
@@ -38,6 +38,7 @@
 #include <poll.h>
 #if defined(__NuttX__) && (defined(CONFIG_DEV_RPMSG) || 
defined(CONFIG_DEV_RPMSG_SERVER))
 #include <nuttx/drivers/rpmsgdev.h>
+#include <nuttx/poll.h>
 #endif
 
 /****************************************************************************
@@ -75,7 +76,7 @@ static off_t   testdev_seek(FAR struct file *filep, off_t 
offset,
                             int whence);
 static int     testdev_ioctl(FAR struct file *filep, int cmd,
                              unsigned long arg);
-static int     testdev_poll(FAR struct file *filep, FAR struct pollfd *fds,
+static int     testdev_poll(FAR struct file *filep, FAR struct pollfd_s *fds,
                             bool setup);
 
 /****************************************************************************
@@ -223,7 +224,7 @@ static int testdev_ioctl(FAR struct file *filep, int cmd, 
unsigned long arg)
   return ret;
 }
 
-static int testdev_poll(FAR struct file *filep, FAR struct pollfd *fds,
+static int testdev_poll(FAR struct file *filep, FAR struct pollfd_s *fds,
                         bool setup)
 {
   if (!setup)

Reply via email to