From c137aeec32a746e4a7bc7346aa2d8ae92472ddc4 Mon Sep 17 00:00:00 2001 From: qinwei1 Date: Thu, 5 Jan 2023 20:33:35 +0800 Subject: [PATCH] fs/vfs: add missed truncate/mmap callback at timerfd file_operation Signed-off-by: qinwei1 --- 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