Commit 5db9abd9 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] iSeries: Fix sparse warnings in setup.c

arch/powerpc/platforms/iseries/setup.c:111:27: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:113:23: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:117:27: warning: constant 0x000fffffffffffff is so big it is long
arch/powerpc/platforms/iseries/setup.c:127:28: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:129:24: warning: constant 0x100000000 is so big it is long
arch/powerpc/platforms/iseries/setup.c:233:5: warning: constant 0x000fffffffffffff is so big it is long
arch/powerpc/platforms/iseries/setup.c:235:5: warning: constant 0x000fffffffffffff is so big it is long
arch/powerpc/platforms/iseries/setup.c:319:6: warning: symbol 'mschunks_alloc' was not declared. Should it be static?
arch/powerpc/platforms/iseries/setup.c:661:6: warning: symbol 'iSeries_early_setup' was not declared. Should it be static?
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 26b6d5b1
...@@ -108,13 +108,13 @@ static unsigned long iSeries_process_Condor_mainstore_vpd( ...@@ -108,13 +108,13 @@ static unsigned long iSeries_process_Condor_mainstore_vpd(
* correctly. * correctly.
*/ */
mb_array[0].logicalStart = 0; mb_array[0].logicalStart = 0;
mb_array[0].logicalEnd = 0x100000000; mb_array[0].logicalEnd = 0x100000000UL;
mb_array[0].absStart = 0; mb_array[0].absStart = 0;
mb_array[0].absEnd = 0x100000000; mb_array[0].absEnd = 0x100000000UL;
if (holeSize) { if (holeSize) {
numMemoryBlocks = 2; numMemoryBlocks = 2;
holeStart = holeStart & 0x000fffffffffffff; holeStart = holeStart & 0x000fffffffffffffUL;
holeStart = addr_to_chunk(holeStart); holeStart = addr_to_chunk(holeStart);
holeFirstChunk = holeStart; holeFirstChunk = holeStart;
holeSize = addr_to_chunk(holeSize); holeSize = addr_to_chunk(holeSize);
...@@ -124,9 +124,9 @@ static unsigned long iSeries_process_Condor_mainstore_vpd( ...@@ -124,9 +124,9 @@ static unsigned long iSeries_process_Condor_mainstore_vpd(
mb_array[0].logicalEnd = holeFirstChunk; mb_array[0].logicalEnd = holeFirstChunk;
mb_array[0].absEnd = holeFirstChunk; mb_array[0].absEnd = holeFirstChunk;
mb_array[1].logicalStart = holeFirstChunk; mb_array[1].logicalStart = holeFirstChunk;
mb_array[1].logicalEnd = 0x100000000 - holeSizeChunks; mb_array[1].logicalEnd = 0x100000000UL - holeSizeChunks;
mb_array[1].absStart = holeFirstChunk + holeSizeChunks; mb_array[1].absStart = holeFirstChunk + holeSizeChunks;
mb_array[1].absEnd = 0x100000000; mb_array[1].absEnd = 0x100000000UL;
} }
return numMemoryBlocks; return numMemoryBlocks;
} }
...@@ -230,9 +230,9 @@ static unsigned long iSeries_process_Regatta_mainstore_vpd( ...@@ -230,9 +230,9 @@ static unsigned long iSeries_process_Regatta_mainstore_vpd(
mb_array[i].logicalEnd, mb_array[i].logicalEnd,
mb_array[i].absStart, mb_array[i].absEnd); mb_array[i].absStart, mb_array[i].absEnd);
mb_array[i].absStart = addr_to_chunk(mb_array[i].absStart & mb_array[i].absStart = addr_to_chunk(mb_array[i].absStart &
0x000fffffffffffff); 0x000fffffffffffffUL);
mb_array[i].absEnd = addr_to_chunk(mb_array[i].absEnd & mb_array[i].absEnd = addr_to_chunk(mb_array[i].absEnd &
0x000fffffffffffff); 0x000fffffffffffffUL);
mb_array[i].logicalStart = mb_array[i].logicalStart =
addr_to_chunk(mb_array[i].logicalStart); addr_to_chunk(mb_array[i].logicalStart);
mb_array[i].logicalEnd = addr_to_chunk(mb_array[i].logicalEnd); mb_array[i].logicalEnd = addr_to_chunk(mb_array[i].logicalEnd);
...@@ -316,7 +316,7 @@ struct mschunks_map mschunks_map = { ...@@ -316,7 +316,7 @@ struct mschunks_map mschunks_map = {
}; };
EXPORT_SYMBOL(mschunks_map); EXPORT_SYMBOL(mschunks_map);
void mschunks_alloc(unsigned long num_chunks) static void mschunks_alloc(unsigned long num_chunks)
{ {
klimit = _ALIGN(klimit, sizeof(u32)); klimit = _ALIGN(klimit, sizeof(u32));
mschunks_map.mapping = (u32 *)klimit; mschunks_map.mapping = (u32 *)klimit;
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#ifndef __ISERIES_SETUP_H__ #ifndef __ISERIES_SETUP_H__
#define __ISERIES_SETUP_H__ #define __ISERIES_SETUP_H__
extern void *iSeries_early_setup(void);
extern unsigned long iSeries_get_boot_time(void); extern unsigned long iSeries_get_boot_time(void);
extern int iSeries_set_rtc_time(struct rtc_time *tm); extern int iSeries_set_rtc_time(struct rtc_time *tm);
extern void iSeries_get_rtc_time(struct rtc_time *tm); extern void iSeries_get_rtc_time(struct rtc_time *tm);
......
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