[IA64] Avoid "u64 foo : 32;" for gcc3 vs. gcc4 compatibility

gcc3 thinks that a 32-bit field of a u64 type is itself a u64, so
should be printed with "%ld". gcc4 thinks it needs just "%d".
Make both versions happy by avoiding this construct.

Signed-off-by: Tony Luck <tony.luck@intel.com>

Tony Luck 2ab9391d f1918005

+8 -8
+4 -4
arch/ia64/kernel/palinfo.c
··· 240 240 } 241 241 p += sprintf(p, 242 242 "%s Cache level %lu:\n" 243 - "\tSize : %lu bytes\n" 243 + "\tSize : %u bytes\n" 244 244 "\tAttributes : ", 245 245 cache_types[j+cci.pcci_unified], i+1, 246 246 cci.pcci_cache_size); ··· 648 648 if (ia64_pal_freq_ratios(&proc, &bus, &itc) != 0) return 0; 649 649 650 650 p += sprintf(p, 651 - "Processor/Clock ratio : %ld/%ld\n" 652 - "Bus/Clock ratio : %ld/%ld\n" 653 - "ITC/Clock ratio : %ld/%ld\n", 651 + "Processor/Clock ratio : %d/%d\n" 652 + "Bus/Clock ratio : %d/%d\n" 653 + "ITC/Clock ratio : %d/%d\n", 654 654 proc.num, proc.den, bus.num, bus.den, itc.num, itc.den); 655 655 656 656 return p - page;
+1 -1
arch/ia64/kernel/time.c
··· 188 188 itc_freq = (platform_base_freq*itc_ratio.num)/itc_ratio.den; 189 189 190 190 local_cpu_data->itm_delta = (itc_freq + HZ/2) / HZ; 191 - printk(KERN_DEBUG "CPU %d: base freq=%lu.%03luMHz, ITC ratio=%lu/%lu, " 191 + printk(KERN_DEBUG "CPU %d: base freq=%lu.%03luMHz, ITC ratio=%u/%u, " 192 192 "ITC freq=%lu.%03luMHz", smp_processor_id(), 193 193 platform_base_freq / 1000000, (platform_base_freq / 1000) % 1000, 194 194 itc_ratio.num, itc_ratio.den, itc_freq / 1000000, (itc_freq / 1000) % 1000);
+3 -3
include/asm-ia64/pal.h
··· 131 131 #define PAL_CACHE_LINE_STATE_MODIFIED 3 /* Modified */ 132 132 133 133 typedef struct pal_freq_ratio { 134 - u64 den : 32, num : 32; /* numerator & denominator */ 134 + u32 den, num; /* numerator & denominator */ 135 135 } itc_ratio, proc_ratio; 136 136 137 137 typedef union pal_cache_config_info_1_s { ··· 152 152 153 153 typedef union pal_cache_config_info_2_s { 154 154 struct { 155 - u64 cache_size : 32, /*cache size in bytes*/ 155 + u32 cache_size; /*cache size in bytes*/ 156 156 157 157 158 - alias_boundary : 8, /* 39-32 aliased addr 158 + u32 alias_boundary : 8, /* 39-32 aliased addr 159 159 * separation for max 160 160 * performance. 161 161 */