diff options
author | Eric Paris <eparis@redhat.com> | 2010-02-08 12:53:52 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:59:01 -0400 |
commit | 59b0df211bd9699d7e0d01fcf9345a149f75b033 (patch) | |
tree | 0f6e8bebfa090aa5c1d91d9efc5c2b04aeeed05c /fs/notify/notification.c | |
parent | 43ed7e16a8b47059d7f6ff67ba76f383a2421de3 (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 'fs/notify/notification.c')
-rw-r--r-- | fs/notify/notification.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/notify/notification.c b/fs/notify/notification.c index 2d50a40ab1e..b35faafacd3 100644 --- a/fs/notify/notification.c +++ b/fs/notify/notification.c | |||
@@ -370,8 +370,8 @@ struct fsnotify_event *fsnotify_clone_event(struct fsnotify_event *old_event) | |||
370 | * @name the filename, if available | 370 | * @name the filename, if available |
371 | */ | 371 | */ |
372 | struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask, void *data, | 372 | struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask, void *data, |
373 | int data_type, const char *name, u32 cookie, | 373 | int data_type, const unsigned char *name, |
374 | gfp_t gfp) | 374 | u32 cookie, gfp_t gfp) |
375 | { | 375 | { |
376 | struct fsnotify_event *event; | 376 | struct fsnotify_event *event; |
377 | 377 | ||