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

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


The following commit(s) were added to refs/heads/master by this push:
     new c137aeec32 fs/vfs: add missed truncate/mmap callback at timerfd 
file_operation
c137aeec32 is described below

commit c137aeec32a746e4a7bc7346aa2d8ae92472ddc4
Author: qinwei1 <[email protected]>
AuthorDate: Thu Jan 5 20:33:35 2023 +0800

    fs/vfs: add missed truncate/mmap callback at timerfd file_operation
    
    Signed-off-by: qinwei1 <[email protected]>
---
 fs/vfs/fs_timerfd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/vfs/fs_timerfd.c b/fs/vfs/fs_timerfd.c
index 01cadb57c6..6c8553160a 100644
--- a/fs/vfs/fs_timerfd.c
+++ b/fs/vfs/fs_timerfd.c
@@ -111,6 +111,8 @@ static const struct file_operations g_timerfd_fops =
   NULL,          /* write */
   NULL,          /* seek */
   NULL,          /* ioctl */
+  NULL,          /* truncate */
+  NULL,          /* mmap */
 #ifdef CONFIG_TIMER_FD_POLL
   timerfd_poll   /* poll */
 #endif

Reply via email to