diff --git a/device/pci_device.c b/device/pci_device.c index 1a3a849fbb..469009fa60 100644 --- a/device/pci_device.c +++ b/device/pci_device.c @@ -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); diff --git a/util/dtc/flattree.c b/util/dtc/flattree.c index b97a7711c3..366c6c6f19 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%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); } diff --git a/util/lar/list.c b/util/lar/list.c index 2ec617f471..ea9b2eb207 100644 --- a/util/lar/list.c +++ b/util/lar/list.c @@ -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);