summaryrefslogtreecommitdiffstats
path: root/fs/notify/fanotify/fanotify.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-12-17 21:24:29 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:59 -0400
commit88380fe66e0ac22529f5426ab27d67da00ed2628 (patch)
tree2585cd0b8407263628696476be7aa4f5b7d24a1b /fs/notify/fanotify/fanotify.h
parentf3640192c0a177506ec08ab07ed3178b912574da (diff)
downloadlinux-88380fe66e0ac22529f5426ab27d67da00ed2628.tar.gz
linux-88380fe66e0ac22529f5426ab27d67da00ed2628.tar.bz2
linux-88380fe66e0ac22529f5426ab27d67da00ed2628.zip
fanotify: remove fanotify.h declarations
fanotify_mark_validate functions are all needlessly declared in headers as static inlines. Instead just do the checks where they are needed for code readability. Signed-off-by: Andreas Gruenbacher <agruen@suse.de> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fanotify/fanotify.h')
-rw-r--r--fs/notify/fanotify/fanotify.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/notify/fanotify/fanotify.h b/fs/notify/fanotify/fanotify.h
index 5608783c6bca..4d5723a74a8e 100644
--- a/fs/notify/fanotify/fanotify.h
+++ b/fs/notify/fanotify/fanotify.h
@@ -6,31 +6,6 @@
extern const struct fsnotify_ops fanotify_fsnotify_ops;
-static inline bool fanotify_mark_flags_valid(unsigned int flags)
-{
- /* must be either and add or a remove */
- if (!(flags & (FAN_MARK_ADD | FAN_MARK_REMOVE)))
- return false;
-
- /* cannot be both add and remove */
- if ((flags & FAN_MARK_ADD) &&
- (flags & FAN_MARK_REMOVE))
- return false;
-
- /* cannot have more flags than we know about */
- if (flags & ~FAN_ALL_MARK_FLAGS)
- return false;
-
- return true;
-}
-
-static inline bool fanotify_mask_valid(__u32 mask)
-{
- if (mask & ~((__u32)FAN_ALL_INCOMING_EVENTS))
- return false;
- return true;
-}
-
static inline __u32 fanotify_outgoing_mask(__u32 mask)
{
return mask & FAN_ALL_OUTGOING_EVENTS;