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
Kirill Smelkov
linux
Commits
915b95a0
Commit
915b95a0
authored
Apr 09, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: fix up warnings in lmb.c
parent
64291efc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
arch/ppc64/kernel/lmb.c
arch/ppc64/kernel/lmb.c
+4
-2
No files found.
arch/ppc64/kernel/lmb.c
View file @
915b95a0
...
@@ -91,12 +91,15 @@ static __inline__ long cnt_trailing_zeros(unsigned long mask)
...
@@ -91,12 +91,15 @@ static __inline__ long cnt_trailing_zeros(unsigned long mask)
void
void
lmb_analyze
(
void
)
lmb_analyze
(
void
)
{
{
unsigned
long
i
,
physbase
=
0
;
unsigned
long
i
;
unsigned
long
mem_size
=
0
;
unsigned
long
mem_size
=
0
;
unsigned
long
io_size
=
0
;
unsigned
long
io_size
=
0
;
unsigned
long
size_mask
=
0
;
unsigned
long
size_mask
=
0
;
unsigned
long
offset
=
reloc_offset
();
unsigned
long
offset
=
reloc_offset
();
struct
lmb
*
_lmb
=
PTRRELOC
(
&
lmb
);
struct
lmb
*
_lmb
=
PTRRELOC
(
&
lmb
);
#ifdef CONFIG_MSCHUNKS
unsigned
long
physbase
=
0
;
#endif
for
(
i
=
0
;
i
<
_lmb
->
memory
.
cnt
;
i
++
)
{
for
(
i
=
0
;
i
<
_lmb
->
memory
.
cnt
;
i
++
)
{
unsigned
long
lmb_type
=
_lmb
->
memory
.
region
[
i
].
type
;
unsigned
long
lmb_type
=
_lmb
->
memory
.
region
[
i
].
type
;
...
@@ -318,7 +321,6 @@ lmb_end_of_DRAM(void)
...
@@ -318,7 +321,6 @@ lmb_end_of_DRAM(void)
unsigned
long
idx
;
unsigned
long
idx
;
for
(
idx
=
_mem
->
cnt
-
1
;
idx
>=
0
;
idx
--
)
{
for
(
idx
=
_mem
->
cnt
-
1
;
idx
>=
0
;
idx
--
)
{
unsigned
long
lastbase
,
lastsize
;
if
(
_mem
->
region
[
idx
].
type
!=
LMB_MEMORY_AREA
)
if
(
_mem
->
region
[
idx
].
type
!=
LMB_MEMORY_AREA
)
continue
;
continue
;
#ifdef CONFIG_MSCHUNKS
#ifdef CONFIG_MSCHUNKS
...
...
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