From 0ca378bd558f3e803fb5c38feb9fbf8d367f7aed 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 01cadb57c60b5..6c8553160aa82 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