aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-02-08 12:53:52 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:59:01 -0400
commit59b0df211bd9699d7e0d01fcf9345a149f75b033 (patch)
tree0f6e8bebfa090aa5c1d91d9efc5c2b04aeeed05c /include/linux/fsnotify_backend.h
parent43ed7e16a8b47059d7f6ff67ba76f383a2421de3 (diff)
fsnotify: use unsigned char * for dentry->d_name.name
fsnotify was using char * when it passed around the d_name.name string internally but it is actually an unsigned char *. This patch switches fsnotify to use unsigned and should silence some pointer signess warnings which have popped out of xfs. I do not add -Wpointer-sign to the fsnotify code as there are still issues with kstrdup and strlen which would pop out needless warnings. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r--include/linux/fsnotify_backend.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index afc690192972..efe9ba321cf2 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -220,7 +220,7 @@ struct fsnotify_event {
220 __u32 mask; /* the type of access, bitwise OR for FS_* event types */ 220 __u32 mask; /* the type of access, bitwise OR for FS_* event types */
221 221
222 u32 sync_cookie; /* used to corrolate events, namely inotify mv events */ 222 u32 sync_cookie; /* used to corrolate events, namely inotify mv events */
223 char *file_name; 223 const unsigned char *file_name;
224 size_t name_len; 224 size_t name_len;
225 struct pid *tgid; 225 struct pid *tgid;
226 226
@@ -283,7 +283,7 @@ struct fsnotify_mark {
283 283
284/* main fsnotify call to send events */ 284/* main fsnotify call to send events */
285extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, 285extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
286 const char *name, u32 cookie); 286 const unsigned char *name, u32 cookie);
287extern void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask); 287extern void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask);
288extern void __fsnotify_inode_delete(struct inode *inode); 288extern void __fsnotify_inode_delete(struct inode *inode);
289extern void __fsnotify_vfsmount_delete(struct vfsmount *mnt); 289extern void __fsnotify_vfsmount_delete(struct vfsmount *mnt);
@@ -402,7 +402,8 @@ extern void fsnotify_unmount_inodes(struct list_head *list);
402 402
403/* put here because inotify does some weird stuff when destroying watches */ 403/* put here because inotify does some weird stuff when destroying watches */
404extern struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask, 404extern struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask,
405 void *data, int data_is, const char *name, 405 void *data, int data_is,
406 const unsigned char *name,
406 u32 cookie, gfp_t gfp); 407 u32 cookie, gfp_t gfp);
407 408
408/* fanotify likes to change events after they are on lists... */ 409/* fanotify likes to change events after they are on lists... */
@@ -413,7 +414,7 @@ extern int fsnotify_replace_event(struct fsnotify_event_holder *old_holder,
413#else 414#else
414 415
415static inline void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, 416static inline void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
416 const char *name, u32 cookie) 417 const unsigned char *name, u32 cookie)
417{} 418{}
418 419
419static inline void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask) 420static inline void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask)