Fix some compiler warnings.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@202 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-03-06 12:46:32 +00:00
commit 273a9b4356
3 changed files with 4 additions and 4 deletions

View file

@ -720,7 +720,7 @@ struct device_operations default_pci_ops_bus = {
*/
static struct device_operations *get_pci_bridge_ops(struct device * dev)
{
unsigned pos;
// unsigned pos;
#if CONFIG_PCIX_PLUGIN_SUPPORT == 1
pos = pci_find_capability(dev, PCI_CAP_ID_PCIX);

View file

@ -1062,8 +1062,8 @@ void dt_to_C(FILE *f, struct boot_info *bi, int version, int boot_cpuid_phys)
*/
fprintf(f, "\tu64 reservemap[] = {\n");
for (re = bi->reservelist; re; re = re->next) {
fprintf(f, "\tu64\t0x%lx\n", re->re.address);
fprintf(f, "\tu64\t0x%lx\n", re->re.size);
fprintf(f, "\tu64\t0x%lx\n", (long unsigned int)re->re.address);
fprintf(f, "\tu64\t0x%lx\n", (long unsigned int)re->re.size);
}

View file

@ -89,7 +89,7 @@ int list_lar(int argc, char *argv[])
printf(" %s ", walk + sizeof(struct lar_header));
printf("(%d bytes @0x%lx)\n", ntohl(header->len),
(walk - inmap) + ntohl(header->offset));
(unsigned long)(walk - inmap) + ntohl(header->offset));
}
munmap(inmap, statbuf.st_size);