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/setup.c | |
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/setup.c')
-rw-r--r-- | arch/ia64/kernel/setup.c | 32 |
1 files changed, 16 insertions, 16 deletions
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 | } |