Merge tag 'fsnotify-for_v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-starfive.git] / fs / notify / fanotify / fanotify.h
index b34246c..57f51a9 100644 (file)
@@ -452,7 +452,7 @@ static inline bool fanotify_is_error_event(u32 mask)
        return mask & FAN_FS_ERROR;
 }
 
-static inline struct path *fanotify_event_path(struct fanotify_event *event)
+static inline const struct path *fanotify_event_path(struct fanotify_event *event)
 {
        if (event->type == FANOTIFY_EVENT_TYPE_PATH)
                return &FANOTIFY_PE(event)->path;