Hi Mathieu, Thank you for the patch! Yet something to improve:
[auto build test ERROR on v4.16-rc4] [also build test ERROR on next-20180316] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Mathieu-Malaterre/Start-using-__printf-attribute-single-commit-series/20180318-035038 config: powerpc64-defconfig (attached as .config) compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=powerpc64 Note: the linux-review/Mathieu-Malaterre/Start-using-__printf-attribute-single-commit-series/20180318-035038 HEAD 070c2d653f1924feb0363271515fea85920b80f9 builds fine. It only hurts bisectibility. All error/warnings (new ones prefixed by >>): arch/powerpc/xmon/xmon.c: In function 'cpu_cmd': >> arch/powerpc/xmon/xmon.c:1168:18: error: format '%x' expects argument of >> type 'unsigned int', but argument 2 has type 'long unsigned int' >> [-Werror=format=] printf("cpu 0x%x isn't in xmon\n", cpu); ~^ %lx arch/powerpc/xmon/xmon.c:1182:19: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=] printf("cpu 0x%x didn't take control\n", cpu); ~^ %lx arch/powerpc/xmon/xmon.c: In function 'bpt_cmds': arch/powerpc/xmon/xmon.c:1392:15: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Werror=format=] printf("%2x %s ", BP_NUM(bp), ~~^ %2lx arch/powerpc/xmon/xmon.c: In function 'excprint': arch/powerpc/xmon/xmon.c:1607:31: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'struct pt_regs *' [-Werror=format=] printf("Vector: %lx %s at [%lx]\n", fp->trap, getvecname(trap), fp); ~~^ arch/powerpc/xmon/xmon.c:1611:9: error: too many arguments for format [-Werror=format-extra-args] printf(" lr: ", fp->link); ^~~~~~~~~~ arch/powerpc/xmon/xmon.c:1623:26: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'struct task_struct *' [-Werror=format=] printf(" current = 0x%lx\n", current); ~~^ >> arch/powerpc/xmon/xmon.c:1625:26: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 2 has type 'struct paca_struct *' >> [-Werror=format=] printf(" paca = 0x%lx\t softe: %d\t irq_happened: 0x%02x\n", ~~^ arch/powerpc/xmon/xmon.c:1629:25: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'pid_t {aka int}' [-Werror=format=] printf(" pid = %ld, comm = %s\n", ~~^ %d arch/powerpc/xmon/xmon.c: In function 'prregs': >> arch/powerpc/xmon/xmon.c:1665:17: error: format '%ld' expects argument of >> type 'long int', but argument 2 has type 'int' [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ~~~~^ %.2d arch/powerpc/xmon/xmon.c:1665:11: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ^~~~~~~~~~~ n, fp->gpr[n], n+16, fp->gpr[n+16]); ~~~~ arch/powerpc/xmon/xmon.c:1665:34: note: format string is defined here printf("R%.2ld = "REG" R%.2ld = "REG"\n", ~~~~^ %.2d arch/powerpc/xmon/xmon.c:1669:17: error: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ~~~~^ %.2d arch/powerpc/xmon/xmon.c:1669:11: error: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Werror=format=] printf("R%.2ld = "REG" R%.2ld = "REG"\n", ^~~~~~~~~~~ n, fp->gpr[n], n+7, fp->gpr[n+7]); ~~~ arch/powerpc/xmon/xmon.c:1669:34: note: format string is defined here printf("R%.2ld = "REG" R%.2ld = "REG"\n", ~~~~^ %.2d arch/powerpc/xmon/xmon.c: In function 'dump_206_sprs': arch/powerpc/xmon/xmon.c:1778:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("srr0 = %.16lx srr1 = %.16lx dsisr = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1780:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("dscr = %.16lx ppr = %.16lx pir = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1788:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("sdr1 = %.16lx hdar = %.16lx hdsisr = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1792:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("lpcr = %.16lx pcr = %.16lx lpidr = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c: In function 'dump_207_sprs': arch/powerpc/xmon/xmon.c:1809:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("dpdes = %.16lx tir = %.16lx cir = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1812:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("fscr = %.16lx tar = %.16lx pspb = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1825:22: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1825:34: error: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1825:47: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1825:62: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Werror=format=] printf("pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1828:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("mmcra = %.16lx siar = %.16lx pmc5 = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c:1830:54: error: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Werror=format=] printf("sdar = %.16lx sier = %.16lx pmc6 = %.8x\n", ~~~^ %.8lx arch/powerpc/xmon/xmon.c: In function 'dump_one_paca': >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2344:7: DUMP(p, kernel_toc, "lx"); ~~~~ >> arch/powerpc/xmon/xmon.c:2344:2: note: in expansion of macro 'DUMP' DUMP(p, kernel_toc, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2344:24: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2345:7: DUMP(p, kernelbase, "lx"); ~~~~ arch/powerpc/xmon/xmon.c:2345:2: note: in expansion of macro 'DUMP' DUMP(p, kernelbase, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2345:24: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2346:7: DUMP(p, kernel_msr, "lx"); ~~~~ arch/powerpc/xmon/xmon.c:2346:2: note: in expansion of macro 'DUMP' DUMP(p, kernel_msr, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2346:24: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with '%p' gnu_printf >> format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2347:2: note: in expansion of macro 'DUMP' DUMP(p, emergency_sp, "px"); ^~~~ arch/powerpc/xmon/xmon.c:2347:25: note: format string is defined here DUMP(p, emergency_sp, "px"); ^ >> arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with '%p' gnu_printf >> format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2349:2: note: in expansion of macro 'DUMP' DUMP(p, nmi_emergency_sp, "px"); ^~~~ arch/powerpc/xmon/xmon.c:2349:29: note: format string is defined here DUMP(p, nmi_emergency_sp, "px"); ^ >> arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with '%p' gnu_printf >> format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2350:2: note: in expansion of macro 'DUMP' DUMP(p, mc_emergency_sp, "px"); ^~~~ arch/powerpc/xmon/xmon.c:2350:28: note: format string is defined here DUMP(p, mc_emergency_sp, "px"); ^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2355:7: DUMP(p, data_offset, "lx"); ~~~~ arch/powerpc/xmon/xmon.c:2355:2: note: in expansion of macro 'DUMP' DUMP(p, data_offset, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2355:25: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nmi_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_nmi, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_mce, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hmi_event_available, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, data_offset, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~^ arch/powerpc/xmon/xmon.c:2370:44: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'u64 {aka long long unsigned int}' [-Werror=format=] printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~^ %016llx arch/powerpc/xmon/xmon.c:2370:53: error: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'u64 {aka long long unsigned int}' [-Werror=format=] printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~^ %016llx >> arch/powerpc/xmon/xmon.c:2377:43: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 3 has type 'u32 {aka unsigned int}' >> [-Werror=format=] printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ~~~~~^ ~~~~~~~~~~~~~~~ %016x >> arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with '%p' gnu_printf >> format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2379:2: note: in expansion of macro 'DUMP' DUMP(p, rfi_flush_fallback_area, "px"); ^~~~ arch/powerpc/xmon/xmon.c:2379:36: note: format string is defined here DUMP(p, rfi_flush_fallback_area, "px"); ^ >> arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with '%p' gnu_printf >> format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2390:2: note: in expansion of macro 'DUMP' DUMP(p, __current, "px"); ^~~~ arch/powerpc/xmon/xmon.c:2390:22: note: format string is defined here DUMP(p, __current, "px"); ^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2391:7: DUMP(p, kstack, "lx"); ~~~~ arch/powerpc/xmon/xmon.c:2391:2: note: in expansion of macro 'DUMP' DUMP(p, kstack, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2391:20: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nmi_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_nmi, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_mce, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hmi_event_available, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, data_offset, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hw_cpu_id, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, cpu_start, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kexec_state, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_NUM_BOLTED; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ u64 esid, vsid; ~~~~~~~~~~~~~~~ if (!p->slb_shadow_ptr) ~~~~~~~~~~~~~~~~~~~~~~~ continue; ~~~~~~~~~ esid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].esid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vsid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].vsid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (esid || vsid) { ~~~~~~~~~~~~~~~~~~~ printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i, esid, vsid); ~~~~~~~~~~~~~~~ } ~ } ~ DUMP(p, vmalloc_sllp, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, slb_cache_ptr, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_CACHE_ENTRIES; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, rfi_flush_fallback_area, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, dscr_default, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3E ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, pgd, "px"); ~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_pgd, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, tcd_ptr, "px"); ~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, crit_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, dbg_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, __current, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kstack, "lx"); ~~~~~~~~~~~~~~~~~~^ arch/powerpc/xmon/xmon.c:2392:41: error: format '%lx' expects argument of type 'long unsigned int', but argument 2 has type 'u64 {aka long long unsigned int}' [-Werror=format=] printf(" kstack_base = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1)); ~~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %016llx >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2393:7: DUMP(p, stab_rr, "lx"); ~~~~ arch/powerpc/xmon/xmon.c:2393:2: note: in expansion of macro 'DUMP' DUMP(p, stab_rr, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2393:21: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nmi_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_nmi, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_mce, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hmi_event_available, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, data_offset, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hw_cpu_id, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, cpu_start, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kexec_state, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_NUM_BOLTED; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ u64 esid, vsid; ~~~~~~~~~~~~~~~ if (!p->slb_shadow_ptr) ~~~~~~~~~~~~~~~~~~~~~~~ continue; ~~~~~~~~~ esid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].esid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vsid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].vsid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (esid || vsid) { ~~~~~~~~~~~~~~~~~~~ printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i, esid, vsid); ~~~~~~~~~~~~~~~ } ~ } ~ DUMP(p, vmalloc_sllp, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, slb_cache_ptr, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_CACHE_ENTRIES; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, rfi_flush_fallback_area, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, dscr_default, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3E ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, pgd, "px"); ~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_pgd, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, tcd_ptr, "px"); ~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, crit_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, dbg_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, __current, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kstack, "lx"); ~~~~~~~~~~~~~~~~~~~~~~ printf(" kstack_base = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, stab_rr, "lx"); ~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%lx' expects argument of >> type 'long unsigned int', but argument 5 has type 'u64 {aka long long >> unsigned int}' [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2394:7: DUMP(p, saved_r1, "lx"); ~~~~ arch/powerpc/xmon/xmon.c:2394:2: note: in expansion of macro 'DUMP' DUMP(p, saved_r1, "lx"); ^~~~ arch/powerpc/xmon/xmon.c:2394:22: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nmi_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_nmi, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_mce, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hmi_event_available, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, data_offset, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hw_cpu_id, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, cpu_start, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kexec_state, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_NUM_BOLTED; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ u64 esid, vsid; ~~~~~~~~~~~~~~~ if (!p->slb_shadow_ptr) ~~~~~~~~~~~~~~~~~~~~~~~ continue; ~~~~~~~~~ esid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].esid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vsid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].vsid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (esid || vsid) { ~~~~~~~~~~~~~~~~~~~ printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i, esid, vsid); ~~~~~~~~~~~~~~~ } ~ } ~ DUMP(p, vmalloc_sllp, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, slb_cache_ptr, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_CACHE_ENTRIES; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, rfi_flush_fallback_area, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, dscr_default, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3E ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, pgd, "px"); ~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_pgd, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, tcd_ptr, "px"); ~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, crit_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, dbg_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, __current, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kstack, "lx"); ~~~~~~~~~~~~~~~~~~~~~~ printf(" kstack_base = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, stab_rr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, saved_r1, "lx"); ~~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/xmon/xmon.c:2339:9: error: '#' flag used with '%p' gnu_printf >> format [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2408:2: note: in expansion of macro 'DUMP' DUMP(p, core_idle_state_ptr, "px"); ^~~~ arch/powerpc/xmon/xmon.c:2408:32: note: format string is defined here DUMP(p, core_idle_state_ptr, "px"); ^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%llx' expects argument of >> type 'long long unsigned int', but argument 5 has type 'long unsigned int' >> [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2414:7: DUMP(p, accounting.utime, "llx"); ~~~~~~~~~~~~~~~ arch/powerpc/xmon/xmon.c:2414:2: note: in expansion of macro 'DUMP' DUMP(p, accounting.utime, "llx"); ^~~~ arch/powerpc/xmon/xmon.c:2414:31: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nmi_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_nmi, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_mce, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hmi_event_available, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, data_offset, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hw_cpu_id, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, cpu_start, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kexec_state, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_NUM_BOLTED; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ u64 esid, vsid; ~~~~~~~~~~~~~~~ if (!p->slb_shadow_ptr) ~~~~~~~~~~~~~~~~~~~~~~~ continue; ~~~~~~~~~ esid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].esid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vsid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].vsid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (esid || vsid) { ~~~~~~~~~~~~~~~~~~~ printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i, esid, vsid); ~~~~~~~~~~~~~~~ } ~ } ~ DUMP(p, vmalloc_sllp, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, slb_cache_ptr, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_CACHE_ENTRIES; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, rfi_flush_fallback_area, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, dscr_default, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3E ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, pgd, "px"); ~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_pgd, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, tcd_ptr, "px"); ~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, crit_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, dbg_kstack, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, __current, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kstack, "lx"); ~~~~~~~~~~~~~~~~~~~~~~ printf(" kstack_base = 0x%016lx\n", p->kstack & ~(THREAD_SIZE - 1)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, stab_rr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, saved_r1, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, trap_save, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, irq_soft_mask, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, irq_happened, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, io_sync, "x"); ~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, irq_work_pending, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nap_state_lost, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, sprg_vdso, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_TRANSACTIONAL_MEM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, tm_scratch, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ #ifdef CONFIG_PPC_POWERNV ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, core_idle_state_ptr, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, thread_idle_state, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, thread_mask, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, subcore_sibling_mask, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, accounting.utime, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ >> arch/powerpc/xmon/xmon.c:2339:9: error: format '%llx' expects argument of >> type 'long long unsigned int', but argument 5 has type 'long unsigned int' >> [-Werror=format=] printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ^ arch/powerpc/xmon/xmon.c:2415:7: DUMP(p, accounting.stime, "llx"); ~~~~~~~~~~~~~~~ arch/powerpc/xmon/xmon.c:2415:2: note: in expansion of macro 'DUMP' DUMP(p, accounting.stime, "llx"); ^~~~ arch/powerpc/xmon/xmon.c:2415:31: note: format string is defined here printf(" %-*s = %#-*"format"\t(0x%lx)\n", 20, #name, 18, paca->name, \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ offsetof(struct paca_struct, name)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, lock_token, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, paca_index, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_toc, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernelbase, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_msr, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, nmi_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, mc_emergency_sp, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_nmi, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, in_mce, "x"); ~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hmi_event_available, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, data_offset, "lx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, hw_cpu_id, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, cpu_start, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, kexec_state, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3S_64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_NUM_BOLTED; i++) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ u64 esid, vsid; ~~~~~~~~~~~~~~~ if (!p->slb_shadow_ptr) ~~~~~~~~~~~~~~~~~~~~~~~ continue; ~~~~~~~~~ esid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].esid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vsid = be64_to_cpu(p->slb_shadow_ptr->save_area[i].vsid); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (esid || vsid) { ~~~~~~~~~~~~~~~~~~~ printf(" slb_shadow[%d]: = 0x%016lx 0x%016lx\n", ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ i, esid, vsid); ~~~~~~~~~~~~~~~ } ~ } ~ DUMP(p, vmalloc_sllp, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, slb_cache_ptr, "x"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ for (i = 0; i < SLB_CACHE_ENTRIES; i++) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ printf(" slb_cache[%d]: = 0x%016lx\n", i, p->slb_cache[i]); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, rfi_flush_fallback_area, "px"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #endif ~~~~~~ DUMP(p, dscr_default, "llx"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #ifdef CONFIG_PPC_BOOK3E ~~~~~~~~~~~~~~~~~~~~~~~~ DUMP(p, pgd, "px"); ~~~~~~~~~~~~~~~~~~~ DUMP(p, kernel_pgd, "px"); .. vim +1168 arch/powerpc/xmon/xmon.c ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1138 ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1139 static int cpu_cmd(void) ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1140 { ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1141 #ifdef CONFIG_SMP fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1142 unsigned long cpu, first_cpu, last_cpu; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1143 int timeout; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1144 ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1145 if (!scanhex(&cpu)) { ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1146 /* print cpus waiting or in xmon */ ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1147 printf("cpus stopped:"); fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1148 last_cpu = first_cpu = NR_CPUS; bc1d77029 arch/powerpc/xmon/xmon.c Anton Blanchard 2012-06-28 1149 for_each_possible_cpu(cpu) { 104699c0a arch/powerpc/xmon/xmon.c KOSAKI Motohiro 2011-04-28 1150 if (cpumask_test_cpu(cpu, &cpus_in_xmon)) { fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1151 if (cpu == last_cpu + 1) { fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1152 last_cpu = cpu; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1153 } else { fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1154 if (last_cpu != first_cpu) 736256e4f arch/powerpc/xmon/xmon.c Michael Ellerman 2014-05-26 1155 printf("-0x%lx", last_cpu); fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1156 last_cpu = first_cpu = cpu; 736256e4f arch/powerpc/xmon/xmon.c Michael Ellerman 2014-05-26 1157 printf(" 0x%lx", cpu); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1158 } ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1159 } fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1160 } fd3bb9128 arch/powerpc/xmon/xmon.c Paul Mackerras 2013-09-03 1161 if (last_cpu != first_cpu) 736256e4f arch/powerpc/xmon/xmon.c Michael Ellerman 2014-05-26 1162 printf("-0x%lx", last_cpu); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1163 printf("\n"); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1164 return 0; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1165 } ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1166 /* try to switch to cpu specified */ 104699c0a arch/powerpc/xmon/xmon.c KOSAKI Motohiro 2011-04-28 1167 if (!cpumask_test_cpu(cpu, &cpus_in_xmon)) { ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 @1168 printf("cpu 0x%x isn't in xmon\n", cpu); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1169 return 0; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1170 } ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1171 xmon_taken = 0; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1172 mb(); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1173 xmon_owner = cpu; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1174 timeout = 10000000; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1175 while (!xmon_taken) { ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1176 if (--timeout == 0) { ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1177 if (test_and_set_bit(0, &xmon_taken)) ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1178 break; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1179 /* take control back */ ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1180 mb(); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1181 xmon_owner = smp_processor_id(); 736256e4f arch/powerpc/xmon/xmon.c Michael Ellerman 2014-05-26 1182 printf("cpu 0x%x didn't take control\n", cpu); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1183 return 0; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1184 } ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1185 barrier(); ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1186 } ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1187 return 1; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1188 #else ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1189 return 0; ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1190 #endif /* CONFIG_SMP */ ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1191 } ^1da177e4 arch/ppc64/xmon/xmon.c Linus Torvalds 2005-04-16 1192 :::::: The code at line 1168 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torva...@ppc970.osdl.org> :::::: CC: Linus Torvalds <torva...@ppc970.osdl.org> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip