Skip to content

Commit

Permalink
fanotify: FMODE_NONOTIFY and __O_SYNC in sparc conflict
Browse files Browse the repository at this point in the history
sparc used the same value as FMODE_NONOTIFY so change FMODE_NONOTIFY to be
something unique.

Signed-off-by: Wu Fengguang <[email protected]>
Signed-off-by: Eric Paris <[email protected]>
  • Loading branch information
Signed-off-by: Wu Fengguang authored and eparis committed Jul 28, 2010
1 parent ecf081d commit 12ed2e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/asm-generic/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/*
* FMODE_EXEC is 0x20
* FMODE_NONOTIFY is 0x800000
* FMODE_NONOTIFY is 0x1000000
* These cannot be used by userspace O_* until internal and external open
* flags are split.
* -Eric Paris
Expand Down
2 changes: 1 addition & 1 deletion include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct inodes_stat_t {
#define FMODE_RANDOM ((__force fmode_t)0x1000)

/* File was opened by fanotify and shouldn't generate fanotify events */
#define FMODE_NONOTIFY ((__force fmode_t)8388608)
#define FMODE_NONOTIFY ((__force fmode_t)16777216) /* 0x1000000 */

/*
* The below are the various read and write types that we support. Some of
Expand Down

0 comments on commit 12ed2e3

Please sign in to comment.