summaryrefslogtreecommitdiffstats
path: root/src/kernel/pagemgr.C
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-08-19 12:08:01 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-08-19 12:08:01 -0500
commit6dbab3072e8f50e25137fa53c7ffce0d111c2338 (patch)
treee28281185d0c4359e435bf0fbc2c4bd41b19c6b7 /src/kernel/pagemgr.C
parentfad284f4af86149a8bc78c61bb99f1a1e30e7b68 (diff)
downloadtalos-hostboot-6dbab3072e8f50e25137fa53c7ffce0d111c2338.tar.gz
talos-hostboot-6dbab3072e8f50e25137fa53c7ffce0d111c2338.zip
Enable -Wall and fix warnings.
Diffstat (limited to 'src/kernel/pagemgr.C')
-rw-r--r--src/kernel/pagemgr.C10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/pagemgr.C b/src/kernel/pagemgr.C
index a184ee23f..022b642b0 100644
--- a/src/kernel/pagemgr.C
+++ b/src/kernel/pagemgr.C
@@ -42,7 +42,7 @@ PageManager::PageManager()
size_t page_length = BUCKETS-1;
while(length > 0)
{
- while (length < (1 << page_length))
+ while (length < (size_t)(1 << page_length))
page_length--;
first_page[page_length].push(page);
@@ -55,8 +55,8 @@ PageManager::PageManager()
void* PageManager::_allocatePage(size_t n)
{
- int which_bucket = 0;
- while (n > (1 << which_bucket)) which_bucket++;
+ size_t which_bucket = 0;
+ while (n > (size_t)(1 << which_bucket)) which_bucket++;
int retries = 0;
page_t* page = (page_t*)NULL;
@@ -80,8 +80,8 @@ void PageManager::_freePage(void* p, size_t n)
{
if ((NULL == p) || (0 == n)) return;
- int which_bucket = 0;
- while (n > (1 << which_bucket)) which_bucket++;
+ size_t which_bucket = 0;
+ while (n > (size_t)(1 << which_bucket)) which_bucket++;
push_bucket((page_t*)p, which_bucket);
return;
OpenPOWER on IntegriCloud