diff options
Diffstat (limited to 'fs/udf/symlink.c')
-rw-r--r-- | fs/udf/symlink.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/udf/symlink.c b/fs/udf/symlink.c index c3265e1385d4..16064787d2b7 100644 --- a/fs/udf/symlink.c +++ b/fs/udf/symlink.c | |||
@@ -26,18 +26,17 @@ | |||
26 | #include <linux/time.h> | 26 | #include <linux/time.h> |
27 | #include <linux/mm.h> | 27 | #include <linux/mm.h> |
28 | #include <linux/stat.h> | 28 | #include <linux/stat.h> |
29 | #include <linux/slab.h> | ||
30 | #include <linux/pagemap.h> | 29 | #include <linux/pagemap.h> |
31 | #include <linux/smp_lock.h> | 30 | #include <linux/smp_lock.h> |
32 | #include <linux/buffer_head.h> | 31 | #include <linux/buffer_head.h> |
33 | #include "udf_i.h" | 32 | #include "udf_i.h" |
34 | 33 | ||
35 | static void udf_pc_to_char(struct super_block *sb, char *from, int fromlen, | 34 | static void udf_pc_to_char(struct super_block *sb, unsigned char *from, |
36 | char *to) | 35 | int fromlen, unsigned char *to) |
37 | { | 36 | { |
38 | struct pathComponent *pc; | 37 | struct pathComponent *pc; |
39 | int elen = 0; | 38 | int elen = 0; |
40 | char *p = to; | 39 | unsigned char *p = to; |
41 | 40 | ||
42 | while (elen < fromlen) { | 41 | while (elen < fromlen) { |
43 | pc = (struct pathComponent *)(from + elen); | 42 | pc = (struct pathComponent *)(from + elen); |
@@ -75,9 +74,9 @@ static int udf_symlink_filler(struct file *file, struct page *page) | |||
75 | { | 74 | { |
76 | struct inode *inode = page->mapping->host; | 75 | struct inode *inode = page->mapping->host; |
77 | struct buffer_head *bh = NULL; | 76 | struct buffer_head *bh = NULL; |
78 | char *symlink; | 77 | unsigned char *symlink; |
79 | int err = -EIO; | 78 | int err = -EIO; |
80 | char *p = kmap(page); | 79 | unsigned char *p = kmap(page); |
81 | struct udf_inode_info *iinfo; | 80 | struct udf_inode_info *iinfo; |
82 | 81 | ||
83 | lock_kernel(); | 82 | lock_kernel(); |