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
0f07a0be
Commit
0f07a0be
authored
Dec 10, 2008
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] [NAND] Remove strange u_int64_t types from nandsim
Signed-off-by:
David Woodhouse
<
David.Woodhouse@intel.com
>
parent
69423d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/mtd/nand/nandsim.c
drivers/mtd/nand/nandsim.c
+5
-5
No files found.
drivers/mtd/nand/nandsim.c
View file @
0f07a0be
...
...
@@ -535,7 +535,7 @@ static char *get_partition_name(int i)
return
kstrdup
(
buf
,
GFP_KERNEL
);
}
static
u
_int64_t
divide
(
u_int64_t
n
,
u_
int32_t
d
)
static
u
int64_t
divide
(
uint64_t
n
,
u
int32_t
d
)
{
do_div
(
n
,
d
);
return
n
;
...
...
@@ -551,8 +551,8 @@ static int init_nandsim(struct mtd_info *mtd)
struct
nand_chip
*
chip
=
(
struct
nand_chip
*
)
mtd
->
priv
;
struct
nandsim
*
ns
=
(
struct
nandsim
*
)(
chip
->
priv
);
int
i
,
ret
=
0
;
u
_
int64_t
remains
;
u
_
int64_t
next_offset
;
uint64_t
remains
;
uint64_t
next_offset
;
if
(
NS_IS_INITIALIZED
(
ns
))
{
NS_ERR
(
"init_nandsim: nandsim is already initialized
\n
"
);
...
...
@@ -619,7 +619,7 @@ static int init_nandsim(struct mtd_info *mtd)
remains
=
ns
->
geom
.
totsz
;
next_offset
=
0
;
for
(
i
=
0
;
i
<
parts_num
;
++
i
)
{
u
_int64_t
part_sz
=
(
u_
int64_t
)
parts
[
i
]
*
ns
->
geom
.
secsz
;
u
int64_t
part_sz
=
(
u
int64_t
)
parts
[
i
]
*
ns
->
geom
.
secsz
;
if
(
!
part_sz
||
part_sz
>
remains
)
{
NS_ERR
(
"bad partition size.
\n
"
);
...
...
@@ -2296,7 +2296,7 @@ static int __init ns_init_module(void)
}
if
(
overridesize
)
{
u
_int64_t
new_size
=
(
u_
int64_t
)
nsmtd
->
erasesize
<<
overridesize
;
u
int64_t
new_size
=
(
u
int64_t
)
nsmtd
->
erasesize
<<
overridesize
;
if
(
new_size
>>
overridesize
!=
nsmtd
->
erasesize
)
{
NS_ERR
(
"overridesize is too big
\n
"
);
goto
err_exit
;
...
...
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