mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
venti: silence warnings in icache.c
This commit is contained in:
parent
1f441eaac4
commit
0e430b25b2
1 changed files with 4 additions and 4 deletions
|
@ -131,7 +131,7 @@ popout(IEntry *ie)
|
||||||
}
|
}
|
||||||
|
|
||||||
static IEntry*
|
static IEntry*
|
||||||
poplast(IEntry *list)
|
poplast(volatile IEntry *list)
|
||||||
{
|
{
|
||||||
if(list->prev == list)
|
if(list->prev == list)
|
||||||
return nil;
|
return nil;
|
||||||
|
@ -139,10 +139,10 @@ poplast(IEntry *list)
|
||||||
}
|
}
|
||||||
|
|
||||||
static IEntry*
|
static IEntry*
|
||||||
pushfirst(IEntry *list, IEntry *ie)
|
pushfirst(volatile IEntry *list, IEntry *ie)
|
||||||
{
|
{
|
||||||
popout(ie);
|
popout(ie);
|
||||||
ie->prev = list;
|
ie->prev = (IEntry*)list;
|
||||||
ie->next = list->next;
|
ie->next = list->next;
|
||||||
ie->prev->next = ie;
|
ie->prev->next = ie;
|
||||||
ie->next->prev = ie;
|
ie->next->prev = ie;
|
||||||
|
@ -311,7 +311,7 @@ fprint(2, "icache %,d bytes = %,d entries; %d scache\n", mem0, entries, scache);
|
||||||
|
|
||||||
icache.clean.prev = icache.clean.next = &icache.clean;
|
icache.clean.prev = icache.clean.next = &icache.clean;
|
||||||
icache.dirty.prev = icache.dirty.next = &icache.dirty;
|
icache.dirty.prev = icache.dirty.next = &icache.dirty;
|
||||||
icache.free.prev = icache.free.next = &icache.free;
|
icache.free.prev = icache.free.next = (IEntry*)&icache.free;
|
||||||
|
|
||||||
icache.hash = mkihash(entries);
|
icache.hash = mkihash(entries);
|
||||||
icache.nentries = entries;
|
icache.nentries = entries;
|
||||||
|
|
Loading…
Reference in a new issue