···7272struct ia64_sal_os_state {73737474 /* SAL to OS */7575- u64 os_gp; /* GP of the os registered with the SAL, physical */7676- u64 pal_proc; /* PAL_PROC entry point, physical */7777- u64 sal_proc; /* SAL_PROC entry point, physical */7878- u64 rv_rc; /* MCA - Rendezvous state, INIT - reason code */7979- u64 proc_state_param; /* from R18 */8080- u64 monarch; /* 1 for a monarch event, 0 for a slave */7575+ unsigned long os_gp; /* GP of the os registered with the SAL, physical */7676+ unsigned long pal_proc; /* PAL_PROC entry point, physical */7777+ unsigned long sal_proc; /* SAL_PROC entry point, physical */7878+ unsigned long rv_rc; /* MCA - Rendezvous state, INIT - reason code */7979+ unsigned long proc_state_param; /* from R18 */8080+ unsigned long monarch; /* 1 for a monarch event, 0 for a slave */81818282 /* common */8383- u64 sal_ra; /* Return address in SAL, physical */8484- u64 sal_gp; /* GP of the SAL - physical */8383+ unsigned long sal_ra; /* Return address in SAL, physical */8484+ unsigned long sal_gp; /* GP of the SAL - physical */8585 pal_min_state_area_t *pal_min_state; /* from R17. physical in asm, virtual in C */8686 /* Previous values of IA64_KR(CURRENT) and IA64_KR(CURRENT_STACK).8787 * Note: if the MCA/INIT recovery code wants to resume to a new context8888 * then it must change these values to reflect the new kernel stack.8989 */9090- u64 prev_IA64_KR_CURRENT; /* previous value of IA64_KR(CURRENT) */9191- u64 prev_IA64_KR_CURRENT_STACK;9090+ unsigned long prev_IA64_KR_CURRENT; /* previous value of IA64_KR(CURRENT) */9191+ unsigned long prev_IA64_KR_CURRENT_STACK;9292 struct task_struct *prev_task; /* previous task, NULL if it is not useful */9393 /* Some interrupt registers are not saved in minstate, pt_regs or9494 * switch_stack. Because MCA/INIT can occur when interrupts are9595 * disabled, we need to save the additional interrupt registers over9696 * MCA/INIT and resume.9797 */9898- u64 isr;9999- u64 ifa;100100- u64 itir;101101- u64 iipa;102102- u64 iim;103103- u64 iha;9898+ unsigned long isr;9999+ unsigned long ifa;100100+ unsigned long itir;101101+ unsigned long iipa;102102+ unsigned long iim;103103+ unsigned long iha;104104105105 /* OS to SAL */106106- u64 os_status; /* OS status to SAL, enum below */107107- u64 context; /* 0 if return to same context106106+ unsigned long os_status; /* OS status to SAL, enum below */107107+ unsigned long context; /* 0 if return to same context108108 1 if return to new context */109109};110110···150150extern void ia64_mca_cmc_vector_setup(void);151151extern int ia64_reg_MCA_extension(int (*fn)(void *, struct ia64_sal_os_state *));152152extern void ia64_unreg_MCA_extension(void);153153-extern u64 ia64_get_rnat(u64 *);153153+extern unsigned long ia64_get_rnat(unsigned long *);154154extern void ia64_mca_printk(const char * fmt, ...)155155 __attribute__ ((format (printf, 1, 2)));156156
+9-9
arch/ia64/include/asm/meminit.h
···2525#define IA64_MAX_RSVD_REGIONS 926262727struct rsvd_region {2828- unsigned long start; /* virtual address of beginning of element */2929- unsigned long end; /* virtual address of end of element + 1 */2828+ u64 start; /* virtual address of beginning of element */2929+ u64 end; /* virtual address of end of element + 1 */3030};31313232extern struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1];···3535extern void find_memory (void);3636extern void reserve_memory (void);3737extern void find_initrd (void);3838-extern int filter_rsvd_memory (unsigned long start, unsigned long end, void *arg);3939-extern int filter_memory (unsigned long start, unsigned long end, void *arg);4040-extern unsigned long efi_memmap_init(unsigned long *s, unsigned long *e);4141-extern int find_max_min_low_pfn (unsigned long , unsigned long, void *);3838+extern int filter_rsvd_memory (u64 start, u64 end, void *arg);3939+extern int filter_memory (u64 start, u64 end, void *arg);4040+extern unsigned long efi_memmap_init(u64 *s, u64 *e);4141+extern int find_max_min_low_pfn (u64, u64, void *);42424343extern unsigned long vmcore_find_descriptor_size(unsigned long address);4444-extern int reserve_elfcorehdr(unsigned long *start, unsigned long *end);4444+extern int reserve_elfcorehdr(u64 *start, u64 *end);45454646/*4747 * For rounding an address to the next IA64_GRANULE_SIZE or order···6363# define LARGE_GAP 0x40000000 /* Use virtual mem map if hole is > than this */6464 extern unsigned long vmalloc_end;6565 extern struct page *vmem_map;6666- extern int find_largest_hole (u64 start, u64 end, void *arg);6767- extern int create_mem_map_page_table (u64 start, u64 end, void *arg);6666+ extern int find_largest_hole(u64 start, u64 end, void *arg);6767+ extern int create_mem_map_page_table(u64 start, u64 end, void *arg);6868 extern int vmemmap_find_next_valid_pfn(int, int);6969#else7070static inline int vmemmap_find_next_valid_pfn(int node, int i)
+11-13
arch/ia64/include/asm/pal.h
···989989}990990991991/* Return summary information about the hierarchy of caches controlled by the processor */992992-static inline s64993993-ia64_pal_cache_summary (u64 *cache_levels, u64 *unique_caches)992992+static inline long ia64_pal_cache_summary(unsigned long *cache_levels,993993+ unsigned long *unique_caches)994994{995995 struct ia64_pal_retval iprv;996996 PAL_CALL(iprv, PAL_CACHE_SUMMARY, 0, 0, 0);···10381038}1039103910401040/* Return the number of instruction and data debug register pairs */10411041-static inline s6410421042-ia64_pal_debug_info (u64 *inst_regs, u64 *data_regs)10411041+static inline long ia64_pal_debug_info(unsigned long *inst_regs,10421042+ unsigned long *data_regs)10431043{10441044 struct ia64_pal_retval iprv;10451045 PAL_CALL(iprv, PAL_DEBUG_INFO, 0, 0, 0);···10741074}1075107510761076/* Get base frequency of the platform if generated by the processor */10771077-static inline s6410781078-ia64_pal_freq_base (u64 *platform_base_freq)10771077+static inline long ia64_pal_freq_base(unsigned long *platform_base_freq)10791078{10801079 struct ia64_pal_retval iprv;10811080 PAL_CALL(iprv, PAL_FREQ_BASE, 0, 0, 0);···14361437 * possible.14371438 */14381439typedef struct ia64_ptce_info_s {14391439- u64 base;14401440+ unsigned long base;14401441 u32 count[2];14411442 u32 stride[2];14421443} ia64_ptce_info_t;···14771478}1478147914791480typedef union pal_hints_u {14801480- u64 ph_data;14811481+ unsigned long ph_data;14811482 struct {14821482- u64 si : 1,14831483+ unsigned long si : 1,14831484 li : 1,14841485 reserved : 62;14851486 } pal_hints_s;···14881489/* Return information about the register stack and RSE for this processor14891490 * implementation.14901491 */14911491-static inline s6414921492-ia64_pal_rse_info (u64 *num_phys_stacked, pal_hints_u_t *hints)14921492+static inline long ia64_pal_rse_info(unsigned long *num_phys_stacked,14931493+ pal_hints_u_t *hints)14931494{14941495 struct ia64_pal_retval iprv;14951496 PAL_CALL(iprv, PAL_RSE_INFO, 0, 0, 0);···16071608/* Get page size information about the virtual memory characteristics of the processor16081609 * implementation.16091610 */16101610-static inline s6416111611-ia64_pal_vm_page_size (u64 *tr_pages, u64 *vw_pages)16111611+static inline s64 ia64_pal_vm_page_size(u64 *tr_pages, u64 *vw_pages)16121612{16131613 struct ia64_pal_retval iprv;16141614 PAL_CALL(iprv, PAL_VM_PAGE_SIZE, 0, 0, 0);
+28-28
arch/ia64/include/asm/processor.h
···187187 * state comes earlier:188188 */189189struct cpuinfo_ia64 {190190- __u32 softirq_pending;191191- __u64 itm_delta; /* # of clock cycles between clock ticks */192192- __u64 itm_next; /* interval timer mask value to use for next clock tick */193193- __u64 nsec_per_cyc; /* (1000000000<<IA64_NSEC_PER_CYC_SHIFT)/itc_freq */194194- __u64 unimpl_va_mask; /* mask of unimplemented virtual address bits (from PAL) */195195- __u64 unimpl_pa_mask; /* mask of unimplemented physical address bits (from PAL) */196196- __u64 itc_freq; /* frequency of ITC counter */197197- __u64 proc_freq; /* frequency of processor */198198- __u64 cyc_per_usec; /* itc_freq/1000000 */199199- __u64 ptce_base;200200- __u32 ptce_count[2];201201- __u32 ptce_stride[2];190190+ unsigned int softirq_pending;191191+ unsigned long itm_delta; /* # of clock cycles between clock ticks */192192+ unsigned long itm_next; /* interval timer mask value to use for next clock tick */193193+ unsigned long nsec_per_cyc; /* (1000000000<<IA64_NSEC_PER_CYC_SHIFT)/itc_freq */194194+ unsigned long unimpl_va_mask; /* mask of unimplemented virtual address bits (from PAL) */195195+ unsigned long unimpl_pa_mask; /* mask of unimplemented physical address bits (from PAL) */196196+ unsigned long itc_freq; /* frequency of ITC counter */197197+ unsigned long proc_freq; /* frequency of processor */198198+ unsigned long cyc_per_usec; /* itc_freq/1000000 */199199+ unsigned long ptce_base;200200+ unsigned int ptce_count[2];201201+ unsigned int ptce_stride[2];202202 struct task_struct *ksoftirqd; /* kernel softirq daemon for this CPU */203203204204#ifdef CONFIG_SMP205205- __u64 loops_per_jiffy;205205+ unsigned long loops_per_jiffy;206206 int cpu;207207- __u32 socket_id; /* physical processor socket id */208208- __u16 core_id; /* core id */209209- __u16 thread_id; /* thread id */210210- __u16 num_log; /* Total number of logical processors on207207+ unsigned int socket_id; /* physical processor socket id */208208+ unsigned short core_id; /* core id */209209+ unsigned short thread_id; /* thread id */210210+ unsigned short num_log; /* Total number of logical processors on211211 * this socket that were successfully booted */212212- __u8 cores_per_socket; /* Cores per processor socket */213213- __u8 threads_per_core; /* Threads per core */212212+ unsigned char cores_per_socket; /* Cores per processor socket */213213+ unsigned char threads_per_core; /* Threads per core */214214#endif215215216216 /* CPUID-derived information: */217217- __u64 ppn;218218- __u64 features;219219- __u8 number;220220- __u8 revision;221221- __u8 model;222222- __u8 family;223223- __u8 archrev;217217+ unsigned long ppn;218218+ unsigned long features;219219+ unsigned char number;220220+ unsigned char revision;221221+ unsigned char model;222222+ unsigned char family;223223+ unsigned char archrev;224224 char vendor[16];225225 char *model_name;226226···329329#else330330# define INIT_THREAD_PM331331#endif332332- __u64 dbr[IA64_NUM_DBG_REGS];333333- __u64 ibr[IA64_NUM_DBG_REGS];332332+ unsigned long dbr[IA64_NUM_DBG_REGS];333333+ unsigned long ibr[IA64_NUM_DBG_REGS];334334 struct ia64_fpreg fph[96]; /* saved/loaded on demand */335335};336336
+4-4
arch/ia64/include/asm/sal.h
···106106 * informational value should be printed (e.g., "reboot for107107 * change to take effect").108108 */109109- s64 status;110110- u64 v0;111111- u64 v1;112112- u64 v2;109109+ long status;110110+ unsigned long v0;111111+ unsigned long v1;112112+ unsigned long v2;113113};114114115115typedef struct ia64_sal_retval (*ia64_sal_handler) (u64, ...);
+1-1
arch/ia64/include/asm/sn/sn_sal.h
···929929/*930930 * Get the associated ioboard type for a given nasid.931931 */932932-static inline s64932932+static inline long933933ia64_sn_sysctl_ioboard_get(nasid_t nasid, u16 *ioboard)934934{935935 struct ia64_sal_retval isrv;
+9-4
arch/ia64/include/asm/types.h
···22#define _ASM_IA64_TYPES_H3344/*55- * This file is never included by application software unless explicitly requested (e.g.,66- * via linux/types.h) in which case the application is Linux specific so (user-) name77- * space pollution is not a major issue. However, for interoperability, libraries still88- * need to be careful to avoid a name clashes.55+ * This file is never included by application software unless explicitly66+ * requested (e.g., via linux/types.h) in which case the application is77+ * Linux specific so (user-) name space pollution is not a major issue.88+ * However, for interoperability, libraries still need to be careful to99+ * avoid naming clashes.910 *1011 * Based on <asm-alpha/types.h>.1112 *···1413 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co1514 */16151616+#ifdef __KERNEL__1717+#include <asm-generic/int-ll64.h>1818+#else1719#include <asm-generic/int-l64.h>2020+#endif18211922#ifdef __ASSEMBLY__2023# define __IA64_UL(x) (x)
···218218cache_info(char *page)219219{220220 char *p = page;221221- u64 i, levels, unique_caches;221221+ unsigned long i, levels, unique_caches;222222 pal_cache_config_info_t cci;223223 int j, k;224224- s64 status;224224+ long status;225225226226 if ((status = ia64_pal_cache_summary(&levels, &unique_caches)) != 0) {227227 printk(KERN_ERR "ia64_pal_cache_summary=%ld\n", status);···303303 ia64_ptce_info_t ptce;304304 const char *sep;305305 int i, j;306306- s64 status;306306+ long status;307307308308 if ((status = ia64_pal_vm_summary(&vm_info_1, &vm_info_2)) !=0) {309309 printk(KERN_ERR "ia64_pal_vm_summary=%ld\n", status);···431431 char *p = page;432432 u64 reg_info[2];433433 u64 info;434434- u64 phys_stacked;434434+ unsigned long phys_stacked;435435 pal_hints_u_t hints;436436- u64 iregs, dregs;436436+ unsigned long iregs, dregs;437437 char *info_type[]={438438 "Implemented AR(s)",439439 "AR(s) with read side-effects",···530530 NULL, NULL, NULL, NULL,531531};532532533533-static char *534534-feature_set_info(char *page, u64 avail, u64 status, u64 control, u64 set)533533+static char * feature_set_info(char *page, u64 avail, u64 status, u64 control,534534+ unsigned long set)535535{536536 char *p = page;537537 char **vf, **v;···714714{715715 char *p = page;716716 struct pal_freq_ratio proc, itc, bus;717717- u64 base;717717+ unsigned long base;718718719719 if (ia64_pal_freq_base(&base) == -1)720720 p += sprintf(p, "Output clock : not implemented\n");···736736tr_info(char *page)737737{738738 char *p = page;739739- s64 status;739739+ long status;740740 pal_tr_valid_u_t tr_valid;741741 u64 tr_buffer[4];742742 pal_vm_info_1_u_t vm_info_1;743743 pal_vm_info_2_u_t vm_info_2;744744- u64 i, j;745745- u64 max[3], pgm;744744+ unsigned long i, j;745745+ unsigned long max[3], pgm;746746 struct ifa_reg {747747- u64 valid:1;748748- u64 ig:11;749749- u64 vpn:52;747747+ unsigned long valid:1;748748+ unsigned long ig:11;749749+ unsigned long vpn:52;750750 } *ifa_reg;751751 struct itir_reg {752752- u64 rv1:2;753753- u64 ps:6;754754- u64 key:24;755755- u64 rv2:32;752752+ unsigned long rv1:2;753753+ unsigned long ps:6;754754+ unsigned long key:24;755755+ unsigned long rv2:32;756756 } *itir_reg;757757 struct gr_reg {758758- u64 p:1;759759- u64 rv1:1;760760- u64 ma:3;761761- u64 a:1;762762- u64 d:1;763763- u64 pl:2;764764- u64 ar:3;765765- u64 ppn:38;766766- u64 rv2:2;767767- u64 ed:1;768768- u64 ig:11;758758+ unsigned long p:1;759759+ unsigned long rv1:1;760760+ unsigned long ma:3;761761+ unsigned long a:1;762762+ unsigned long d:1;763763+ unsigned long pl:2;764764+ unsigned long ar:3;765765+ unsigned long ppn:38;766766+ unsigned long rv2:2;767767+ unsigned long ed:1;768768+ unsigned long ig:11;769769 } *gr_reg;770770 struct rid_reg {771771- u64 ig1:1;772772- u64 rv1:1;773773- u64 ig2:6;774774- u64 rid:24;775775- u64 rv2:32;771771+ unsigned long ig1:1;772772+ unsigned long rv1:1;773773+ unsigned long ig2:6;774774+ unsigned long rid:24;775775+ unsigned long rv2:32;776776 } *rid_reg;777777778778 if ((status = ia64_pal_vm_summary(&vm_info_1, &vm_info_2)) !=0) {
+1-1
arch/ia64/kernel/pci-dma.c
···9191 type. Normally this doesn't make any difference, but gives9292 more gentle handling of IOMMU overflow. */9393 if (iommu_sac_force && (mask >= DMA_BIT_MASK(40))) {9494- dev_info(dev, "Force SAC with mask %lx\n", mask);9494+ dev_info(dev, "Force SAC with mask %llx\n", mask);9595 return 0;9696 }9797
+3-3
arch/ia64/kernel/perfmon.c
···312312 unsigned long th_pmcs[PFM_NUM_PMC_REGS]; /* PMC thread save state */313313 unsigned long th_pmds[PFM_NUM_PMD_REGS]; /* PMD thread save state */314314315315- u64 ctx_saved_psr_up; /* only contains psr.up value */315315+ unsigned long ctx_saved_psr_up; /* only contains psr.up value */316316317317 unsigned long ctx_last_activation; /* context last activation number for last_cpu */318318 unsigned int ctx_last_cpu; /* CPU id of current or last CPU used (SMP only) */···52135213 * main overflow processing routine.52145214 * it can be called from the interrupt path or explicitly during the context switch code52155215 */52165216-static void52175217-pfm_overflow_handler(struct task_struct *task, pfm_context_t *ctx, u64 pmc0, struct pt_regs *regs)52165216+static void pfm_overflow_handler(struct task_struct *task, pfm_context_t *ctx,52175217+ unsigned long pmc0, struct pt_regs *regs)52185218{52195219 pfm_ovfl_arg_t *ovfl_arg;52205220 unsigned long mask;
+16-16
arch/ia64/kernel/setup.c
···151151 * This routine does not assume the incoming segments are sorted.152152 */153153int __init154154-filter_rsvd_memory (unsigned long start, unsigned long end, void *arg)154154+filter_rsvd_memory (u64 start, u64 end, void *arg)155155{156156- unsigned long range_start, range_end, prev_start;156156+ u64 range_start, range_end, prev_start;157157 void (*func)(unsigned long, unsigned long, int);158158 int i;159159···191191 * are not filtered out.192192 */193193int __init194194-filter_memory(unsigned long start, unsigned long end, void *arg)194194+filter_memory(u64 start, u64 end, void *arg)195195{196196 void (*func)(unsigned long, unsigned long, int);197197···397397 initrd_start = (unsigned long)__va(ia64_boot_param->initrd_start);398398 initrd_end = initrd_start+ia64_boot_param->initrd_size;399399400400- printk(KERN_INFO "Initial ramdisk at: 0x%lx (%lu bytes)\n",400400+ printk(KERN_INFO "Initial ramdisk at: 0x%lx (%llu bytes)\n",401401 initrd_start, ia64_boot_param->initrd_size);402402 }403403#endif···505505}506506early_param("elfcorehdr", parse_elfcorehdr);507507508508-int __init reserve_elfcorehdr(unsigned long *start, unsigned long *end)508508+int __init reserve_elfcorehdr(u64 *start, u64 *end)509509{510510- unsigned long length;510510+ u64 length;511511512512 /* We get the address using the kernel command line,513513 * but the size is extracted from the EFI tables.···588588 ia64_patch_rse((u64) __start___rse_patchlist, (u64) __end___rse_patchlist);589589#else590590 {591591- u64 num_phys_stacked;591591+ unsigned long num_phys_stacked;592592593593 if (ia64_pal_rse_info(&num_phys_stacked, 0) == 0 && num_phys_stacked > 96)594594 ia64_patch_rse((u64) __start___rse_patchlist, (u64) __end___rse_patchlist);···872872get_cache_info(void)873873{874874 unsigned long line_size, max = 1;875875- u64 l, levels, unique_caches;876876- pal_cache_config_info_t cci;877877- s64 status;875875+ unsigned long l, levels, unique_caches;876876+ pal_cache_config_info_t cci;877877+ long status;878878879879 status = ia64_pal_cache_summary(&levels, &unique_caches);880880 if (status != 0) {···892892 /* cache_type (data_or_unified)=2 */893893 status = ia64_pal_cache_config_info(l, 2, &cci);894894 if (status != 0) {895895- printk(KERN_ERR896896- "%s: ia64_pal_cache_config_info(l=%lu, 2) failed (status=%ld)\n",897897- __func__, l, status);895895+ printk(KERN_ERR "%s: ia64_pal_cache_config_info"896896+ "(l=%lu, 2) failed (status=%ld)\n",897897+ __func__, l, status);898898 max = SMP_CACHE_BYTES;899899 /* The safest setup for "flush_icache_range()" */900900 cci.pcci_stride = I_CACHE_STRIDE_SHIFT;···914914 /* cache_type (instruction)=1*/915915 status = ia64_pal_cache_config_info(l, 1, &cci);916916 if (status != 0) {917917- printk(KERN_ERR918918- "%s: ia64_pal_cache_config_info(l=%lu, 1) failed (status=%ld)\n",917917+ printk(KERN_ERR "%s: ia64_pal_cache_config_info"918918+ "(l=%lu, 1) failed (status=%ld)\n",919919 __func__, l, status);920920- /* The safest setup for "flush_icache_range()" */920920+ /* The safest setup for flush_icache_range() */921921 cci.pcci_stride = I_CACHE_STRIDE_SHIFT;922922 }923923 }
+1-1
arch/ia64/kernel/smp.c
···6666#define IPI_KDUMP_CPU_STOP 367676868/* This needs to be cacheline aligned because it is written to by *other* CPUs. */6969-static DEFINE_PER_CPU_SHARED_ALIGNED(u64, ipi_operation);6969+static DEFINE_PER_CPU_SHARED_ALIGNED(unsigned long, ipi_operation);70707171extern void cpu_halt (void);7272
+2-2
arch/ia64/kernel/smpboot.c
···678678int migrate_platform_irqs(unsigned int cpu)679679{680680 int new_cpei_cpu;681681- irq_desc_t *desc = NULL;681681+ struct irq_desc *desc = NULL;682682 const struct cpumask *mask;683683 int retval = 0;684684···865865void __devinit866866identify_siblings(struct cpuinfo_ia64 *c)867867{868868- s64 status;868868+ long status;869869 u16 pltid;870870 pal_logical_to_physical_t info;871871
+1-1
arch/ia64/kernel/time.c
···385385386386static cycle_t itc_get_cycles(struct clocksource *cs)387387{388388- u64 lcycle, now, ret;388388+ unsigned long lcycle, now, ret;389389390390 if (!itc_jitter_data.itc_jitter)391391 return get_cycles();
+2-2
arch/ia64/kernel/topology.c
···306306307307static int __cpuinit cpu_cache_sysfs_init(unsigned int cpu)308308{309309- u64 i, levels, unique_caches;309309+ unsigned long i, levels, unique_caches;310310 pal_cache_config_info_t cci;311311 int j;312312- s64 status;312312+ long status;313313 struct cache_info *this_cache;314314 int num_cache_leaves = 0;315315
+1-2
arch/ia64/kernel/uncached.c
···250250 * Called at boot time to build a map of pages that can be used for251251 * memory special operations.252252 */253253-static int __init uncached_build_memmap(unsigned long uc_start,254254- unsigned long uc_end, void *arg)253253+static int __init uncached_build_memmap(u64 uc_start, u64 uc_end, void *arg)255254{256255 int nid = paddr_to_nid(uc_start - __IA64_UNCACHED_OFFSET);257256 struct gen_pool *pool = uncached_pools[nid].pool;
+4-5
arch/ia64/mm/contig.c
···107107 * bootmap_start. This address must be page-aligned.108108 */109109static int __init110110-find_bootmap_location (unsigned long start, unsigned long end, void *arg)110110+find_bootmap_location (u64 start, u64 end, void *arg)111111{112112- unsigned long needed = *(unsigned long *)arg;113113- unsigned long range_start, range_end, free_start;112112+ u64 needed = *(unsigned long *)arg;113113+ u64 range_start, range_end, free_start;114114 int i;115115116116#if IGNORE_PFN0···229229 alloc_per_cpu_data();230230}231231232232-static int233233-count_pages (u64 start, u64 end, void *arg)232232+static int count_pages(u64 start, u64 end, void *arg)234233{235234 unsigned long *count = arg;236235
···3434#include <asm/tlb.h>35353636static struct {3737- unsigned long mask; /* mask of supported purge page-sizes */3737+ u64 mask; /* mask of supported purge page-sizes */3838 unsigned long max_bits; /* log2 of largest supported purge page-size */3939} purge;4040···328328ia64_tlb_init (void)329329{330330 ia64_ptce_info_t uninitialized_var(ptce_info); /* GCC be quiet */331331- unsigned long tr_pgbits;331331+ u64 tr_pgbits;332332 long status;333333 pal_vm_info_1_u_t vm_info_1;334334 pal_vm_info_2_u_t vm_info_2;
+6-6
arch/ia64/pci/pci.c
···163163{164164 struct resource *resource;165165 char *name;166166- u64 base, min, max, base_port;166166+ unsigned long base, min, max, base_port;167167 unsigned int sparse = 0, space_nr, len;168168169169 resource = kzalloc(sizeof(*resource), GFP_KERNEL);···292292 window->offset = offset;293293294294 if (insert_resource(root, &window->resource)) {295295- printk(KERN_ERR "alloc 0x%lx-0x%lx from %s for %s failed\n",295295+ printk(KERN_ERR "alloc 0x%llx-0x%llx from %s for %s failed\n",296296 window->resource.start, window->resource.end,297297 root->name, info->name);298298 }···314314 (res->end - res->start < 16))315315 continue;316316 if (j >= PCI_BUS_NUM_RESOURCES) {317317- printk("Ignoring range [%lx-%lx] (%lx)\n", res->start,318318- res->end, res->flags);317317+ printk("Ignoring range [%#llx-%#llx] (%lx)\n",318318+ res->start, res->end, res->flags);319319 continue;320320 }321321 bus->resource[j++] = res;···728728 */729729static void __init set_pci_cacheline_size(void)730730{731731- u64 levels, unique_caches;732732- s64 status;731731+ unsigned long levels, unique_caches;732732+ long status;733733 pal_cache_config_info_t cci;734734735735 status = ia64_pal_cache_summary(&levels, &unique_caches);
+2-2
arch/ia64/sn/kernel/io_acpi_init.c
···4040/*4141 * Perform the early IO init in PROM.4242 */4343-static s644343+static long4444sal_ioif_init(u64 *result)4545{4646 struct ia64_sal_retval isrv = {0,0,0,0};···492492sn_io_acpi_init(void)493493{494494 u64 result;495495- s64 status;495495+ long status;496496497497 /* SN Altix does not follow the IOSAPIC IRQ routing model */498498 acpi_irq_model = ACPI_IRQ_MODEL_PLATFORM;
···368368static int is_fpga_tio(int nasid, int *bt)369369{370370 u16 uninitialized_var(ioboard_type); /* GCC be quiet */371371- s64 rc;371371+ long rc;372372373373 rc = ia64_sn_sysctl_ioboard_get(nasid, &ioboard_type);374374 if (rc) {
+1-1
arch/ia64/sn/pci/pcibr/pcibr_provider.c
···79798080u16 sn_ioboard_to_pci_bus(struct pci_bus *pci_bus)8181{8282- s64 rc;8282+ long rc;8383 u16 uninitialized_var(ioboard); /* GCC be quiet */8484 nasid_t nasid = NASID_GET(SN_PCIBUS_BUSSOFT(pci_bus)->bs_base);8585
+3-3
arch/ia64/sn/pci/tioca_provider.c
···123123124124 if (!tmp) {125125 printk(KERN_ERR "%s: Could not allocate "126126- "%lu bytes (order %d) for GART\n",126126+ "%llu bytes (order %d) for GART\n",127127 __func__,128128 tioca_kern->ca_gart_size,129129 get_order(tioca_kern->ca_gart_size));···348348 agp_dma_extn = __sn_readq_relaxed(&ca_base->ca_agp_dma_addr_extn);349349 if (node_upper != (agp_dma_extn >> CA_AGP_DMA_NODE_ID_SHFT)) {350350 printk(KERN_ERR "%s: coretalk upper node (%u) "351351- "mismatch with ca_agp_dma_addr_extn (%lu)\n",351351+ "mismatch with ca_agp_dma_addr_extn (%llu)\n",352352 __func__,353353 node_upper, (agp_dma_extn >> CA_AGP_DMA_NODE_ID_SHFT));354354 return 0;···367367 * dma_addr_t is guaranteed to be contiguous in CA bus space.368368 */369369static dma_addr_t370370-tioca_dma_mapped(struct pci_dev *pdev, u64 paddr, size_t req_size)370370+tioca_dma_mapped(struct pci_dev *pdev, unsigned long paddr, size_t req_size)371371{372372 int i, ps, ps_shift, entry, entries, mapsize, last_entry;373373 u64 xio_addr, end_xio_addr;
+3-3
arch/ia64/sn/pci/tioce_provider.c
···493493494494 if (&map->ce_dmamap_list == &ce_kern->ce_dmamap_list) {495495 printk(KERN_WARNING496496- "%s: %s - no map found for bus_addr 0x%lx\n",496496+ "%s: %s - no map found for bus_addr 0x%llx\n",497497 __func__, pci_name(pdev), bus_addr);498498 } else if (--map->refcnt == 0) {499499 for (i = 0; i < map->ate_count; i++) {···642642 * in the address.643643 */644644static u64645645-tioce_dma(struct pci_dev *pdev, u64 paddr, size_t byte_count, int dma_flags)645645+tioce_dma(struct pci_dev *pdev, unsigned long paddr, size_t byte_count, int dma_flags)646646{647647 return tioce_do_dma_map(pdev, paddr, byte_count, 0, dma_flags);648648}···657657 * in the address.658658 */659659static u64660660-tioce_dma_consistent(struct pci_dev *pdev, u64 paddr, size_t byte_count, int dma_flags)660660+tioce_dma_consistent(struct pci_dev *pdev, unsigned long paddr, size_t byte_count, int dma_flags)661661{662662 return tioce_do_dma_map(pdev, paddr, byte_count, 1, dma_flags);663663}
+1-1
arch/ia64/xen/irq_xen.c
···138138__xen_register_percpu_irq(unsigned int cpu, unsigned int vec,139139 struct irqaction *action, int save)140140{141141- irq_desc_t *desc;141141+ struct irq_desc *desc;142142 int irq = 0;143143144144 if (xen_slab_ready) {
+3-2
drivers/char/agp/hp-agp.c
···518518 if (hp_zx1_setup(sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa))519519 return AE_OK;520520521521- printk(KERN_INFO PFX "Detected HP ZX1 %s AGP chipset (ioc=%lx, lba=%lx)\n",522522- (char *) context, sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa);521521+ printk(KERN_INFO PFX "Detected HP ZX1 %s AGP chipset "522522+ "(ioc=%llx, lba=%llx)\n", (char *)context,523523+ sba_hpa + HP_ZX1_IOC_OFFSET, lba_hpa);523524524525 hp_zx1_gart_found = 1;525526 return AE_CTRL_TERMINATE; /* we only support one bridge; quit looking */
+2-2
drivers/firmware/pcdp.c
···2828 char parity;29293030 mmio = (uart->addr.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY);3131- p += sprintf(p, "uart8250,%s,0x%lx",3131+ p += sprintf(p, "uart8250,%s,0x%llx",3232 mmio ? "mmio" : "io", uart->addr.address);3333 if (uart->baud) {3434- p += sprintf(p, ",%lu", uart->baud);3434+ p += sprintf(p, ",%llu", uart->baud);3535 if (uart->bits) {3636 switch (uart->parity) {3737 case 0x2: parity = 'e'; break;
+1-1
include/linux/efi.h
···101101 u64 attribute;102102} efi_memory_desc_t;103103104104-typedef int (*efi_freemem_callback_t) (unsigned long start, unsigned long end, void *arg);104104+typedef int (*efi_freemem_callback_t) (u64 start, u64 end, void *arg);105105106106/*107107 * Types and defines for Time Services