diff --git a/device/device.c b/device/device.c index a2842c3ab0..46fd965822 100644 --- a/device/device.c +++ b/device/device.c @@ -670,7 +670,7 @@ unsigned int dev_phase3_scan(struct device * busdevice, unsigned int max) { printk(BIOS_INFO, "%s: %s: busdevice %p enabled %d ops %p\n" , __FUNCTION__, busdevice->dtsname, - busdevice, busdevice ? busdevice->enabled : NULL, + busdevice, busdevice ? busdevice->enabled : 0, busdevice ? busdevice->ops : NULL); printk(BIOS_INFO, "%s: can not scan from here, returning %d\n", __FUNCTION__, max); return max; diff --git a/device/pci_device.c b/device/pci_device.c index 2a1bb438e8..1a3a849fbb 100644 --- a/device/pci_device.c +++ b/device/pci_device.c @@ -779,7 +779,9 @@ static struct device_operations *get_pci_bridge_ops(struct device * dev) */ static void set_pci_ops(struct device *dev) { +#if 0 struct pci_driver *driver; +#endif if (dev->ops) { printk(BIOS_INFO, "%s: dev %p(%s) already has ops %p\n", __func__, dev, dev->dtsname, dev->ops); return; diff --git a/util/dtc/flattree.c b/util/dtc/flattree.c index b93776712a..b97a7711c3 100644 --- a/util/dtc/flattree.c +++ b/util/dtc/flattree.c @@ -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%qx\n", re->re.address); - fprintf(f, "\tu64\t0x%qx\n", re->re.size); + fprintf(f, "\tu64\t0x%lx\n", re->re.address); + fprintf(f, "\tu64\t0x%lx\n", re->re.size); } @@ -1103,7 +1103,7 @@ labeltree(struct node *tree) /* the root, weirdly enough, is last on the 'next' chain. yuck. */ void fix_next(struct node *root){ extern struct node *first_node; - struct node *next2last, *next; + struct node *next2last=NULL, *next; for(next = first_node; next; next = next->next) if (next->next == root) next2last = next; diff --git a/util/lar/list.c b/util/lar/list.c index 3ad02220d1..2ec617f471 100644 --- a/util/lar/list.c +++ b/util/lar/list.c @@ -88,7 +88,7 @@ int list_lar(int argc, char *argv[]) printf(" %s ", walk + sizeof(struct lar_header)); - printf("(%d bytes @0x%x)\n", ntohl(header->len), + printf("(%d bytes @0x%lx)\n", ntohl(header->len), (walk - inmap) + ntohl(header->offset)); }