Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sparc64: Use unsigned long long for u64.

Andrew Morton wrote:

People keep on doing

printk("%llu", some_u64);

testing it only on x86_64 and this generates a warning storm on
powerpc, sparc64, etc. Because they use `long', not `long long'.

Quite a few 64-bit architectures are using `long' for their
s64/u64 types. We should convert them all to `long long'.

Update types.h so we use unsigned long long for u64 and
fix all warnings in sparc64 code.
Tested with an allnoconfig, defconfig and allmodconfig builds.

This patch introduces additional warnings in several drivers.
These will be dealt with in separate patches.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Sam Ravnborg and committed by
David S. Miller
90181136 0157141a

+71 -71
+1 -1
arch/sparc/include/asm/timer_64.h
··· 10 10 #include <linux/init.h> 11 11 12 12 struct sparc64_tick_ops { 13 - unsigned long (*get_tick)(void); 13 + unsigned long long (*get_tick)(void); 14 14 int (*add_compare)(unsigned long); 15 15 unsigned long softint_mask; 16 16 void (*disable_irq)(void);
+1 -1
arch/sparc/include/asm/types.h
··· 11 11 #if defined(__sparc__) && defined(__arch64__) 12 12 13 13 /*** SPARC 64 bit ***/ 14 - #include <asm-generic/int-l64.h> 14 + #include <asm-generic/int-ll64.h> 15 15 16 16 #ifndef __ASSEMBLY__ 17 17
+17 -17
arch/sparc/kernel/ds.c
··· 286 286 287 287 rp = (struct ds_md_update_req *) (dpkt + 1); 288 288 289 - printk(KERN_INFO "ds-%lu: Machine description update.\n", dp->id); 289 + printk(KERN_INFO "ds-%llu: Machine description update.\n", dp->id); 290 290 291 291 mdesc_update(); 292 292 ··· 325 325 326 326 rp = (struct ds_shutdown_req *) (dpkt + 1); 327 327 328 - printk(KERN_ALERT "ds-%lu: Shutdown request from " 328 + printk(KERN_ALERT "ds-%llu: Shutdown request from " 329 329 "LDOM manager received.\n", dp->id); 330 330 331 331 memset(&pkt, 0, sizeof(pkt)); ··· 365 365 366 366 rp = (struct ds_panic_req *) (dpkt + 1); 367 367 368 - printk(KERN_ALERT "ds-%lu: Panic request from " 368 + printk(KERN_ALERT "ds-%llu: Panic request from " 369 369 "LDOM manager received.\n", dp->id); 370 370 371 371 memset(&pkt, 0, sizeof(pkt)); ··· 549 549 for_each_cpu_mask(cpu, *mask) { 550 550 int err; 551 551 552 - printk(KERN_INFO "ds-%lu: Starting cpu %d...\n", 552 + printk(KERN_INFO "ds-%llu: Starting cpu %d...\n", 553 553 dp->id, cpu); 554 554 err = cpu_up(cpu); 555 555 if (err) { ··· 565 565 res = DR_CPU_RES_CPU_NOT_RESPONDING; 566 566 } 567 567 568 - printk(KERN_INFO "ds-%lu: CPU startup failed err=%d\n", 568 + printk(KERN_INFO "ds-%llu: CPU startup failed err=%d\n", 569 569 dp->id, err); 570 570 dr_cpu_mark(resp, cpu, ncpus, res, stat); 571 571 } ··· 605 605 for_each_cpu_mask(cpu, *mask) { 606 606 int err; 607 607 608 - printk(KERN_INFO "ds-%lu: Shutting down cpu %d...\n", 608 + printk(KERN_INFO "ds-%llu: Shutting down cpu %d...\n", 609 609 dp->id, cpu); 610 610 err = cpu_down(cpu); 611 611 if (err) ··· 684 684 685 685 rp = (struct ds_pri_msg *) (dpkt + 1); 686 686 687 - printk(KERN_INFO "ds-%lu: PRI REQ [%lx:%lx], len=%d\n", 687 + printk(KERN_INFO "ds-%llu: PRI REQ [%llx:%llx], len=%d\n", 688 688 dp->id, rp->req_num, rp->type, len); 689 689 } 690 690 ··· 816 816 817 817 if (ds_var_doorbell == 0 || 818 818 ds_var_response != DS_VAR_SUCCESS) 819 - printk(KERN_ERR "ds-%lu: var-config [%s:%s] " 819 + printk(KERN_ERR "ds-%llu: var-config [%s:%s] " 820 820 "failed, response(%d).\n", 821 821 dp->id, var, value, 822 822 ds_var_response); ··· 850 850 851 851 static void ds_conn_reset(struct ds_info *dp) 852 852 { 853 - printk(KERN_ERR "ds-%lu: ds_conn_reset() from %p\n", 853 + printk(KERN_ERR "ds-%llu: ds_conn_reset() from %p\n", 854 854 dp->id, __builtin_return_address(0)); 855 855 } 856 856 ··· 912 912 struct ds_cap_state *cp = find_cap(dp, ap->handle); 913 913 914 914 if (!cp) { 915 - printk(KERN_ERR "ds-%lu: REG ACK for unknown " 916 - "handle %lx\n", dp->id, ap->handle); 915 + printk(KERN_ERR "ds-%llu: REG ACK for unknown " 916 + "handle %llx\n", dp->id, ap->handle); 917 917 return 0; 918 918 } 919 - printk(KERN_INFO "ds-%lu: Registered %s service.\n", 919 + printk(KERN_INFO "ds-%llu: Registered %s service.\n", 920 920 dp->id, cp->service_id); 921 921 cp->state = CAP_STATE_REGISTERED; 922 922 } else if (pkt->type == DS_REG_NACK) { ··· 924 924 struct ds_cap_state *cp = find_cap(dp, np->handle); 925 925 926 926 if (!cp) { 927 - printk(KERN_ERR "ds-%lu: REG NACK for " 928 - "unknown handle %lx\n", 927 + printk(KERN_ERR "ds-%llu: REG NACK for " 928 + "unknown handle %llx\n", 929 929 dp->id, np->handle); 930 930 return 0; 931 931 } ··· 982 982 int req_len = qp->req_len; 983 983 984 984 if (!cp) { 985 - printk(KERN_ERR "ds-%lu: Data for unknown " 986 - "handle %lu\n", 985 + printk(KERN_ERR "ds-%llu: Data for unknown " 986 + "handle %llu\n", 987 987 dp->id, dpkt->handle); 988 988 989 989 spin_lock_irqsave(&ds_lock, flags); ··· 1085 1085 } 1086 1086 1087 1087 if (event != LDC_EVENT_DATA_READY) { 1088 - printk(KERN_WARNING "ds-%lu: Unexpected LDC event %d\n", 1088 + printk(KERN_WARNING "ds-%llu: Unexpected LDC event %d\n", 1089 1089 dp->id, event); 1090 1090 spin_unlock_irqrestore(&ds_lock, flags); 1091 1091 return;
+1 -1
arch/sparc/kernel/iommu.c
··· 434 434 val = iommu_read(matchreg); 435 435 if (unlikely(val)) { 436 436 printk(KERN_WARNING "strbuf_flush: ctx flush " 437 - "timeout matchreg[%lx] ctx[%lx]\n", 437 + "timeout matchreg[%llx] ctx[%lx]\n", 438 438 val, ctx); 439 439 goto do_page_flush; 440 440 }
+7 -7
arch/sparc/kernel/mdesc.c
··· 536 536 537 537 v = mdesc_get_property(hp, pn, "hostid", NULL); 538 538 if (v) 539 - printk("PLATFORM: hostid [%08lx]\n", *v); 539 + printk("PLATFORM: hostid [%08llx]\n", *v); 540 540 v = mdesc_get_property(hp, pn, "serial#", NULL); 541 541 if (v) 542 - printk("PLATFORM: serial# [%08lx]\n", *v); 542 + printk("PLATFORM: serial# [%08llx]\n", *v); 543 543 v = mdesc_get_property(hp, pn, "stick-frequency", NULL); 544 - printk("PLATFORM: stick-frequency [%08lx]\n", *v); 544 + printk("PLATFORM: stick-frequency [%08llx]\n", *v); 545 545 v = mdesc_get_property(hp, pn, "mac-address", NULL); 546 546 if (v) 547 - printk("PLATFORM: mac-address [%lx]\n", *v); 547 + printk("PLATFORM: mac-address [%llx]\n", *v); 548 548 v = mdesc_get_property(hp, pn, "watchdog-resolution", NULL); 549 549 if (v) 550 - printk("PLATFORM: watchdog-resolution [%lu ms]\n", *v); 550 + printk("PLATFORM: watchdog-resolution [%llu ms]\n", *v); 551 551 v = mdesc_get_property(hp, pn, "watchdog-max-timeout", NULL); 552 552 if (v) 553 - printk("PLATFORM: watchdog-max-timeout [%lu ms]\n", *v); 553 + printk("PLATFORM: watchdog-max-timeout [%llu ms]\n", *v); 554 554 v = mdesc_get_property(hp, pn, "max-cpus", NULL); 555 555 if (v) 556 - printk("PLATFORM: max-cpus [%lu]\n", *v); 556 + printk("PLATFORM: max-cpus [%llu]\n", *v); 557 557 558 558 #ifdef CONFIG_SMP 559 559 {
+1 -1
arch/sparc/kernel/of_device_64.c
··· 554 554 memset(r, 0, sizeof(*r)); 555 555 556 556 if (of_resource_verbose) 557 - printk("%s reg[%d] -> %lx\n", 557 + printk("%s reg[%d] -> %llx\n", 558 558 op->node->full_name, index, 559 559 result); 560 560
+1 -1
arch/sparc/kernel/pci.c
··· 223 223 continue; 224 224 i = addrs[0] & 0xff; 225 225 if (ofpci_verbose) 226 - printk(" start: %lx, end: %lx, i: %x\n", 226 + printk(" start: %llx, end: %llx, i: %x\n", 227 227 op_res->start, op_res->end, i); 228 228 229 229 if (PCI_BASE_ADDRESS_0 <= i && i <= PCI_BASE_ADDRESS_5) {
+1 -1
arch/sparc/kernel/pci_common.c
··· 457 457 prom_halt(); 458 458 } 459 459 460 - printk("%s: PCI IO[%lx] MEM[%lx]\n", 460 + printk("%s: PCI IO[%llx] MEM[%llx]\n", 461 461 pbm->name, 462 462 pbm->io_space.start, 463 463 pbm->mem_space.start);
+2 -2
arch/sparc/kernel/pci_msi.c
··· 426 426 pbm->name, 427 427 pbm->msi_first, pbm->msi_num, pbm->msi_data_mask, 428 428 pbm->msix_data_width); 429 - printk(KERN_INFO "%s: MSI addr32[0x%lx:0x%x] " 430 - "addr64[0x%lx:0x%x]\n", 429 + printk(KERN_INFO "%s: MSI addr32[0x%llx:0x%x] " 430 + "addr64[0x%llx:0x%x]\n", 431 431 pbm->name, 432 432 pbm->msi32_start, pbm->msi32_len, 433 433 pbm->msi64_start, pbm->msi64_len);
+1 -1
arch/sparc/kernel/pci_schizo.c
··· 794 794 pbm->controller_regs + SCHIZO_SAFARI_ERRLOG); 795 795 796 796 if (!(errlog & BUS_ERROR_UNMAP)) { 797 - printk("%s: Unexpected Safari/JBUS error interrupt, errlog[%016lx]\n", 797 + printk("%s: Unexpected Safari/JBUS error interrupt, errlog[%016llx]\n", 798 798 pbm->name, errlog); 799 799 800 800 return IRQ_HANDLED;
+1 -1
arch/sparc/kernel/pci_sun4v.c
··· 73 73 if (unlikely(num < 0)) { 74 74 if (printk_ratelimit()) 75 75 printk("iommu_batch_flush: IOMMU map of " 76 - "[%08lx:%08lx:%lx:%lx:%lx] failed with " 76 + "[%08lx:%08llx:%lx:%lx:%lx] failed with " 77 77 "status %ld\n", 78 78 devhandle, HV_PCI_TSBID(0, entry), 79 79 npages, prot, __pa(pglist), num);
+1 -1
arch/sparc/kernel/power.c
··· 40 40 41 41 power_reg = of_ioremap(res, 0, 0x4, "power"); 42 42 43 - printk(KERN_INFO "%s: Control reg at %lx\n", 43 + printk(KERN_INFO "%s: Control reg at %llx\n", 44 44 op->node->name, res->start); 45 45 46 46 if (has_button_interrupt(irq, op->node)) {
+1 -1
arch/sparc/kernel/prom_irqtrans.c
··· 346 346 break; 347 347 } 348 348 if (limit <= 0) { 349 - printk("tomatillo_wsync_handler: DMA won't sync [%lx:%lx]\n", 349 + printk("tomatillo_wsync_handler: DMA won't sync [%llx:%llx]\n", 350 350 val, mask); 351 351 } 352 352
+7 -7
arch/sparc/kernel/psycho_common.c
··· 94 94 if (saw_error != 0) { 95 95 u64 tagval = stc_tag_buf[i]; 96 96 u64 lineval = stc_line_buf[i]; 97 - printk(KERN_ERR "%s: STC_TAG(%d)[PA(%016lx)VA(%08lx)" 97 + printk(KERN_ERR "%s: STC_TAG(%d)[PA(%016llx)VA(%08llx)" 98 98 "V(%d)W(%d)]\n", 99 99 pbm->name, 100 100 i, ··· 102 102 (tagval & PSYCHO_STCTAG_VPN), 103 103 ((tagval & PSYCHO_STCTAG_VALID) ? 1 : 0), 104 104 ((tagval & PSYCHO_STCTAG_WRITE) ? 1 : 0)); 105 - printk(KERN_ERR "%s: STC_LINE(%d)[LIDX(%lx)SP(%lx)" 106 - "LADDR(%lx)EP(%lx)V(%d)FOFN(%d)]\n", 105 + printk(KERN_ERR "%s: STC_LINE(%d)[LIDX(%llx)SP(%llx)" 106 + "LADDR(%llx)EP(%llx)V(%d)FOFN(%d)]\n", 107 107 pbm->name, 108 108 i, 109 109 ((lineval & PSYCHO_STCLINE_LINDX) >> 21UL), ··· 179 179 } 180 180 181 181 printk(KERN_ERR "%s: IOMMU TAG(%d)[error(%s) wr(%d) " 182 - "str(%d) sz(%dK) vpg(%08lx)]\n", 182 + "str(%d) sz(%dK) vpg(%08llx)]\n", 183 183 pbm->name, i, type_str, 184 184 ((tag_val & PSYCHO_IOMMU_TAG_WRITE) ? 1 : 0), 185 185 ((tag_val & PSYCHO_IOMMU_TAG_STREAM) ? 1 : 0), 186 186 ((tag_val & PSYCHO_IOMMU_TAG_SIZE) ? 64 : 8), 187 187 (tag_val & PSYCHO_IOMMU_TAG_VPAGE) << IOMMU_PAGE_SHIFT); 188 188 printk(KERN_ERR "%s: IOMMU DATA(%d)[valid(%d) cache(%d) " 189 - "ppg(%016lx)]\n", 189 + "ppg(%016llx)]\n", 190 190 pbm->name, i, 191 191 ((data_val & PSYCHO_IOMMU_DATA_VALID) ? 1 : 0), 192 192 ((data_val & PSYCHO_IOMMU_DATA_CACHE) ? 1 : 0), ··· 326 326 "Excessive Retries" : 327 327 ((error_bits & PSYCHO_PCIAFSR_PPERR) ? 328 328 "Parity Error" : "???")))))); 329 - printk(KERN_ERR "%s: bytemask[%04lx] UPA_MID[%02lx] was_block(%d)\n", 329 + printk(KERN_ERR "%s: bytemask[%04llx] UPA_MID[%02llx] was_block(%d)\n", 330 330 pbm->name, 331 331 (afsr & PSYCHO_PCIAFSR_BMSK) >> 32UL, 332 332 (afsr & PSYCHO_PCIAFSR_MID) >> 25UL, 333 333 (afsr & PSYCHO_PCIAFSR_BLK) ? 1 : 0); 334 - printk(KERN_ERR "%s: PCI AFAR [%016lx]\n", pbm->name, afar); 334 + printk(KERN_ERR "%s: PCI AFAR [%016llx]\n", pbm->name, afar); 335 335 printk(KERN_ERR "%s: PCI Secondary errors [", pbm->name); 336 336 reported = 0; 337 337 if (afsr & PSYCHO_PCIAFSR_SMA) {
+2 -2
arch/sparc/kernel/smp_64.c
··· 449 449 __asm__ __volatile__("wrpr %0, 0x0, %%pstate" 450 450 : : "r" (pstate)); 451 451 if (stuck == 0) { 452 - printk("CPU[%d]: mondo stuckage result[%016lx]\n", 452 + printk("CPU[%d]: mondo stuckage result[%016llx]\n", 453 453 smp_processor_id(), result); 454 454 } else { 455 455 udelay(2); ··· 584 584 /* Busy bits will not clear, continue instead 585 585 * of freezing up on this cpu. 586 586 */ 587 - printk("CPU[%d]: mondo stuckage result[%016lx]\n", 587 + printk("CPU[%d]: mondo stuckage result[%016llx]\n", 588 588 smp_processor_id(), dispatch_stat); 589 589 } else { 590 590 int i, this_busy_nack = 0;
+6 -6
arch/sparc/kernel/time_64.c
··· 106 106 tick_disable_irq(); 107 107 } 108 108 109 - static unsigned long tick_get_tick(void) 109 + static unsigned long long tick_get_tick(void) 110 110 { 111 111 unsigned long ret; 112 112 ··· 208 208 stick_disable_irq(); 209 209 } 210 210 211 - static unsigned long stick_get_tick(void) 211 + static unsigned long long stick_get_tick(void) 212 212 { 213 213 unsigned long ret; 214 214 ··· 352 352 hbtick_disable_irq(); 353 353 } 354 354 355 - static unsigned long hbtick_get_tick(void) 355 + static unsigned long long hbtick_get_tick(void) 356 356 { 357 357 return __hbird_read_stick() & ~TICK_PRIV_BIT; 358 358 } ··· 422 422 { 423 423 struct resource *r; 424 424 425 - printk(KERN_INFO "%s: RTC regs at 0x%lx\n", 425 + printk(KERN_INFO "%s: RTC regs at 0x%llx\n", 426 426 op->node->full_name, op->resource[0].start); 427 427 428 428 /* The CMOS RTC driver only accepts IORESOURCE_IO, so cons ··· 478 478 static int __devinit bq4802_probe(struct of_device *op, const struct of_device_id *match) 479 479 { 480 480 481 - printk(KERN_INFO "%s: BQ4802 regs at 0x%lx\n", 481 + printk(KERN_INFO "%s: BQ4802 regs at 0x%llx\n", 482 482 op->node->full_name, op->resource[0].start); 483 483 484 484 rtc_bq4802_device.resource = &op->resource[0]; ··· 542 542 strcmp(dp->parent->parent->name, "central") != 0) 543 543 return -ENODEV; 544 544 545 - printk(KERN_INFO "%s: Mostek regs at 0x%lx\n", 545 + printk(KERN_INFO "%s: Mostek regs at 0x%llx\n", 546 546 dp->full_name, op->resource[0].start); 547 547 548 548 m48t59_rtc.resource = &op->resource[0];
+10 -10
arch/sparc/kernel/traps_64.c
··· 1168 1168 } 1169 1169 1170 1170 /* Now dump the cache snapshots. */ 1171 - printk("%s" "ERROR(%d): D-cache idx[%x] tag[%016lx] utag[%016lx] stag[%016lx]\n", 1171 + printk("%s" "ERROR(%d): D-cache idx[%x] tag[%016llx] utag[%016llx] stag[%016llx]\n", 1172 1172 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1173 1173 (int) info->dcache_index, 1174 1174 info->dcache_tag, 1175 1175 info->dcache_utag, 1176 1176 info->dcache_stag); 1177 - printk("%s" "ERROR(%d): D-cache data0[%016lx] data1[%016lx] data2[%016lx] data3[%016lx]\n", 1177 + printk("%s" "ERROR(%d): D-cache data0[%016llx] data1[%016llx] data2[%016llx] data3[%016llx]\n", 1178 1178 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1179 1179 info->dcache_data[0], 1180 1180 info->dcache_data[1], 1181 1181 info->dcache_data[2], 1182 1182 info->dcache_data[3]); 1183 - printk("%s" "ERROR(%d): I-cache idx[%x] tag[%016lx] utag[%016lx] stag[%016lx] " 1184 - "u[%016lx] l[%016lx]\n", 1183 + printk("%s" "ERROR(%d): I-cache idx[%x] tag[%016llx] utag[%016llx] stag[%016llx] " 1184 + "u[%016llx] l[%016llx]\n", 1185 1185 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1186 1186 (int) info->icache_index, 1187 1187 info->icache_tag, ··· 1189 1189 info->icache_stag, 1190 1190 info->icache_upper, 1191 1191 info->icache_lower); 1192 - printk("%s" "ERROR(%d): I-cache INSN0[%016lx] INSN1[%016lx] INSN2[%016lx] INSN3[%016lx]\n", 1192 + printk("%s" "ERROR(%d): I-cache INSN0[%016llx] INSN1[%016llx] INSN2[%016llx] INSN3[%016llx]\n", 1193 1193 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1194 1194 info->icache_data[0], 1195 1195 info->icache_data[1], 1196 1196 info->icache_data[2], 1197 1197 info->icache_data[3]); 1198 - printk("%s" "ERROR(%d): I-cache INSN4[%016lx] INSN5[%016lx] INSN6[%016lx] INSN7[%016lx]\n", 1198 + printk("%s" "ERROR(%d): I-cache INSN4[%016llx] INSN5[%016llx] INSN6[%016llx] INSN7[%016llx]\n", 1199 1199 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1200 1200 info->icache_data[4], 1201 1201 info->icache_data[5], 1202 1202 info->icache_data[6], 1203 1203 info->icache_data[7]); 1204 - printk("%s" "ERROR(%d): E-cache idx[%x] tag[%016lx]\n", 1204 + printk("%s" "ERROR(%d): E-cache idx[%x] tag[%016llx]\n", 1205 1205 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1206 1206 (int) info->ecache_index, info->ecache_tag); 1207 - printk("%s" "ERROR(%d): E-cache data0[%016lx] data1[%016lx] data2[%016lx] data3[%016lx]\n", 1207 + printk("%s" "ERROR(%d): E-cache data0[%016llx] data1[%016llx] data2[%016llx] data3[%016llx]\n", 1208 1208 (recoverable ? KERN_WARNING : KERN_CRIT), smp_processor_id(), 1209 1209 info->ecache_data[0], 1210 1210 info->ecache_data[1], ··· 1794 1794 int cnt; 1795 1795 1796 1796 printk("%s: Reporting on cpu %d\n", pfx, cpu); 1797 - printk("%s: err_handle[%lx] err_stick[%lx] err_type[%08x:%s]\n", 1797 + printk("%s: err_handle[%llx] err_stick[%llx] err_type[%08x:%s]\n", 1798 1798 pfx, 1799 1799 ent->err_handle, ent->err_stick, 1800 1800 ent->err_type, ··· 1818 1818 "privileged" : ""), 1819 1819 ((ent->err_attrs & SUN4V_ERR_ATTRS_RES_QUEUE_FULL) ? 1820 1820 "queue-full" : "")); 1821 - printk("%s: err_raddr[%016lx] err_size[%u] err_cpu[%u]\n", 1821 + printk("%s: err_raddr[%016llx] err_size[%u] err_cpu[%u]\n", 1822 1822 pfx, 1823 1823 ent->err_raddr, ent->err_size, ent->err_cpu); 1824 1824
+2 -2
arch/sparc/kernel/vio.c
··· 263 263 dev_set_name(&vdev->dev, "%s", bus_id_name); 264 264 vdev->dev_no = ~(u64)0; 265 265 } else if (!cfg_handle) { 266 - dev_set_name(&vdev->dev, "%s-%lu", bus_id_name, *id); 266 + dev_set_name(&vdev->dev, "%s-%llu", bus_id_name, *id); 267 267 vdev->dev_no = *id; 268 268 } else { 269 - dev_set_name(&vdev->dev, "%s-%lu-%lu", bus_id_name, 269 + dev_set_name(&vdev->dev, "%s-%llu-%llu", bus_id_name, 270 270 *cfg_handle, *id); 271 271 vdev->dev_no = *cfg_handle; 272 272 }
+8 -8
arch/sparc/mm/init_64.c
··· 779 779 return -1; 780 780 } 781 781 782 - static unsigned long nid_range(unsigned long start, unsigned long end, 783 - int *nid) 782 + static unsigned long long nid_range(unsigned long long start, 783 + unsigned long long end, int *nid) 784 784 { 785 785 *nid = find_node(start); 786 786 start += PAGE_SIZE; ··· 798 798 return start; 799 799 } 800 800 #else 801 - static unsigned long nid_range(unsigned long start, unsigned long end, 802 - int *nid) 801 + static unsigned long long nid_range(unsigned long long start, 802 + unsigned long long end, int *nid) 803 803 { 804 804 *nid = 0; 805 805 return end; ··· 1026 1026 val = mdesc_get_property(md, node, "address-mask", NULL); 1027 1027 m->mask = *val; 1028 1028 1029 - numadbg("MLGROUP[%d]: node[%lx] latency[%lx] " 1030 - "match[%lx] mask[%lx]\n", 1029 + numadbg("MLGROUP[%d]: node[%llx] latency[%llx] " 1030 + "match[%llx] mask[%llx]\n", 1031 1031 count - 1, m->node, m->latency, m->match, m->mask); 1032 1032 } 1033 1033 ··· 1066 1066 "address-congruence-offset", NULL); 1067 1067 m->offset = *val; 1068 1068 1069 - numadbg("MBLOCK[%d]: base[%lx] size[%lx] offset[%lx]\n", 1069 + numadbg("MBLOCK[%d]: base[%llx] size[%llx] offset[%llx]\n", 1070 1070 count - 1, m->base, m->size, m->offset); 1071 1071 } 1072 1072 ··· 1137 1137 n->mask = candidate->mask; 1138 1138 n->val = candidate->match; 1139 1139 1140 - numadbg("NUMA NODE[%d]: mask[%lx] val[%lx] (latency[%lx])\n", 1140 + numadbg("NUMA NODE[%d]: mask[%lx] val[%lx] (latency[%llx])\n", 1141 1141 index, n->mask, n->val, candidate->latency); 1142 1142 1143 1143 return 0;