Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
391e8bbd
Commit
391e8bbd
authored
Jan 31, 2010
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sanitize const/signedness for udf
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
072f98b4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
19 deletions
+19
-19
fs/udf/balloc.c
fs/udf/balloc.c
+1
-1
fs/udf/dir.c
fs/udf/dir.c
+2
-2
fs/udf/inode.c
fs/udf/inode.c
+1
-1
fs/udf/namei.c
fs/udf/namei.c
+10
-10
fs/udf/symlink.c
fs/udf/symlink.c
+5
-5
No files found.
fs/udf/balloc.c
View file @
391e8bbd
...
@@ -547,7 +547,7 @@ static void udf_table_free_blocks(struct super_block *sb,
...
@@ -547,7 +547,7 @@ static void udf_table_free_blocks(struct super_block *sb,
}
}
if
(
epos
.
offset
+
(
2
*
adsize
)
>
sb
->
s_blocksize
)
{
if
(
epos
.
offset
+
(
2
*
adsize
)
>
sb
->
s_blocksize
)
{
char
*
sptr
,
*
dptr
;
unsigned
char
*
sptr
,
*
dptr
;
int
loffset
;
int
loffset
;
brelse
(
oepos
.
bh
);
brelse
(
oepos
.
bh
);
...
...
fs/udf/dir.c
View file @
391e8bbd
...
@@ -45,8 +45,8 @@ static int do_udf_readdir(struct inode *dir, struct file *filp,
...
@@ -45,8 +45,8 @@ static int do_udf_readdir(struct inode *dir, struct file *filp,
int
block
,
iblock
;
int
block
,
iblock
;
loff_t
nf_pos
=
(
filp
->
f_pos
-
1
)
<<
2
;
loff_t
nf_pos
=
(
filp
->
f_pos
-
1
)
<<
2
;
int
flen
;
int
flen
;
char
*
fname
=
NULL
;
unsigned
char
*
fname
=
NULL
;
char
*
nameptr
;
unsigned
char
*
nameptr
;
uint16_t
liu
;
uint16_t
liu
;
uint8_t
lfi
;
uint8_t
lfi
;
loff_t
size
=
udf_ext0_offset
(
dir
)
+
dir
->
i_size
;
loff_t
size
=
udf_ext0_offset
(
dir
)
+
dir
->
i_size
;
...
...
fs/udf/inode.c
View file @
391e8bbd
...
@@ -1672,7 +1672,7 @@ int8_t udf_add_aext(struct inode *inode, struct extent_position *epos,
...
@@ -1672,7 +1672,7 @@ int8_t udf_add_aext(struct inode *inode, struct extent_position *epos,
return
-
1
;
return
-
1
;
if
(
epos
->
offset
+
(
2
*
adsize
)
>
inode
->
i_sb
->
s_blocksize
)
{
if
(
epos
->
offset
+
(
2
*
adsize
)
>
inode
->
i_sb
->
s_blocksize
)
{
char
*
sptr
,
*
dptr
;
unsigned
char
*
sptr
,
*
dptr
;
struct
buffer_head
*
nbh
;
struct
buffer_head
*
nbh
;
int
err
,
loffset
;
int
err
,
loffset
;
struct
kernel_lb_addr
obloc
=
epos
->
block
;
struct
kernel_lb_addr
obloc
=
epos
->
block
;
...
...
fs/udf/namei.c
View file @
391e8bbd
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
#include <linux/crc-itu-t.h>
#include <linux/crc-itu-t.h>
#include <linux/exportfs.h>
#include <linux/exportfs.h>
static
inline
int
udf_match
(
int
len1
,
const
char
*
name1
,
int
len2
,
static
inline
int
udf_match
(
int
len1
,
const
unsigned
char
*
name1
,
int
len2
,
const
char
*
name2
)
const
unsigned
char
*
name2
)
{
{
if
(
len1
!=
len2
)
if
(
len1
!=
len2
)
return
0
;
return
0
;
...
@@ -142,15 +142,15 @@ int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi,
...
@@ -142,15 +142,15 @@ int udf_write_fi(struct inode *inode, struct fileIdentDesc *cfi,
}
}
static
struct
fileIdentDesc
*
udf_find_entry
(
struct
inode
*
dir
,
static
struct
fileIdentDesc
*
udf_find_entry
(
struct
inode
*
dir
,
struct
qstr
*
child
,
const
struct
qstr
*
child
,
struct
udf_fileident_bh
*
fibh
,
struct
udf_fileident_bh
*
fibh
,
struct
fileIdentDesc
*
cfi
)
struct
fileIdentDesc
*
cfi
)
{
{
struct
fileIdentDesc
*
fi
=
NULL
;
struct
fileIdentDesc
*
fi
=
NULL
;
loff_t
f_pos
;
loff_t
f_pos
;
int
block
,
flen
;
int
block
,
flen
;
char
*
fname
=
NULL
;
unsigned
char
*
fname
=
NULL
;
char
*
nameptr
;
unsigned
char
*
nameptr
;
uint8_t
lfi
;
uint8_t
lfi
;
uint16_t
liu
;
uint16_t
liu
;
loff_t
size
;
loff_t
size
;
...
@@ -308,7 +308,7 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir,
...
@@ -308,7 +308,7 @@ static struct fileIdentDesc *udf_add_entry(struct inode *dir,
{
{
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
super_block
*
sb
=
dir
->
i_sb
;
struct
fileIdentDesc
*
fi
=
NULL
;
struct
fileIdentDesc
*
fi
=
NULL
;
char
*
name
=
NULL
;
unsigned
char
*
name
=
NULL
;
int
namelen
;
int
namelen
;
loff_t
f_pos
;
loff_t
f_pos
;
loff_t
size
=
udf_ext0_offset
(
dir
)
+
dir
->
i_size
;
loff_t
size
=
udf_ext0_offset
(
dir
)
+
dir
->
i_size
;
...
@@ -885,16 +885,16 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
...
@@ -885,16 +885,16 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
{
{
struct
inode
*
inode
;
struct
inode
*
inode
;
struct
pathComponent
*
pc
;
struct
pathComponent
*
pc
;
char
*
compstart
;
c
onst
c
har
*
compstart
;
struct
udf_fileident_bh
fibh
;
struct
udf_fileident_bh
fibh
;
struct
extent_position
epos
=
{};
struct
extent_position
epos
=
{};
int
eoffset
,
elen
=
0
;
int
eoffset
,
elen
=
0
;
struct
fileIdentDesc
*
fi
;
struct
fileIdentDesc
*
fi
;
struct
fileIdentDesc
cfi
;
struct
fileIdentDesc
cfi
;
char
*
ea
;
uint8_t
*
ea
;
int
err
;
int
err
;
int
block
;
int
block
;
char
*
name
=
NULL
;
unsigned
char
*
name
=
NULL
;
int
namelen
;
int
namelen
;
struct
buffer_head
*
bh
;
struct
buffer_head
*
bh
;
struct
udf_inode_info
*
iinfo
;
struct
udf_inode_info
*
iinfo
;
...
@@ -970,7 +970,7 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
...
@@ -970,7 +970,7 @@ static int udf_symlink(struct inode *dir, struct dentry *dentry,
pc
=
(
struct
pathComponent
*
)(
ea
+
elen
);
pc
=
(
struct
pathComponent
*
)(
ea
+
elen
);
compstart
=
(
char
*
)
symname
;
compstart
=
symname
;
do
{
do
{
symname
++
;
symname
++
;
...
...
fs/udf/symlink.c
View file @
391e8bbd
...
@@ -32,12 +32,12 @@
...
@@ -32,12 +32,12 @@
#include <linux/buffer_head.h>
#include <linux/buffer_head.h>
#include "udf_i.h"
#include "udf_i.h"
static
void
udf_pc_to_char
(
struct
super_block
*
sb
,
char
*
from
,
int
fromlen
,
static
void
udf_pc_to_char
(
struct
super_block
*
sb
,
unsigned
char
*
from
,
char
*
to
)
int
fromlen
,
unsigned
char
*
to
)
{
{
struct
pathComponent
*
pc
;
struct
pathComponent
*
pc
;
int
elen
=
0
;
int
elen
=
0
;
char
*
p
=
to
;
unsigned
char
*
p
=
to
;
while
(
elen
<
fromlen
)
{
while
(
elen
<
fromlen
)
{
pc
=
(
struct
pathComponent
*
)(
from
+
elen
);
pc
=
(
struct
pathComponent
*
)(
from
+
elen
);
...
@@ -75,9 +75,9 @@ static int udf_symlink_filler(struct file *file, struct page *page)
...
@@ -75,9 +75,9 @@ static int udf_symlink_filler(struct file *file, struct page *page)
{
{
struct
inode
*
inode
=
page
->
mapping
->
host
;
struct
inode
*
inode
=
page
->
mapping
->
host
;
struct
buffer_head
*
bh
=
NULL
;
struct
buffer_head
*
bh
=
NULL
;
char
*
symlink
;
unsigned
char
*
symlink
;
int
err
=
-
EIO
;
int
err
=
-
EIO
;
char
*
p
=
kmap
(
page
);
unsigned
char
*
p
=
kmap
(
page
);
struct
udf_inode_info
*
iinfo
;
struct
udf_inode_info
*
iinfo
;
lock_kernel
();
lock_kernel
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment