diff options
author | Matthew Wilcox <matthew@wil.cx> | 2009-05-22 16:49:49 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2009-06-17 12:33:49 -0400 |
commit | e088a4ad7fa53c3dc3c29f930025f41ccf01953e (patch) | |
tree | 07b012952bbbaccfe4ef3bb44b1ea0a3a3bb3868 /arch/ia64/kernel | |
parent | e56e2dcd381d9ec35379328f332221581eda4787 (diff) |
[IA64] Convert ia64 to use int-ll64.h
It is generally agreed that it would be beneficial for u64 to be an
unsigned long long on all architectures. ia64 (in common with several
other 64-bit architectures) currently uses unsigned long. Migrating
piecemeal is too painful; this giant patch fixes all compilation warnings
and errors that come as a result of switching to use int-ll64.h.
Note that userspace will still see __u64 defined as unsigned long. This
is important as it affects C++ name mangling.
[Updated by Tony Luck to change efi.h:efi_freemem_callback_t to use
u64 for start/end rather than unsigned long]
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel')
-rw-r--r-- | arch/ia64/kernel/efi.c | 10 | ||||
-rw-r--r-- | arch/ia64/kernel/mca.c | 18 | ||||
-rw-r--r-- | arch/ia64/kernel/module.c | 14 | ||||
-rw-r--r-- | arch/ia64/kernel/palinfo.c | 68 | ||||
-rw-r--r-- | arch/ia64/kernel/pci-dma.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/perfmon.c | 6 | ||||
-rw-r--r-- | arch/ia64/kernel/setup.c | 32 | ||||
-rw-r--r-- | arch/ia64/kernel/smp.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/smpboot.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/time.c | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/topology.c | 4 | ||||
-rw-r--r-- | arch/ia64/kernel/uncached.c | 3 |
12 files changed, 83 insertions, 80 deletions
diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index 7ef80e8161ce..c745d0aeb6e0 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c | |||
@@ -46,7 +46,7 @@ extern efi_status_t efi_call_phys (void *, ...); | |||
46 | struct efi efi; | 46 | struct efi efi; |
47 | EXPORT_SYMBOL(efi); | 47 | EXPORT_SYMBOL(efi); |
48 | static efi_runtime_services_t *runtime; | 48 | static efi_runtime_services_t *runtime; |
49 | static unsigned long mem_limit = ~0UL, max_addr = ~0UL, min_addr = 0UL; | 49 | static u64 mem_limit = ~0UL, max_addr = ~0UL, min_addr = 0UL; |
50 | 50 | ||
51 | #define efi_call_virt(f, args...) (*(f))(args) | 51 | #define efi_call_virt(f, args...) (*(f))(args) |
52 | 52 | ||
@@ -356,7 +356,7 @@ efi_get_pal_addr (void) | |||
356 | 356 | ||
357 | if (++pal_code_count > 1) { | 357 | if (++pal_code_count > 1) { |
358 | printk(KERN_ERR "Too many EFI Pal Code memory ranges, " | 358 | printk(KERN_ERR "Too many EFI Pal Code memory ranges, " |
359 | "dropped @ %lx\n", md->phys_addr); | 359 | "dropped @ %llx\n", md->phys_addr); |
360 | continue; | 360 | continue; |
361 | } | 361 | } |
362 | /* | 362 | /* |
@@ -490,10 +490,10 @@ efi_init (void) | |||
490 | } | 490 | } |
491 | } | 491 | } |
492 | if (min_addr != 0UL) | 492 | if (min_addr != 0UL) |
493 | printk(KERN_INFO "Ignoring memory below %luMB\n", | 493 | printk(KERN_INFO "Ignoring memory below %lluMB\n", |
494 | min_addr >> 20); | 494 | min_addr >> 20); |
495 | if (max_addr != ~0UL) | 495 | if (max_addr != ~0UL) |
496 | printk(KERN_INFO "Ignoring memory above %luMB\n", | 496 | printk(KERN_INFO "Ignoring memory above %lluMB\n", |
497 | max_addr >> 20); | 497 | max_addr >> 20); |
498 | 498 | ||
499 | efi.systab = __va(ia64_boot_param->efi_systab); | 499 | efi.systab = __va(ia64_boot_param->efi_systab); |
@@ -1066,7 +1066,7 @@ find_memmap_space (void) | |||
1066 | * parts exist, and are WB. | 1066 | * parts exist, and are WB. |
1067 | */ | 1067 | */ |
1068 | unsigned long | 1068 | unsigned long |
1069 | efi_memmap_init(unsigned long *s, unsigned long *e) | 1069 | efi_memmap_init(u64 *s, u64 *e) |
1070 | { | 1070 | { |
1071 | struct kern_memdesc *k, *prev = NULL; | 1071 | struct kern_memdesc *k, *prev = NULL; |
1072 | u64 contig_low=0, contig_high=0; | 1072 | u64 contig_low=0, contig_high=0; |
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c index 1cce4ceb48ac..c259b9467fcc 100644 --- a/arch/ia64/kernel/mca.c +++ b/arch/ia64/kernel/mca.c | |||
@@ -850,7 +850,7 @@ EXPORT_SYMBOL(ia64_unreg_MCA_extension); | |||
850 | 850 | ||
851 | 851 | ||
852 | static inline void | 852 | static inline void |
853 | copy_reg(const u64 *fr, u64 fnat, u64 *tr, u64 *tnat) | 853 | copy_reg(const u64 *fr, u64 fnat, unsigned long *tr, unsigned long *tnat) |
854 | { | 854 | { |
855 | u64 fslot, tslot, nat; | 855 | u64 fslot, tslot, nat; |
856 | *tr = *fr; | 856 | *tr = *fr; |
@@ -914,9 +914,9 @@ ia64_mca_modify_original_stack(struct pt_regs *regs, | |||
914 | struct switch_stack *old_sw; | 914 | struct switch_stack *old_sw; |
915 | unsigned size = sizeof(struct pt_regs) + | 915 | unsigned size = sizeof(struct pt_regs) + |
916 | sizeof(struct switch_stack) + 16; | 916 | sizeof(struct switch_stack) + 16; |
917 | u64 *old_bspstore, *old_bsp; | 917 | unsigned long *old_bspstore, *old_bsp; |
918 | u64 *new_bspstore, *new_bsp; | 918 | unsigned long *new_bspstore, *new_bsp; |
919 | u64 old_unat, old_rnat, new_rnat, nat; | 919 | unsigned long old_unat, old_rnat, new_rnat, nat; |
920 | u64 slots, loadrs = regs->loadrs; | 920 | u64 slots, loadrs = regs->loadrs; |
921 | u64 r12 = ms->pmsa_gr[12-1], r13 = ms->pmsa_gr[13-1]; | 921 | u64 r12 = ms->pmsa_gr[12-1], r13 = ms->pmsa_gr[13-1]; |
922 | u64 ar_bspstore = regs->ar_bspstore; | 922 | u64 ar_bspstore = regs->ar_bspstore; |
@@ -968,10 +968,10 @@ ia64_mca_modify_original_stack(struct pt_regs *regs, | |||
968 | * loadrs for the new stack and save it in the new pt_regs, where | 968 | * loadrs for the new stack and save it in the new pt_regs, where |
969 | * ia64_old_stack() can get it. | 969 | * ia64_old_stack() can get it. |
970 | */ | 970 | */ |
971 | old_bspstore = (u64 *)ar_bspstore; | 971 | old_bspstore = (unsigned long *)ar_bspstore; |
972 | old_bsp = (u64 *)ar_bsp; | 972 | old_bsp = (unsigned long *)ar_bsp; |
973 | slots = ia64_rse_num_regs(old_bspstore, old_bsp); | 973 | slots = ia64_rse_num_regs(old_bspstore, old_bsp); |
974 | new_bspstore = (u64 *)((u64)current + IA64_RBS_OFFSET); | 974 | new_bspstore = (unsigned long *)((u64)current + IA64_RBS_OFFSET); |
975 | new_bsp = ia64_rse_skip_regs(new_bspstore, slots); | 975 | new_bsp = ia64_rse_skip_regs(new_bspstore, slots); |
976 | regs->loadrs = (new_bsp - new_bspstore) * 8 << 16; | 976 | regs->loadrs = (new_bsp - new_bspstore) * 8 << 16; |
977 | 977 | ||
@@ -1918,9 +1918,9 @@ ia64_mca_init(void) | |||
1918 | ia64_fptr_t *init_hldlr_ptr_slave = (ia64_fptr_t *)ia64_os_init_dispatch_slave; | 1918 | ia64_fptr_t *init_hldlr_ptr_slave = (ia64_fptr_t *)ia64_os_init_dispatch_slave; |
1919 | ia64_fptr_t *mca_hldlr_ptr = (ia64_fptr_t *)ia64_os_mca_dispatch; | 1919 | ia64_fptr_t *mca_hldlr_ptr = (ia64_fptr_t *)ia64_os_mca_dispatch; |
1920 | int i; | 1920 | int i; |
1921 | s64 rc; | 1921 | long rc; |
1922 | struct ia64_sal_retval isrv; | 1922 | struct ia64_sal_retval isrv; |
1923 | u64 timeout = IA64_MCA_RENDEZ_TIMEOUT; /* platform specific */ | 1923 | unsigned long timeout = IA64_MCA_RENDEZ_TIMEOUT; /* platform specific */ |
1924 | static struct notifier_block default_init_monarch_nb = { | 1924 | static struct notifier_block default_init_monarch_nb = { |
1925 | .notifier_call = default_monarch_init_process, | 1925 | .notifier_call = default_monarch_init_process, |
1926 | .priority = 0/* we need to notified last */ | 1926 | .priority = 0/* we need to notified last */ |
diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c index da3b0cf495a3..1481b0a28ca0 100644 --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c | |||
@@ -171,7 +171,8 @@ apply_imm60 (struct module *mod, struct insn *insn, uint64_t val) | |||
171 | return 0; | 171 | return 0; |
172 | } | 172 | } |
173 | if (val + ((uint64_t) 1 << 59) >= (1UL << 60)) { | 173 | if (val + ((uint64_t) 1 << 59) >= (1UL << 60)) { |
174 | printk(KERN_ERR "%s: value %ld out of IMM60 range\n", mod->name, (int64_t) val); | 174 | printk(KERN_ERR "%s: value %ld out of IMM60 range\n", |
175 | mod->name, (long) val); | ||
175 | return 0; | 176 | return 0; |
176 | } | 177 | } |
177 | ia64_patch_imm60((u64) insn, val); | 178 | ia64_patch_imm60((u64) insn, val); |
@@ -182,7 +183,8 @@ static int | |||
182 | apply_imm22 (struct module *mod, struct insn *insn, uint64_t val) | 183 | apply_imm22 (struct module *mod, struct insn *insn, uint64_t val) |
183 | { | 184 | { |
184 | if (val + (1 << 21) >= (1 << 22)) { | 185 | if (val + (1 << 21) >= (1 << 22)) { |
185 | printk(KERN_ERR "%s: value %li out of IMM22 range\n", mod->name, (int64_t)val); | 186 | printk(KERN_ERR "%s: value %li out of IMM22 range\n", |
187 | mod->name, (long)val); | ||
186 | return 0; | 188 | return 0; |
187 | } | 189 | } |
188 | ia64_patch((u64) insn, 0x01fffcfe000UL, ( ((val & 0x200000UL) << 15) /* bit 21 -> 36 */ | 190 | ia64_patch((u64) insn, 0x01fffcfe000UL, ( ((val & 0x200000UL) << 15) /* bit 21 -> 36 */ |
@@ -196,7 +198,8 @@ static int | |||
196 | apply_imm21b (struct module *mod, struct insn *insn, uint64_t val) | 198 | apply_imm21b (struct module *mod, struct insn *insn, uint64_t val) |
197 | { | 199 | { |
198 | if (val + (1 << 20) >= (1 << 21)) { | 200 | if (val + (1 << 20) >= (1 << 21)) { |
199 | printk(KERN_ERR "%s: value %li out of IMM21b range\n", mod->name, (int64_t)val); | 201 | printk(KERN_ERR "%s: value %li out of IMM21b range\n", |
202 | mod->name, (long)val); | ||
200 | return 0; | 203 | return 0; |
201 | } | 204 | } |
202 | ia64_patch((u64) insn, 0x11ffffe000UL, ( ((val & 0x100000UL) << 16) /* bit 20 -> 36 */ | 205 | ia64_patch((u64) insn, 0x11ffffe000UL, ( ((val & 0x100000UL) << 16) /* bit 20 -> 36 */ |
@@ -701,8 +704,9 @@ do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend, | |||
701 | case RV_PCREL2: | 704 | case RV_PCREL2: |
702 | if (r_type == R_IA64_PCREL21BI) { | 705 | if (r_type == R_IA64_PCREL21BI) { |
703 | if (!is_internal(mod, val)) { | 706 | if (!is_internal(mod, val)) { |
704 | printk(KERN_ERR "%s: %s reloc against non-local symbol (%lx)\n", | 707 | printk(KERN_ERR "%s: %s reloc against " |
705 | __func__, reloc_name[r_type], val); | 708 | "non-local symbol (%lx)\n", __func__, |
709 | reloc_name[r_type], (unsigned long)val); | ||
706 | return -ENOEXEC; | 710 | return -ENOEXEC; |
707 | } | 711 | } |
708 | format = RF_INSN21B; | 712 | format = RF_INSN21B; |
diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c index a4f19c70aadd..fdf6f9d013e5 100644 --- a/arch/ia64/kernel/palinfo.c +++ b/arch/ia64/kernel/palinfo.c | |||
@@ -218,10 +218,10 @@ static int | |||
218 | cache_info(char *page) | 218 | cache_info(char *page) |
219 | { | 219 | { |
220 | char *p = page; | 220 | char *p = page; |
221 | u64 i, levels, unique_caches; | 221 | unsigned long i, levels, unique_caches; |
222 | pal_cache_config_info_t cci; | 222 | pal_cache_config_info_t cci; |
223 | int j, k; | 223 | int j, k; |
224 | s64 status; | 224 | long status; |
225 | 225 | ||
226 | if ((status = ia64_pal_cache_summary(&levels, &unique_caches)) != 0) { | 226 | if ((status = ia64_pal_cache_summary(&levels, &unique_caches)) != 0) { |
227 | printk(KERN_ERR "ia64_pal_cache_summary=%ld\n", status); | 227 | printk(KERN_ERR "ia64_pal_cache_summary=%ld\n", status); |
@@ -303,7 +303,7 @@ vm_info(char *page) | |||
303 | ia64_ptce_info_t ptce; | 303 | ia64_ptce_info_t ptce; |
304 | const char *sep; | 304 | const char *sep; |
305 | int i, j; | 305 | int i, j; |
306 | s64 status; | 306 | long status; |
307 | 307 | ||
308 | if ((status = ia64_pal_vm_summary(&vm_info_1, &vm_info_2)) !=0) { | 308 | if ((status = ia64_pal_vm_summary(&vm_info_1, &vm_info_2)) !=0) { |
309 | printk(KERN_ERR "ia64_pal_vm_summary=%ld\n", status); | 309 | printk(KERN_ERR "ia64_pal_vm_summary=%ld\n", status); |
@@ -431,9 +431,9 @@ register_info(char *page) | |||
431 | char *p = page; | 431 | char *p = page; |
432 | u64 reg_info[2]; | 432 | u64 reg_info[2]; |
433 | u64 info; | 433 | u64 info; |
434 | u64 phys_stacked; | 434 | unsigned long phys_stacked; |
435 | pal_hints_u_t hints; | 435 | pal_hints_u_t hints; |
436 | u64 iregs, dregs; | 436 | unsigned long iregs, dregs; |
437 | char *info_type[]={ | 437 | char *info_type[]={ |
438 | "Implemented AR(s)", | 438 | "Implemented AR(s)", |
439 | "AR(s) with read side-effects", | 439 | "AR(s) with read side-effects", |
@@ -530,8 +530,8 @@ static char **proc_features[]={ | |||
530 | NULL, NULL, NULL, NULL, | 530 | NULL, NULL, NULL, NULL, |
531 | }; | 531 | }; |
532 | 532 | ||
533 | static char * | 533 | static char * feature_set_info(char *page, u64 avail, u64 status, u64 control, |
534 | feature_set_info(char *page, u64 avail, u64 status, u64 control, u64 set) | 534 | unsigned long set) |
535 | { | 535 | { |
536 | char *p = page; | 536 | char *p = page; |
537 | char **vf, **v; | 537 | char **vf, **v; |
@@ -714,7 +714,7 @@ frequency_info(char *page) | |||
714 | { | 714 | { |
715 | char *p = page; | 715 | char *p = page; |
716 | struct pal_freq_ratio proc, itc, bus; | 716 | struct pal_freq_ratio proc, itc, bus; |
717 | u64 base; | 717 | unsigned long base; |
718 | 718 | ||
719 | if (ia64_pal_freq_base(&base) == -1) | 719 | if (ia64_pal_freq_base(&base) == -1) |
720 | p += sprintf(p, "Output clock : not implemented\n"); | 720 | p += sprintf(p, "Output clock : not implemented\n"); |
@@ -736,43 +736,43 @@ static int | |||
736 | tr_info(char *page) | 736 | tr_info(char *page) |
737 | { | 737 | { |
738 | char *p = page; | 738 | char *p = page; |
739 | s64 status; | 739 | long status; |
740 | pal_tr_valid_u_t tr_valid; | 740 | pal_tr_valid_u_t tr_valid; |
741 | u64 tr_buffer[4]; | 741 | u64 tr_buffer[4]; |
742 | pal_vm_info_1_u_t vm_info_1; | 742 | pal_vm_info_1_u_t vm_info_1; |
743 | pal_vm_info_2_u_t vm_info_2; | 743 | pal_vm_info_2_u_t vm_info_2; |
744 | u64 i, j; | 744 | unsigned long i, j; |
745 | u64 max[3], pgm; | 745 | unsigned long max[3], pgm; |
746 | struct ifa_reg { | 746 | struct ifa_reg { |
747 | u64 valid:1; | 747 | unsigned long valid:1; |
748 | u64 ig:11; | 748 | unsigned long ig:11; |
749 | u64 vpn:52; | 749 | unsigned long vpn:52; |
750 | } *ifa_reg; | 750 | } *ifa_reg; |
751 | struct itir_reg { | 751 | struct itir_reg { |
752 | u64 rv1:2; | 752 | unsigned long rv1:2; |
753 | u64 ps:6; | 753 | unsigned long ps:6; |
754 | u64 key:24; | 754 | unsigned long key:24; |
755 | u64 rv2:32; | 755 | unsigned long rv2:32; |
756 | } *itir_reg; | 756 | } *itir_reg; |
757 | struct gr_reg { | 757 | struct gr_reg { |
758 | u64 p:1; | 758 | unsigned long p:1; |
759 | u64 rv1:1; | 759 | unsigned long rv1:1; |
760 | u64 ma:3; | 760 | unsigned long ma:3; |
761 | u64 a:1; | 761 | unsigned long a:1; |
762 | u64 d:1; | 762 | unsigned long d:1; |
763 | u64 pl:2; | 763 | unsigned long pl:2; |
764 | u64 ar:3; | 764 | unsigned long ar:3; |
765 | u64 ppn:38; | 765 | unsigned long ppn:38; |
766 | u64 rv2:2; | 766 | unsigned long rv2:2; |
767 | u64 ed:1; | 767 | unsigned long ed:1; |
768 | u64 ig:11; | 768 | unsigned long ig:11; |
769 | } *gr_reg; | 769 | } *gr_reg; |
770 | struct rid_reg { | 770 | struct rid_reg { |
771 | u64 ig1:1; | 771 | unsigned long ig1:1; |
772 | u64 rv1:1; | 772 | unsigned long rv1:1; |
773 | u64 ig2:6; | 773 | unsigned long ig2:6; |
774 | u64 rid:24; | 774 | unsigned long rid:24; |
775 | u64 rv2:32; | 775 | unsigned long rv2:32; |
776 | } *rid_reg; | 776 | } *rid_reg; |
777 | 777 | ||
778 | if ((status = ia64_pal_vm_summary(&vm_info_1, &vm_info_2)) !=0) { | 778 | if ((status = ia64_pal_vm_summary(&vm_info_1, &vm_info_2)) !=0) { |
diff --git a/arch/ia64/kernel/pci-dma.c b/arch/ia64/kernel/pci-dma.c index eb987386f691..1376da45fd08 100644 --- a/arch/ia64/kernel/pci-dma.c +++ b/arch/ia64/kernel/pci-dma.c | |||
@@ -91,7 +91,7 @@ int iommu_dma_supported(struct device *dev, u64 mask) | |||
91 | type. Normally this doesn't make any difference, but gives | 91 | type. Normally this doesn't make any difference, but gives |
92 | more gentle handling of IOMMU overflow. */ | 92 | more gentle handling of IOMMU overflow. */ |
93 | if (iommu_sac_force && (mask >= DMA_BIT_MASK(40))) { | 93 | if (iommu_sac_force && (mask >= DMA_BIT_MASK(40))) { |
94 | dev_info(dev, "Force SAC with mask %lx\n", mask); | 94 | dev_info(dev, "Force SAC with mask %llx\n", mask); |
95 | return 0; | 95 | return 0; |
96 | } | 96 | } |
97 | 97 | ||
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 8a06dc480594..89ad0bbb8614 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
@@ -312,7 +312,7 @@ typedef struct pfm_context { | |||
312 | unsigned long th_pmcs[PFM_NUM_PMC_REGS]; /* PMC thread save state */ | 312 | unsigned long th_pmcs[PFM_NUM_PMC_REGS]; /* PMC thread save state */ |
313 | unsigned long th_pmds[PFM_NUM_PMD_REGS]; /* PMD thread save state */ | 313 | unsigned long th_pmds[PFM_NUM_PMD_REGS]; /* PMD thread save state */ |
314 | 314 | ||
315 | u64 ctx_saved_psr_up; /* only contains psr.up value */ | 315 | unsigned long ctx_saved_psr_up; /* only contains psr.up value */ |
316 | 316 | ||
317 | unsigned long ctx_last_activation; /* context last activation number for last_cpu */ | 317 | unsigned long ctx_last_activation; /* context last activation number for last_cpu */ |
318 | unsigned int ctx_last_cpu; /* CPU id of current or last CPU used (SMP only) */ | 318 | unsigned int ctx_last_cpu; /* CPU id of current or last CPU used (SMP only) */ |
@@ -5213,8 +5213,8 @@ pfm_end_notify_user(pfm_context_t *ctx) | |||
5213 | * main overflow processing routine. | 5213 | * main overflow processing routine. |
5214 | * it can be called from the interrupt path or explicitly during the context switch code | 5214 | * it can be called from the interrupt path or explicitly during the context switch code |
5215 | */ | 5215 | */ |
5216 | static void | 5216 | static void pfm_overflow_handler(struct task_struct *task, pfm_context_t *ctx, |
5217 | pfm_overflow_handler(struct task_struct *task, pfm_context_t *ctx, u64 pmc0, struct pt_regs *regs) | 5217 | unsigned long pmc0, struct pt_regs *regs) |
5218 | { | 5218 | { |
5219 | pfm_ovfl_arg_t *ovfl_arg; | 5219 | pfm_ovfl_arg_t *ovfl_arg; |
5220 | unsigned long mask; | 5220 | unsigned long mask; |
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index 714066aeda7f..1b23ec126b63 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c | |||
@@ -151,9 +151,9 @@ int num_rsvd_regions __initdata; | |||
151 | * This routine does not assume the incoming segments are sorted. | 151 | * This routine does not assume the incoming segments are sorted. |
152 | */ | 152 | */ |
153 | int __init | 153 | int __init |
154 | filter_rsvd_memory (unsigned long start, unsigned long end, void *arg) | 154 | filter_rsvd_memory (u64 start, u64 end, void *arg) |
155 | { | 155 | { |
156 | unsigned long range_start, range_end, prev_start; | 156 | u64 range_start, range_end, prev_start; |
157 | void (*func)(unsigned long, unsigned long, int); | 157 | void (*func)(unsigned long, unsigned long, int); |
158 | int i; | 158 | int i; |
159 | 159 | ||
@@ -191,7 +191,7 @@ filter_rsvd_memory (unsigned long start, unsigned long end, void *arg) | |||
191 | * are not filtered out. | 191 | * are not filtered out. |
192 | */ | 192 | */ |
193 | int __init | 193 | int __init |
194 | filter_memory(unsigned long start, unsigned long end, void *arg) | 194 | filter_memory(u64 start, u64 end, void *arg) |
195 | { | 195 | { |
196 | void (*func)(unsigned long, unsigned long, int); | 196 | void (*func)(unsigned long, unsigned long, int); |
197 | 197 | ||
@@ -397,7 +397,7 @@ find_initrd (void) | |||
397 | initrd_start = (unsigned long)__va(ia64_boot_param->initrd_start); | 397 | initrd_start = (unsigned long)__va(ia64_boot_param->initrd_start); |
398 | initrd_end = initrd_start+ia64_boot_param->initrd_size; | 398 | initrd_end = initrd_start+ia64_boot_param->initrd_size; |
399 | 399 | ||
400 | printk(KERN_INFO "Initial ramdisk at: 0x%lx (%lu bytes)\n", | 400 | printk(KERN_INFO "Initial ramdisk at: 0x%lx (%llu bytes)\n", |
401 | initrd_start, ia64_boot_param->initrd_size); | 401 | initrd_start, ia64_boot_param->initrd_size); |
402 | } | 402 | } |
403 | #endif | 403 | #endif |
@@ -505,9 +505,9 @@ static int __init parse_elfcorehdr(char *arg) | |||
505 | } | 505 | } |
506 | early_param("elfcorehdr", parse_elfcorehdr); | 506 | early_param("elfcorehdr", parse_elfcorehdr); |
507 | 507 | ||
508 | int __init reserve_elfcorehdr(unsigned long *start, unsigned long *end) | 508 | int __init reserve_elfcorehdr(u64 *start, u64 *end) |
509 | { | 509 | { |
510 | unsigned long length; | 510 | u64 length; |
511 | 511 | ||
512 | /* We get the address using the kernel command line, | 512 | /* We get the address using the kernel command line, |
513 | * but the size is extracted from the EFI tables. | 513 | * but the size is extracted from the EFI tables. |
@@ -588,7 +588,7 @@ setup_arch (char **cmdline_p) | |||
588 | ia64_patch_rse((u64) __start___rse_patchlist, (u64) __end___rse_patchlist); | 588 | ia64_patch_rse((u64) __start___rse_patchlist, (u64) __end___rse_patchlist); |
589 | #else | 589 | #else |
590 | { | 590 | { |
591 | u64 num_phys_stacked; | 591 | unsigned long num_phys_stacked; |
592 | 592 | ||
593 | if (ia64_pal_rse_info(&num_phys_stacked, 0) == 0 && num_phys_stacked > 96) | 593 | if (ia64_pal_rse_info(&num_phys_stacked, 0) == 0 && num_phys_stacked > 96) |
594 | ia64_patch_rse((u64) __start___rse_patchlist, (u64) __end___rse_patchlist); | 594 | ia64_patch_rse((u64) __start___rse_patchlist, (u64) __end___rse_patchlist); |
@@ -872,9 +872,9 @@ static void __cpuinit | |||
872 | get_cache_info(void) | 872 | get_cache_info(void) |
873 | { | 873 | { |
874 | unsigned long line_size, max = 1; | 874 | unsigned long line_size, max = 1; |
875 | u64 l, levels, unique_caches; | 875 | unsigned long l, levels, unique_caches; |
876 | pal_cache_config_info_t cci; | 876 | pal_cache_config_info_t cci; |
877 | s64 status; | 877 | long status; |
878 | 878 | ||
879 | status = ia64_pal_cache_summary(&levels, &unique_caches); | 879 | status = ia64_pal_cache_summary(&levels, &unique_caches); |
880 | if (status != 0) { | 880 | if (status != 0) { |
@@ -892,9 +892,9 @@ get_cache_info(void) | |||
892 | /* cache_type (data_or_unified)=2 */ | 892 | /* cache_type (data_or_unified)=2 */ |
893 | status = ia64_pal_cache_config_info(l, 2, &cci); | 893 | status = ia64_pal_cache_config_info(l, 2, &cci); |
894 | if (status != 0) { | 894 | if (status != 0) { |
895 | printk(KERN_ERR | 895 | printk(KERN_ERR "%s: ia64_pal_cache_config_info" |
896 | "%s: ia64_pal_cache_config_info(l=%lu, 2) failed (status=%ld)\n", | 896 | "(l=%lu, 2) failed (status=%ld)\n", |
897 | __func__, l, status); | 897 | __func__, l, status); |
898 | max = SMP_CACHE_BYTES; | 898 | max = SMP_CACHE_BYTES; |
899 | /* The safest setup for "flush_icache_range()" */ | 899 | /* The safest setup for "flush_icache_range()" */ |
900 | cci.pcci_stride = I_CACHE_STRIDE_SHIFT; | 900 | cci.pcci_stride = I_CACHE_STRIDE_SHIFT; |
@@ -914,10 +914,10 @@ get_cache_info(void) | |||
914 | /* cache_type (instruction)=1*/ | 914 | /* cache_type (instruction)=1*/ |
915 | status = ia64_pal_cache_config_info(l, 1, &cci); | 915 | status = ia64_pal_cache_config_info(l, 1, &cci); |
916 | if (status != 0) { | 916 | if (status != 0) { |
917 | printk(KERN_ERR | 917 | printk(KERN_ERR "%s: ia64_pal_cache_config_info" |
918 | "%s: ia64_pal_cache_config_info(l=%lu, 1) failed (status=%ld)\n", | 918 | "(l=%lu, 1) failed (status=%ld)\n", |
919 | __func__, l, status); | 919 | __func__, l, status); |
920 | /* The safest setup for "flush_icache_range()" */ | 920 | /* The safest setup for flush_icache_range() */ |
921 | cci.pcci_stride = I_CACHE_STRIDE_SHIFT; | 921 | cci.pcci_stride = I_CACHE_STRIDE_SHIFT; |
922 | } | 922 | } |
923 | } | 923 | } |
diff --git a/arch/ia64/kernel/smp.c b/arch/ia64/kernel/smp.c index 5230eaafd83f..f0c521b0ba4c 100644 --- a/arch/ia64/kernel/smp.c +++ b/arch/ia64/kernel/smp.c | |||
@@ -66,7 +66,7 @@ static DEFINE_PER_CPU(unsigned short, shadow_flush_counts[NR_CPUS]) ____cachelin | |||
66 | #define IPI_KDUMP_CPU_STOP 3 | 66 | #define IPI_KDUMP_CPU_STOP 3 |
67 | 67 | ||
68 | /* This needs to be cacheline aligned because it is written to by *other* CPUs. */ | 68 | /* This needs to be cacheline aligned because it is written to by *other* CPUs. */ |
69 | static DEFINE_PER_CPU_SHARED_ALIGNED(u64, ipi_operation); | 69 | static DEFINE_PER_CPU_SHARED_ALIGNED(unsigned long, ipi_operation); |
70 | 70 | ||
71 | extern void cpu_halt (void); | 71 | extern void cpu_halt (void); |
72 | 72 | ||
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c index 2a70af473b36..de100aa7ff03 100644 --- a/arch/ia64/kernel/smpboot.c +++ b/arch/ia64/kernel/smpboot.c | |||
@@ -865,7 +865,7 @@ init_smp_config(void) | |||
865 | void __devinit | 865 | void __devinit |
866 | identify_siblings(struct cpuinfo_ia64 *c) | 866 | identify_siblings(struct cpuinfo_ia64 *c) |
867 | { | 867 | { |
868 | s64 status; | 868 | long status; |
869 | u16 pltid; | 869 | u16 pltid; |
870 | pal_logical_to_physical_t info; | 870 | pal_logical_to_physical_t info; |
871 | 871 | ||
diff --git a/arch/ia64/kernel/time.c b/arch/ia64/kernel/time.c index 604c1a35db33..4990495d7531 100644 --- a/arch/ia64/kernel/time.c +++ b/arch/ia64/kernel/time.c | |||
@@ -385,7 +385,7 @@ ia64_init_itm (void) | |||
385 | 385 | ||
386 | static cycle_t itc_get_cycles(struct clocksource *cs) | 386 | static cycle_t itc_get_cycles(struct clocksource *cs) |
387 | { | 387 | { |
388 | u64 lcycle, now, ret; | 388 | unsigned long lcycle, now, ret; |
389 | 389 | ||
390 | if (!itc_jitter_data.itc_jitter) | 390 | if (!itc_jitter_data.itc_jitter) |
391 | return get_cycles(); | 391 | return get_cycles(); |
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c index a8d61a3e9a94..bc80dff1df7a 100644 --- a/arch/ia64/kernel/topology.c +++ b/arch/ia64/kernel/topology.c | |||
@@ -306,10 +306,10 @@ static void __cpuinit cpu_cache_sysfs_exit(unsigned int cpu) | |||
306 | 306 | ||
307 | static int __cpuinit cpu_cache_sysfs_init(unsigned int cpu) | 307 | static int __cpuinit cpu_cache_sysfs_init(unsigned int cpu) |
308 | { | 308 | { |
309 | u64 i, levels, unique_caches; | 309 | unsigned long i, levels, unique_caches; |
310 | pal_cache_config_info_t cci; | 310 | pal_cache_config_info_t cci; |
311 | int j; | 311 | int j; |
312 | s64 status; | 312 | long status; |
313 | struct cache_info *this_cache; | 313 | struct cache_info *this_cache; |
314 | int num_cache_leaves = 0; | 314 | int num_cache_leaves = 0; |
315 | 315 | ||
diff --git a/arch/ia64/kernel/uncached.c b/arch/ia64/kernel/uncached.c index 8eff8c1d40a6..e6ac3c332d17 100644 --- a/arch/ia64/kernel/uncached.c +++ b/arch/ia64/kernel/uncached.c | |||
@@ -249,8 +249,7 @@ EXPORT_SYMBOL(uncached_free_page); | |||
249 | * Called at boot time to build a map of pages that can be used for | 249 | * Called at boot time to build a map of pages that can be used for |
250 | * memory special operations. | 250 | * memory special operations. |
251 | */ | 251 | */ |
252 | static int __init uncached_build_memmap(unsigned long uc_start, | 252 | static int __init uncached_build_memmap(u64 uc_start, u64 uc_end, void *arg) |
253 | unsigned long uc_end, void *arg) | ||
254 | { | 253 | { |
255 | int nid = paddr_to_nid(uc_start - __IA64_UNCACHED_OFFSET); | 254 | int nid = paddr_to_nid(uc_start - __IA64_UNCACHED_OFFSET); |
256 | struct gen_pool *pool = uncached_pools[nid].pool; | 255 | struct gen_pool *pool = uncached_pools[nid].pool; |