Commit 915b95a0 authored by Anton Blanchard's avatar Anton Blanchard

ppc64: fix up warnings in lmb.c

parent 64291efc
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment